-
Notifications
You must be signed in to change notification settings - Fork 2
Port Creation Methods
Hippolippo edited this page Oct 17, 2022
·
2 revisions
public static AgentGestalt.Port CreateCommandPort(AgentGestalt gestalt, string name, string description, int operation);-
gestalt
The gestalt for the custom node, can be created usingPlasmaModding.CustomNodeManager.CreateGestalt -
name
The display name for the port in-game -
description
The description for the port in-game -
operation
The id number that will be used in the[SketchNodePortOperation(x)]attribute in the custom node's Agent class to describe this node being activated
- New
AgentGestalt.Portobject for a port.
- Adds the created port to the gestalt provided through the
gestaltparameter
CreatePropertyPort(AgentGestalt, string, string, Behavior.Data.Types, bool, Behavior.Data?, string?)
public static AgentGestalt.Port CreatePropertyPort(AgentGestalt gestalt, string name, string description, Behavior.Data.Types datatype = Behavior.Data.Types.None, bool configurable = true, Behavior.Data? defaultData = null, string? reference_name = null);-
gestalt
The gestalt for the custom node, can be created usingPlasmaModding.CustomNodeManager.CreateGestalt -
name
The display name for the port in-game and the name it will be referenced by when callingPlasmaModding.CustomAgent.GetPropertyifreference_nameisnull -
description
The description for the port in-game
-
datatype- default:Behavior.Data.Types.None
A value in theBehavior.Data.Typesenum that describes the type of data that the port should accept -
configurable- default:true
Whether or not the property should be manually editable -
defaultData- default:nullBehavior.Dataobject matching the type specified by the parameterdatatypedescribing what the default value of the property should be -
reference_name- default:null
If this value is notnull, this string will be used to reference the port when callingPlasmaModding.CustomAgent.GetPropertyinstead ofname, Must use if multiple property ports with the same name are present
- New
AgentGestalt.Portobject for a port.
- Adds the created port to the gestalt provided through the
gestaltparameter
public static AgentGestalt.Port CreateOutputPort(AgentGestalt gestalt, string name, string description, Behavior.Data.Types datatype = Behavior.Data.Types.None, bool configurable = true, Behavior.Data? defaultData = null, string? reference_name = null)-
gestalt
The gestalt for the custom node, can be created usingPlasmaModding.CustomNodeManager.CreateGestalt -
name
The display name for the port in-game and the name it will be referenced by when callingPlasmaModding.CustomAgent.WriteOutputifreference_nameisnull -
description
The description for the port in-game
-
datatype- default:Behavior.Data.Types.None
A value in theBehavior.Data.Typesenum that describes the type of data that the port will output -
configurable- default:true
Whether or not the property should be manually editable -
defaultData- default:nullBehavior.Dataobject matching the type specified by the parameterdatatypedescribing what the default value of the property should be -
reference_name- default:null
If this value is notnull, this string will be used to reference the port when callingPlasmaModding.CustomAgent.WriteOutputinstead ofname, Must use if multiple output ports with the same name are present
- New
AgentGestalt.Portobject for a port.
- Adds the created port to the gestalt provided through the
gestaltparameter