Component for specifying a memory mapping from an entity to a node.
public struct NodeMemoryInput<TTag, TBufferToMove> : IComponentData where TTag : INodeMemoryInputTag where TBufferToMove : struct, IBufferElementData
Type Parameters
Name |
Description |
TTag |
A unique type tag to associate memory mappings with a particular instantiation of
MemoryInputSystem<TTag, TBufferToMove>.
|
TBufferToMove |
The type that this system should move.
|
Constructors
Sets up a mapping of to the given data input buffer port of the given node.
Declaration
public NodeMemoryInput(NodeHandle node, InputPortID port)
Parameters
Declaration
public NodeMemoryInput(NodeHandle node, InputPortID portArray, int arrayIndex)
Parameters
Properties
Declaration
public ushort ArrayIndex { get; }
Property Value
Declaration
public NodeHandle Node { get; }
Property Value
Declaration
public InputPortID Port { get; }
Property Value
Methods
Declaration
public static NodeMemoryInput<TTag, TBufferToMove> Create<TDefinition>(NodeHandle<TDefinition> node, DataInput<TDefinition, Buffer<TBufferToMove>> port)
where TDefinition : NodeDefinition, new()
Parameters
Returns
Type Parameters
Name |
Description |
TDefinition |
|
Declaration
public static NodeMemoryInput<TTag, TBufferToMove> Create<TDefinition>(NodeHandle<TDefinition> node, PortArray<DataInput<TDefinition, Buffer<TBufferToMove>>> portArray, int arrayIndex)
where TDefinition : NodeDefinition, new()
Parameters
Returns
Type Parameters
Name |
Description |
TDefinition |
|