108 template<typename Processor> static constexpr
void reflect(Processor&& RTTI) {
CE_REFL_DATA(
id); }
150template<>
struct std::hash<
CeresEngine::NetworkEntityID> {
#define CE_EXTERN_COMPONENT(T)
Definition Component.hpp:600
#define CE_ENTITY_OBJECT_HASH(T)
Definition Entity.hpp:784
#define CE_REFLECTABLE_STRUCT
Definition IReflectable.hpp:47
#define CE_REFL_DATA_GETSET(N, G, S)
Definition Macros.hpp:549
#define CE_REFL_DATA(N)
Definition Macros.hpp:541
#define CE_SCRIPT_EXPORT(...)
The CE_SCRIPT_EXPORT macro marks a class or method as exportable and available in scripting environme...
Definition Macros.hpp:247
A type-safe entity type.
Definition Entity.hpp:538
Definition NetworkEntity.hpp:134
Definition Application.hpp:19
std::uint64_t UInt64
Definition DataTypes.hpp:26
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Accessor(const Entity &entity)
Definition Component.hpp:181
auto mutate(T C::*ptr)
Accesses an element from an existing Component.
const T & read(const T C::*ptr) const
Accesses an element from an existing Component.
Components serve as the base for data storage for an entity.
Definition Component.hpp:68
A class that must be inherited by concrete action types.
Definition Action.hpp:33
A template class that wraps a event.
Definition Event.hpp:43
Definition NetworkEntity.hpp:145
Definition NetworkEntity.hpp:141
Definition NetworkEntity.hpp:146
Definition NetworkEntity.hpp:111
void setID(const NetworkEntityID id)
Definition NetworkEntity.hpp:121
bool hasAuthority() const noexcept
NetworkEntityID getID() const
Definition NetworkEntity.hpp:117
The network identity component is a special component that is added on all entities that must be sync...
Definition NetworkEntity.hpp:96
NetworkEntityID id
The ID of the entity over the network.
Definition NetworkEntity.hpp:103
Definition NetworkEntity.hpp:22
friend constexpr bool operator==(const NetworkEntityID &a, const NetworkEntityID &b) noexcept
Compares two entity IDs for equality.
Definition NetworkEntity.hpp:53
friend constexpr bool operator>(const NetworkEntityID &a, const NetworkEntityID &b) noexcept
Compares two entity IDs for >.
Definition NetworkEntity.hpp:78
friend std::ostream & operator<<(std::ostream &os, const NetworkEntityID &id)
Prints a string representation of the Entity ID.
UInt64 raw
The raw network entity ID.
Definition NetworkEntity.hpp:25
friend constexpr bool operator!=(const NetworkEntityID &a, const NetworkEntityID &b) noexcept
Compares two entity IDs for inequality.
Definition NetworkEntity.hpp:60
friend constexpr bool operator>=(const NetworkEntityID &a, const NetworkEntityID &b) noexcept
Compares two entity IDs for >=.
Definition NetworkEntity.hpp:84
friend constexpr bool operator<(const NetworkEntityID &a, const NetworkEntityID &b) noexcept
Compares two entity IDs for <.
Definition NetworkEntity.hpp:66
friend constexpr bool operator<=(const NetworkEntityID &a, const NetworkEntityID &b) noexcept
Compares two entity IDs for <=.
Definition NetworkEntity.hpp:72
Definition NetworkEntity.hpp:140