ID for a NetworkObject Prefab which has been cataloged in a NetworkProjectConfig.PrefabTable. More...
Inherits INetworkStruct, and IEquatable< NetworkObjectTypeId >.
Classes | |
class | EqualityComparer |
NetworkObjectTypeId Comparer More... | |
Public Member Functions | |
bool | Equals (NetworkObjectTypeId other) |
Checks if the current NetworkObjectTypeId instance is equal to another NetworkObjectTypeId instance. More... | |
override bool | Equals (object obj) |
Determines whether the specified object is equal to the current NetworkObjectTypeId instance. More... | |
override int | GetHashCode () |
Generates a hash code for the current NetworkObjectTypeId instance. More... | |
override string | ToString () |
Returns a string that represents the current NetworkObjectTypeId instance. More... | |
Public Attributes | |
uint | _value0 |
Represents the first part of the value of a NetworkObjectTypeId. More... | |
uint | _value1 |
Represents the second part of the value of a NetworkObjectTypeId. More... | |
Static Public Attributes | |
const int | ALIGNMENT = 4 |
Represents the alignment of a NetworkObjectTypeId in memory. More... | |
const int | MAX_SCENE_OBJECT_INDEX = (1 << SCENE_OBJECT_INDEX_BITS) - 1 |
Represents the maximum number of SceneObjects that can be represented by a NetworkObjectTypeId. More... | |
const int | SIZE = 8 |
Represents the size of a NetworkObjectTypeId in bytes. More... | |
const ushort | STRUCT_TYPE_PLAYERDATA = 1 |
Properties | |
uint | AsCustom [get] |
Gets the raw uint value representation of the NetworkObjectTypeId assuming it is a Custom type. More... | |
ushort | AsInternalStructId [get] |
Gets the ushort value representation of the NetworkObjectTypeId assuming it is an InternalStruct type. More... | |
NetworkPrefabId | AsPrefabId [get] |
Gets the NetworkPrefabId representation of the NetworkObjectTypeId assuming it is a Prefab. More... | |
NetworkSceneObjectId | AsSceneObjectId [get] |
Gets the NetworkSceneObjectId representation of the NetworkObjectTypeId assuming it is a SceneObject. More... | |
static EqualityComparer | Comparer = new EqualityComparer() [get] |
An instance of the NetworkObjectTypeId EqualityComparer class. More... | |
bool | IsCustom [get] |
Checks if the NetworkObjectTypeId is a Custom type. More... | |
bool | IsNone [get] |
Checks if the NetworkObjectTypeId is invalid. More... | |
bool | IsPrefab [get] |
Checks if the NetworkObjectTypeId is a Prefab. More... | |
bool | IsSceneObject [get] |
Checks if the NetworkObjectTypeId is a SceneObject. More... | |
bool | IsStruct [get] |
Checks if the NetworkObjectTypeId is an InternalStruct. More... | |
bool | IsValid [get] |
Checks if the NetworkObjectTypeId is valid. More... | |
NetworkTypeIdKind | Kind [get] |
Gets the kind of the NetworkObjectTypeId. More... | |
static NetworkObjectTypeId | PlayerData [get] |
Represents a NetworkObjectTypeId for the PlayerData. More... | |
ID for a NetworkObject Prefab which has been cataloged in a NetworkProjectConfig.PrefabTable.
bool Equals | ( | NetworkObjectTypeId | other | ) |
Checks if the current NetworkObjectTypeId instance is equal to another NetworkObjectTypeId instance.
other | The other NetworkObjectTypeId instance to compare with the current instance. |
override bool Equals | ( | object | obj | ) |
Determines whether the specified object is equal to the current NetworkObjectTypeId instance.
obj | The object to compare with the current NetworkObjectTypeId instance. |
|
static |
Creates a NetworkObjectTypeId from a raw uint value representing a Custom type.
raw | The raw uint value to use. |
|
static |
Creates a NetworkObjectTypeId from a NetworkPrefabId.
prefabId | The NetworkPrefabId to use. |
ArgumentException | Thrown when the provided NetworkPrefabId is not valid. |
|
static |
|
static |
Creates a NetworkObjectTypeId from a SceneRef, an object index, and an optional NetworkSceneLoadId.
sceneRef | The SceneRef to use. |
objIndex | The object index to use. |
loadId | The NetworkSceneLoadId to use. Defaults to default(NetworkSceneLoadId). |
ArgumentException | Thrown when the provided SceneRef is not valid. |
ArgumentOutOfRangeException | Thrown when the provided object index is out of range. |
|
static |
Creates a NetworkObjectTypeId from a ushort value representing an InternalStruct type.
structId | The ushort value to use. |
override int GetHashCode | ( | ) |
Generates a hash code for the current NetworkObjectTypeId instance.
|
static |
Converts a NetworkPrefabId instance to a NetworkObjectTypeId instance.
prefabId | The NetworkPrefabId instance to convert. |
|
static |
Determines whether two NetworkObjectTypeId instances are not equal.
|
static |
Determines whether two NetworkObjectTypeId instances are equal.
override string ToString | ( | ) |
Returns a string that represents the current NetworkObjectTypeId instance.
uint _value0 |
Represents the first part of the value of a NetworkObjectTypeId.
uint _value1 |
Represents the second part of the value of a NetworkObjectTypeId.
|
static |
Represents the alignment of a NetworkObjectTypeId in memory.
|
static |
Represents the maximum number of SceneObjects that can be represented by a NetworkObjectTypeId.
|
static |
Represents the size of a NetworkObjectTypeId in bytes.
|
get |
Gets the raw uint value representation of the NetworkObjectTypeId assuming it is a Custom type.
The raw uint value representation of the NetworkObjectTypeId.
InvalidOperationException | Thrown when the NetworkObjectTypeId is not a Custom type. |
|
get |
Gets the ushort value representation of the NetworkObjectTypeId assuming it is an InternalStruct type.
The ushort value representation of the NetworkObjectTypeId.
InvalidOperationException | Thrown when the NetworkObjectTypeId is not an InternalStruct type. |
|
get |
Gets the NetworkPrefabId representation of the NetworkObjectTypeId assuming it is a Prefab.
The NetworkPrefabId representation of the NetworkObjectTypeId.
InvalidOperationException | Thrown when the NetworkObjectTypeId is not a Prefab. |
|
get |
Gets the NetworkSceneObjectId representation of the NetworkObjectTypeId assuming it is a SceneObject.
The NetworkSceneObjectId representation of the NetworkObjectTypeId.
InvalidOperationException | Thrown when the NetworkObjectTypeId is not a SceneObject. |
|
staticget |
An instance of the NetworkObjectTypeId EqualityComparer class.
|
get |
Checks if the NetworkObjectTypeId is a Custom type.
|
get |
Checks if the NetworkObjectTypeId is invalid.
|
get |
Checks if the NetworkObjectTypeId is a Prefab.
|
get |
Checks if the NetworkObjectTypeId is a SceneObject.
|
get |
Checks if the NetworkObjectTypeId is an InternalStruct.
|
get |
Checks if the NetworkObjectTypeId is valid.
|
get |
Gets the kind of the NetworkObjectTypeId.
|
staticget |
Represents a NetworkObjectTypeId for the PlayerData.