Template:Table ComponentTriggers: Difference between revisions

Template page
imported>Epsilion
mNo edit summary
 
update table headers and example
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{| class="wikitable" style="font-size:10pt;"
== Method type and Arguments ==
! colspan="3" style="background: lightblue; font-size:10pt;" | Triggers
Explains what kind of method it is ([[Type:Action`1|Action]], [[Type:Func`1|Func`1]], etc) and the variable types and names of the arguments (ex: "point: [[Types:Float3|Float3]], weight: [[Types:Float|Float]]"
|- style="font-size:10pt; text-align:center; font-weight:bold;"
 
| Name
== Examples ==  
| Arguments
 
| Description
From [[Component:RandomObjectSpawner|RandomObjectSpawner]]
 
{{Table ComponentTriggers
|Spawn()|[[Type:Action`1|Action]]| Spawns a slot randomly selected from <code>Templates</code>, located at the origin of this component's parent slot.
|SpawnAtPoint()|[[Type:Action`1|Action`1]]&lt;point: [[Types:Float3|Float3]]&gt;| Spawns a slot randomly selected from <code>Templates</code>, located at the position specified in the <code>Float3</code> argument
}}
 
<onlyinclude><includeonly>{| class="wikitable mw-collapsible"
|+ Triggers
|-
! Method Name
! Method type and Arguments.
! Description
{{#if:{{{1|}}}|
{{#if:{{{1|}}}|
{{!}}-
{{!}}-
Line 236: Line 248:
}}
}}
|-
|-
|}
|}</includeonly></onlyinclude>

Latest revision as of 19:39, 13 November 2024

Method type and Arguments

Explains what kind of method it is (Action, Func`1, etc) and the variable types and names of the arguments (ex: "point: Float3, weight: Float"

Examples

From RandomObjectSpawner

Triggers
Method Name Method type and Arguments. Description
Spawn() Action Spawns a slot randomly selected from Templates, located at the origin of this component's parent slot.
SpawnAtPoint() Action`1<point: Float3> Spawns a slot randomly selected from Templates, located at the position specified in the Float3 argument