Photon Fusion 2.0.0

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
NetworkBool Struct Reference

Represents a boolean value that can be networked. More...

Inherits INetworkStruct, and IEquatable< NetworkBool >.

Public Member Functions

bool Equals (NetworkBool other)
 Determines whether the specified NetworkBool is equal to the current NetworkBool.
 
override bool Equals (object obj)
 Determines whether the specified object is equal to the current NetworkBool.
 
override int GetHashCode ()
 Serves as the default hash function.
 
 NetworkBool (bool value)
 Initializes a new instance of the NetworkBool struct with the specified value.
 
override string ToString ()
 Returns a string that represents the current NetworkBool.
 

Static Public Member Functions

static implicit operator bool (NetworkBool val)
 Defines an implicit conversion of a NetworkBool to a bool.
 
static implicit operator NetworkBool (bool val)
 Defines an implicit conversion of a bool to a NetworkBool.
 

Public Attributes

int _value
 

Detailed Description

Represents a boolean value that can be networked.

Constructor & Destructor Documentation

◆ NetworkBool()

NetworkBool ( bool  value)

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

Parameters
valueThe boolean value.

Member Function Documentation

◆ Equals() [1/2]

bool Equals ( NetworkBool  other)

Determines whether the specified NetworkBool is equal to the current NetworkBool.

Parameters
otherThe NetworkBool to compare with the current NetworkBool.
Returns
true if the specified NetworkBool is equal to the current NetworkBool; otherwise, false.

◆ Equals() [2/2]

override bool Equals ( object  obj)

Determines whether the specified object is equal to the current NetworkBool.

Parameters
objThe object to compare with the current NetworkBool.
Returns
true if the specified object is equal to the current NetworkBool; otherwise, false.

◆ GetHashCode()

override int GetHashCode ( )

Serves as the default hash function.

Returns
A hash code for the current NetworkBool.

◆ operator bool()

static implicit operator bool ( NetworkBool  val)
static

Defines an implicit conversion of a NetworkBool to a bool.

Parameters
valThe NetworkBool to convert.

◆ operator NetworkBool()

static implicit operator NetworkBool ( bool  val)
static

Defines an implicit conversion of a bool to a NetworkBool.

Parameters
valThe bool to convert.

◆ ToString()

override string ToString ( )

Returns a string that represents the current NetworkBool.

Returns
A string that represents the current NetworkBool.