Represents a boolean value that can be networked.
More...
Inherits INetworkStruct, and IEquatable< NetworkBool >.
|
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.
|
|
Represents a boolean value that can be networked.
◆ NetworkBool()
Initializes a new instance of the NetworkBool struct with the specified value.
- Parameters
-
◆ Equals() [1/2]
Determines whether the specified NetworkBool is equal to the current NetworkBool.
- Parameters
-
other | The 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
-
obj | The 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()
Defines an implicit conversion of a NetworkBool to a bool.
- Parameters
-
val | The NetworkBool to convert. |
◆ operator NetworkBool()
Defines an implicit conversion of a bool to a NetworkBool.
- Parameters
-
◆ ToString()
override string ToString |
( |
| ) |
|
Returns a string that represents the current NetworkBool.
- Returns
- A string that represents the current NetworkBool.