Skip to content
Hippolippo edited this page Oct 17, 2022 · 16 revisions

Using Custom Node Library:

Create a custom node using this Library

Note: This library requires that its methods are called before [Assembly-CSharp.dll]Holder.Awake so make sure the mod entry is happening at least prior to that

  1. Create a new class that inherits CustomAgent
  2. Create a gestalt using CustomNodeManager.CreateGestalt
  3. Add any ports to the gestalt using CustomNodeManager.CreateCommandPort, CustomNodeManager.CreatePropertyPort and CustomNodeManager.CreateNode
  4. Create the node using CustomNodeManager.CreateNode

CustomNodeManager Methods

  • Create Gestalt: PlasmaModding.CustomNodeManager.CreateGestalt(Type, string, string?, AgentCategoryEnum)
  • Create Command Port: CreateCommandPort(AgentGestalt, string, string, int)
  • Create Property Port: CreatePropertyPort(AgentGestalt, string, string, Behavior.Data.Types, bool, Behavior.Data?, string?)
  • Create Output Port: CreateOutputPort(AgentGestalt, string, string, Behavior.Data.Types, bool, Behavior.Data?, string?)

Clone this wiki locally