27 std::string owner_uuid_;
34 [[nodiscard]]
const std::string&
uuid() const noexcept;
37 [[nodiscard]] const std::
string&
owner_uuid() const noexcept;
49 std::string
type_name()
const override {
return "NetworkIdentity"; }
Base class for all components that can be attached to GameObjects.
Definition component.h:24
Component that gives a GameObject a network identity (UUID) and dirty flag.
Definition network_identity.h:24
bool is_dirty() const noexcept
const std::string & owner_uuid() const noexcept
void mark_dirty() noexcept
const std::string & uuid() const noexcept
void on_deserialize(const std::vector< uint8_t > &, size_t &) override
Deserializes the component's state from a byte array.
void update(float) override
Definition network_identity.h:45
std::string type_name() const override
Provides a consistent type name for the component.
Definition network_identity.h:49
void clear_dirty() noexcept
void set_owner_uuid(const std::string &owner) noexcept
void on_serialize(std::vector< uint8_t > &) const override
Serializes the component's state into a byte array.
void set_uuid(const std::string &uuid) noexcept
NetworkIdentity(const std::string &uuid)