Struct ForceNetworkSerializeByMemcpy<T>
This is a wrapper that adds INetworkSerializeByMemcpy
support to existing structs that the developer
doesn't have the ability to modify (for example, external structs like Guid
).
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public struct ForceNetworkSerializeByMemcpy<T> : INetworkSerializeByMemcpy, IEquatable<ForceNetworkSerializeByMemcpy<T>> where T : unmanaged, IEquatable<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
Name | Description |
---|---|
Force |
The default constructor for Force |
Fields
Name | Description |
---|---|
Value | The wrapped value |
Methods
Name | Description |
---|---|
Equals(object) | Check if this value is equal to a boxed object value |
Equals(Force |
Check if wrapped values are equal |
Get |
Obtains the wrapped value's hash code |
Operators
Name | Description |
---|---|
implicit operator T(Force |
Convert implicitly from the ForceNetworkSerializeByMemcpy wrapper to the underlying value |
implicit operator Force |
Convert implicitly from a T value to a ForceNetworkSerializeByMemcpy wrapper |