Difference between revisions of "Template:Call"

From Final Fantasy XII Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Signature:
 
Signature:
 
{{#tag:syntaxhighlight|
 
{{#tag:syntaxhighlight|
{{#if:{{{return|}}}|{{{return}}}|void}} {{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}}|
+
{{#if:{{{return|}}}|{{{return}}}|void}} {{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}}{{#ifeq:{{{act|}}}|true|
 +
//or in a context of another script
 +
scriptName.{{#if:{{{return|}}}|{{{return}}}|void}} {{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}}|}}|
 
lang=cpp
 
lang=cpp
 
}}
 
}}
Line 44: Line 46:
 
"example": "0x0001",
 
"example": "0x0001",
 
"required": true
 
"required": true
 +
},
 +
"act": {
 +
"aliases": [
 +
"5"
 +
],
 +
"label": "ACT usage",
 +
"example": "true, false, empty",
 +
"type": "boolean",
 +
"suggested": true
 
}
 
}
 
},
 
},
Line 52: Line 63:
 
"return",
 
"return",
 
"name",
 
"name",
"args"
+
"args",
 +
"act"
 
]
 
]
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

Revision as of 08:50, 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