ScriptGraphs
此内容尚不支持你的语言。
Defined in: logic/ScriptGraphPlugin.ts:219
Resource for game code to reach an agent’s variables and blackboard.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ScriptGraphs(
states):ScriptGraphs
Defined in: logic/ScriptGraphPlugin.ts:220
Parameters
Section titled “Parameters”states
Section titled “states”Map<number, AgentState>
Returns
Section titled “Returns”ScriptGraphs
Methods
Section titled “Methods”blackboard()
Section titled “blackboard()”blackboard(
entity):Blackboard
Defined in: logic/ScriptGraphPlugin.ts:222
Parameters
Section titled “Parameters”entity
Section titled “entity”number
Returns
Section titled “Returns”halted()
Section titled “halted()”halted(
entity):boolean
Defined in: logic/ScriptGraphPlugin.ts:237
Whether the instance spent its step budget and stopped.
Parameters
Section titled “Parameters”entity
Section titled “entity”number
Returns
Section titled “Returns”boolean
setVariable()
Section titled “setVariable()”setVariable(
entity,name,value):void
Defined in: logic/ScriptGraphPlugin.ts:232
Write a graph variable — how game code hands a running graph its input.
Parameters
Section titled “Parameters”entity
Section titled “entity”number
string
Returns
Section titled “Returns”void
variable()
Section titled “variable()”variable(
entity,name):ScriptValue
Defined in: logic/ScriptGraphPlugin.ts:227
A graph variable’s value, or null before the instance has started.
Parameters
Section titled “Parameters”entity
Section titled “entity”number
string