Interface IInputBufferData
Interface used to handle automatic input command data setup with the IInputComponentData style inputs. This is used internally by code generation, don't use this directly.
Inherited Members
Namespace: Unity.NetCode
Syntax
public interface IInputBufferData : ICommandData, IBufferElementData
Methods
DecrementEventsAndAssignToInput(IntPtr, IntPtr)
Take the stored input data we have and copy to the given input data pointed to. Decrement any event counters by the counter value in the previous command buffer data element.
Declaration
void DecrementEventsAndAssignToInput(IntPtr prevInputBufferDataPtr, IntPtr inputPtr)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | prevInputBufferDataPtr | Command data from the previous tick |
IntPtr | inputPtr | Our stored input data will be copied over to this location |
IncrementEventsAndSetCurrentInputData(IntPtr, IntPtr)
Save the input data with any event counters incremented by the counter from the last stored input in the command buffer for the current tick. See InputEvent.
Declaration
void IncrementEventsAndSetCurrentInputData(IntPtr lastInputBufferDataPtr, IntPtr inputPtr)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | lastInputBufferDataPtr | Pointer to the last command data in the buffer |
IntPtr | inputPtr | Pointer to input data to be saved in this command data |