4#include <unordered_map>
19 [[nodiscard]]
bool is_valid()
const {
return id != 0; }
37struct std::hash<
sd::EntityHandle> {
39 return std::hash<U32>{}(h.id);
Definition Application.hpp:22
Definition Command.hpp:25
void(* deserialize_fn)(void *data, Serializer &s)
Definition Command.hpp:31
U64 type_id
Definition Command.hpp:26
void(* execute_fn)(void *data, EntityManager< ComponentGroup<> > &em, CommandQueue &queue)
Definition Command.hpp:29
void(* serialize_fn)(void *data, Serializer &s)
Definition Command.hpp:30
void * data
Definition Command.hpp:27
Definition CommandQueue.hpp:19
Definition Command.hpp:16
U32 id
Definition Command.hpp:17
bool operator==(const EntityHandle &other) const
Definition Command.hpp:21
bool operator!=(const EntityHandle &other) const
Definition Command.hpp:22
bool is_valid() const
Definition Command.hpp:19
Definition EntityManager.hpp:64
Definition serialization.hpp:38
std::size_t operator()(sd::EntityHandle h) const noexcept
Definition Command.hpp:38
std::uint32_t U32
Definition types.hpp:15
std::uint64_t U64
Definition types.hpp:16