Class NetcodeSessionBuilder.InputTypeSelector
- Namespace
- Backdash
- Assembly
- Backdash.dll
Selector for INetcodeSession<TInput> input type
public sealed class NetcodeSessionBuilder.InputTypeSelector
- Inheritance
-
NetcodeSessionBuilder.InputTypeSelector
- Inherited Members
Methods
Custom<T>(IBinarySerializer<T>)
Choose a custom type and serializer for the input type.
public NetcodeSessionBuilder.InputTypeSelected<T> Custom<T>(IBinarySerializer<T> serializer) where T : unmanaged
Parameters
serializer
IBinarySerializer<T>
Returns
Type Parameters
T
Enum<T>()
Choose an Enum<T>() as INetcodeSession<TInput> input type
public NetcodeSessionBuilder.InputTypeSelected<T> Enum<T>() where T : unmanaged, Enum
Returns
Type Parameters
T
Integer<T>()
Choose an IBinaryInteger<TSelf> as INetcodeSession<TInput> input type
public NetcodeSessionBuilder.InputTypeSelected<T> Integer<T>() where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T>
Returns
Type Parameters
T
Integer<T>(bool)
Choose an IBinaryInteger<TSelf> as INetcodeSession<TInput> input type
public NetcodeSessionBuilder.InputTypeSelected<T> Integer<T>(bool isUnsigned) where T : unmanaged, IBinaryInteger<T>
Parameters
isUnsigned
bool
Returns
Type Parameters
T
Struct<T>()
Choose a raw unmanaged value type as input type.
Must not be a reference type or a value type that contains references.
This DO NOT use custom Endianness for T
integer fields.
public NetcodeSessionBuilder.InputTypeSelected<T> Struct<T>() where T : unmanaged
Returns
Type Parameters
T
- See Also