SimCommandHandlers class
#include <Runtime/Input/Public/SimCommand.h>
Who handles each command type in one world. Brain only.
Public types
- using Thunk = void(*)(void*object, const uint8_t*bytes, uint8_t size, uint8_t ownerID)
Public static functions
-
template<typename TObject, SimCommand TCommand>static void Call(void* object, const uint8_t* bytes, uint8_t size, uint8_t ownerID)
- The thunk for TObject::OnCommand(const TCommand&, uint8_t).
Public functions
- void Register(uint32_t type, void* object, Thunk thunk)
- void Deregister(void* object)
- Every handler
objectregistered. - void Dispatch(const SimCommandBlock& block, uint8_t ownerID) const
- Hand each command in
blockto every handler of its type, in the order sent. - auto Size() const -> size_t