Photon Fusion 2.0.12

Classes | Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
NetworkObjectNestingKey Struct Reference

A key used to identify a network object nesting. More...

Inherits INetworkStruct, and IEquatable< NetworkObjectNestingKey >.

Classes

class  EqualityComparer
 Implements the IEqualityComparer interface. More...
 

Public Member Functions

readonly bool Equals (NetworkObjectNestingKey other)
 Checks if the current instance of NetworkObjectNestingKey is equal to another instance of the same type. More...
 
readonly override bool Equals (object obj)
 Checks if the current instance of NetworkObjectNestingKey is equal to another object. More...
 
readonly override int GetHashCode ()
 Serves as the default hash function. More...
 
 NetworkObjectNestingKey (int value)
 Initializes a new instance of the NetworkObjectNestingKey struct with a specified value. More...
 
readonly override string ToString ()
 Returns a string that represents the current object. More...
 

Public Attributes

int Value
 The value of the NetworkObjectNestingKey. More...
 

Static Public Attributes

const int ALIGNMENT = 4
 The alignment of the NetworkObjectNestingKey in bytes. More...
 

Properties

readonly bool IsNone [get]
 Checks if the NetworkObjectNestingKey is none. More...
 
readonly bool IsValid [get]
 Checks if the NetworkObjectNestingKey is valid. More...
 

Detailed Description

A key used to identify a network object nesting.

Constructor & Destructor Documentation

◆ NetworkObjectNestingKey()

NetworkObjectNestingKey ( int  value)

Initializes a new instance of the NetworkObjectNestingKey struct with a specified value.

Parameters
valueThe value of the NetworkObjectNestingKey.

Member Function Documentation

◆ Equals() [1/2]

readonly bool Equals ( NetworkObjectNestingKey  other)

Checks if the current instance of NetworkObjectNestingKey is equal to another instance of the same type.

Parameters
otherAn instance of NetworkObjectNestingKey to compare with the current instance.
Returns
True if the current instance is equal to the other parameter; otherwise, false.

◆ Equals() [2/2]

readonly override bool Equals ( object  obj)

Checks if the current instance of NetworkObjectNestingKey is equal to another object.

Parameters
objAn object to compare with the current instance.
Returns
True if the current instance is equal to the obj parameter; otherwise, false.

◆ GetHashCode()

readonly override int GetHashCode ( )

Serves as the default hash function.

Returns
A hash code for the current object.

◆ ToString()

readonly override string ToString ( )

Returns a string that represents the current object.

Returns
A string that represents the current object.

Member Data Documentation

◆ ALIGNMENT

const int ALIGNMENT = 4
static

The alignment of the NetworkObjectNestingKey in bytes.

◆ Value

int Value

The value of the NetworkObjectNestingKey.

Property Documentation

◆ IsNone

readonly bool IsNone
get

Checks if the NetworkObjectNestingKey is none.

Returns
True if the value of the NetworkObjectNestingKey is 0; otherwise, false.

◆ IsValid

readonly bool IsValid
get

Checks if the NetworkObjectNestingKey is valid.

Returns
True if the value of the NetworkObjectNestingKey is greater than 0; otherwise, false.