Photon Fusion
2.1.1
Represents a set of buttons that can be networked. More...
Inherits INetworkStruct.
Public Member Functions | |
| readonly bool | Equals (NetworkButtons other) |
| Determines whether the specified NetworkButtons is equal to the current NetworkButtons. | |
| override readonly bool | Equals (object obj) |
| Determines whether the specified object is equal to the current NetworkButtons. | |
| override readonly int | GetHashCode () |
| Serves as the default hash function. | |
| NetworkButtons | GetPressed (NetworkButtons previous) |
| Gets the buttons that were pressed since the previous state. | |
| NetworkButtons | GetReleased (NetworkButtons previous) |
| Gets the buttons that were released since the previous state. | |
| bool | IsSet (int button) |
| Checks if the button at the specified index is set. | |
| bool | IsSet< T > (T button) |
| Checks if the button of the specified enum type is set. | |
| NetworkButtons (int buttons) | |
| Initializes a new instance of the NetworkButtons struct with the specified buttons state. | |
| void | Set (int button, bool state) |
| Sets the button at the specified index to the specified state. | |
| void | Set< T > (T button, bool state) |
| Sets the button of the specified enum type to the specified state. | |
| void | SetAllDown () |
| Sets all buttons to down. | |
| void | SetAllUp () |
| Sets all buttons to up. | |
| void | SetDown (int button) |
| Sets the button at the specified index to down. | |
| void | SetDown< T > (T button) |
| Sets the button of the specified enum type to down. | |
| void | SetUp (int button) |
| Sets the button at the specified index to up. | |
| void | SetUp< T > (T button) |
| Sets the button of the specified enum type to up. | |
| bool | WasPressed (NetworkButtons previous, int button) |
| Checks if the button at the specified index was pressed since the previous state. | |
| bool | WasPressed< T > (NetworkButtons previous, T button) |
| Checks if the button of the specified enum type was pressed since the previous state. | |
| bool | WasReleased (NetworkButtons previous, int button) |
| Checks if the button at the specified index was released since the previous state. | |
| bool | WasReleased< T > (NetworkButtons previous, T button) |
| Checks if the button of the specified enum type was released since the previous state. | |
Public Attributes | |
| NetworkButtons | |
| Gets the buttons that were pressed or released since the previous state. | |
Properties | |
| readonly int | Bits [get] |
| Gets the bits representing the state of the buttons. | |
Represents a set of buttons that can be networked.
| NetworkButtons | ( | int | buttons | ) |
Initializes a new instance of the NetworkButtons struct with the specified buttons state.
| buttons | The integer representing the state of the buttons. |
| readonly bool Equals | ( | NetworkButtons | other | ) |
Determines whether the specified NetworkButtons is equal to the current NetworkButtons.
| other | The NetworkButtons to compare with the current NetworkButtons. |
| override readonly bool Equals | ( | object | obj | ) |
Determines whether the specified object is equal to the current NetworkButtons.
| obj | The object to compare with the current NetworkButtons. |
| override readonly int GetHashCode | ( | ) |
Serves as the default hash function.
| NetworkButtons GetPressed | ( | NetworkButtons | previous | ) |
Gets the buttons that were pressed since the previous state.
| previous | The previous state of the buttons. |
| NetworkButtons GetReleased | ( | NetworkButtons | previous | ) |
Gets the buttons that were released since the previous state.
| previous | The previous state of the buttons. |
| bool IsSet | ( | int | button | ) |
Checks if the button at the specified index is set.
| button | The index of the button to check. |
| bool IsSet< T > | ( | T | button | ) |
Checks if the button of the specified enum type is set.
| T | The enum type of the button. |
| button | The button of type T to check. |
| T | : | unmanaged | |
| T | : | Enum |
| void Set | ( | int | button, |
| bool | state ) |
Sets the button at the specified index to the specified state.
| button | The index of the button to set. |
| state | The state to set the button to. |
| void Set< T > | ( | T | button, |
| bool | state ) |
Sets the button of the specified enum type to the specified state.
| T | The enum type of the button. |
| button | The button of type T to set. |
| state | The state to set the button to. |
| T | : | unmanaged | |
| T | : | Enum |
| void SetDown | ( | int | button | ) |
Sets the button at the specified index to down.
| button | The index of the button to set to down. |
| void SetDown< T > | ( | T | button | ) |
Sets the button of the specified enum type to down.
| T | The enum type of the button. |
| button | The button of type T to set to down. |
| T | : | unmanaged | |
| T | : | Enum |
| void SetUp | ( | int | button | ) |
Sets the button at the specified index to up.
| button | The index of the button to set to up. |
| void SetUp< T > | ( | T | button | ) |
Sets the button of the specified enum type to up.
| T | The enum type of the button. |
| button | The button of type T to set to up. |
| T | : | unmanaged | |
| T | : | Enum |
| bool WasPressed | ( | NetworkButtons | previous, |
| int | button ) |
Checks if the button at the specified index was pressed since the previous state.
| previous | The previous state of the buttons. |
| button | The index of the button to check. |
| bool WasPressed< T > | ( | NetworkButtons | previous, |
| T | button ) |
Checks if the button of the specified enum type was pressed since the previous state.
| T | The enum type of the button. |
| previous | The previous state of the buttons. |
| button | The button of type T to check. |
| T | : | unmanaged | |
| T | : | Enum |
| bool WasReleased | ( | NetworkButtons | previous, |
| int | button ) |
Checks if the button at the specified index was released since the previous state.
| previous | The previous state of the buttons. |
| button | The index of the button to check. |
| bool WasReleased< T > | ( | NetworkButtons | previous, |
| T | button ) |
Checks if the button of the specified enum type was released since the previous state.
| T | The enum type of the button. |
| previous | The previous state of the buttons. |
| button | The button of type T to check. |
| T | : | unmanaged | |
| T | : | Enum |
| NetworkButtons |
Gets the buttons that were pressed or released since the previous state.
| previous | The previous state of the buttons. |