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.
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
[Obsolete("The IInputBufferData interface has been deprecated. It was meant for internal use and any reference to it is considered an error. Please always use ICommandData instead.", false)]
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 |
---|---|---|
Int |
prevInputBufferDataPtr | Command data from the previous tick |
Int |
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 Input
Declaration
void IncrementEventsAndSetCurrentInputData(IntPtr lastInputBufferDataPtr, IntPtr inputPtr)