RigsofRods
Soft-body Physics Simulation
|
For backwards compatibility of the 'triggers' feature, the commandkey array must support negative indices of any size without breaking memory. More...
#include <SimData.h>
Public Member Functions | |
command_t & | operator[] (int index) |
Private Attributes | |
std::array< command_t, MAX_COMMANDS+1 > | m_commandkey |
BEWARE: commandkeys are indexed 1-MAX_COMMANDS! More... | |
std::unordered_map< int, command_t > | m_virtualkey |
Negative-indexed commandkeys. More... | |
command_t | m_dummykey |
For backwards compatibility of the 'triggers' feature, the commandkey array must support negative indices of any size without breaking memory.
This class redirects the negative-indexed "virtual" commandkeys to auxiliary hashmap.
|
inline |
|
private |
|
private |