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