Difference between revisions of "Template:Call"

From Final Fantasy XII Wiki
Jump to navigation Jump to search
(Created page with "Signature:<syntaxhighlight lang="cpp"> void wait(int time); </syntaxhighlight> Category:Call targets")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
Signature:<syntaxhighlight lang="cpp">
+
Signature:
void wait(int time);
+
{{#tag:syntaxhighlight|
</syntaxhighlight>
+
{{#if:{{{return|}}}|{{{return}}}|void}} {{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}}
 +
{{#ifeq:{{{act|}}}|true|
 +
 +
//or in a context of another script
 +
{{#if:{{{return|}}}|{{{return}}}|void}} scriptName.{{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}}|}}|
 +
lang=cpp
 +
}}
 +
 
 
[[Category:Call targets]]
 
[[Category:Call targets]]
 +
<noinclude>
 +
<templatedata>
 +
{
 +
"params": {
 +
"return": {
 +
"aliases": [
 +
"2"
 +
],
 +
"label": "Return type",
 +
"example": "void, int, float",
 +
"type": "string",
 +
"autovalue": "",
 +
"suggested": true
 +
},
 +
"name": {
 +
"aliases": [
 +
"3"
 +
],
 +
"label": "Call name",
 +
"type": "string",
 +
"autovalue": "",
 +
"required": true
 +
},
 +
"args": {
 +
"aliases": [
 +
"4"
 +
],
 +
"label": "Argument list",
 +
"example": "float posx, float posy, float posz",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"id": {
 +
"aliases": [
 +
"1"
 +
],
 +
"label": "Call ID",
 +
"example": "0x0001",
 +
"required": true
 +
},
 +
"act": {
 +
"aliases": [
 +
"5"
 +
],
 +
"label": "ACT usage",
 +
"example": "true, false, empty",
 +
"type": "boolean",
 +
"suggested": true
 +
}
 +
},
 +
"description": "Standard call target template",
 +
"format": "inline",
 +
"paramOrder": [
 +
"id",
 +
"return",
 +
"name",
 +
"args",
 +
"act"
 +
]
 +
}
 +
</templatedata>
 +
</noinclude>

Latest revision as of 09:14, 23 July 2019

Signature:

void {{{name}}}(); // id: {{{id}}}

Standard call target template

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Call IDid 1

no description

Example
0x0001
Unknownrequired
Return typereturn 2

no description

Example
void, int, float
Auto value
Stringsuggested
Call namename 3

no description

Auto value
Stringrequired
Argument listargs 4

no description

Example
float posx, float posy, float posz
Stringsuggested
ACT usageact 5

no description

Example
true, false, empty
Booleansuggested