A serializable equivalent of Nullable<FPVector2>. More...
Public Member Functions | |
readonly override int | GetHashCode () |
Computes the hash code for the current NullableFPVector2 object. More... | |
readonly FPVector2 | ValueOrDefault (FPVector2 v) |
If HasValue is true , returns Value. Otherwise returns v . More... | |
Static Public Member Functions | |
static implicit | operator NullableFPVector2 (FPVector2 v) |
Implicitly converts v to NullableFPVector2. More... | |
static void | Serialize (NullableFPVector2 *ptr, IDeterministicFrameSerializer serializer) |
Serializes a NullableFPVector2 object using the given IDeterministicFrameSerializer. More... | |
Public Attributes | |
long | _hasValue |
If 1, then _value is valid. More... | |
FPVector2 | _value |
The value. More... | |
Static Public Attributes | |
const int | SIZE = sizeof(long) + FPVector2.SIZE |
Size of the struct in bytes. More... | |
Properties | |
readonly Boolean | HasValue [get] |
Returns true if this nullable has a value. More... | |
readonly FPVector2 | Value [get] |
Returns current value. More... | |
A serializable equivalent of Nullable<FPVector2>.
|
inlinestatic |
Implicitly converts v to NullableFPVector2.
v |
|
inlinestatic |
Serializes a NullableFPVector2 object using the given IDeterministicFrameSerializer.
ptr | A pointer to the NullableFPVector2 object. |
serializer | The IDeterministicFrameSerializer used for serialization. |
|
inline |
Computes the hash code for the current NullableFPVector2 object.
|
static |
Size of the struct in bytes.
long Photon.Deterministic.NullableFPVector2._hasValue |
If 1, then _value is valid.
FPVector2 Photon.Deterministic.NullableFPVector2._value |
The value.
|
get |
Returns true
if this nullable has a value.