entity.h
Go to the documentation of this file.
23 class Entity : public IEntityCore, public interfaces::IModelData<EntityData>, public interfaces::ASerializable<Entity>
28 explicit Entity(const QString& name, ::core::ENTITY type = ::core::ENTITY::UNDEFINED, qint32 ctId = -1);
29 explicit Entity(qint32 id, const QString& name, ::core::ENTITY type = ::core::ENTITY::UNDEFINED, qint32 ctId = -1);
Allow inherited class to serialize and deserialize itself.
Definition: iserializable.h:33
Entity & operator=(const Entity &other)
Definition: entity.cpp:136
bool setEntityType(::core::ENTITY e)
Definition: entity.cpp:84
Definition: entity.h:23
virtual ~IEntityCore()=default
Definition: imodeldata.h:9
Definition: entitydata.h:12
bool setData(const EntityData &d) override
Definition: entity.cpp:57
bool setVisibility(::core::VISIBILITY v)
Definition: entity.cpp:123
Definition: guitype.h:14
virtual void replicate() const override
Definition: entity.cpp:142
const EntityData & data() const override
Return the data component.
Definition: entity.cpp:65
Definition: api.h:13
void _deserialize(const QJsonObject &obj) override
Implement this function in order to use deserialize(const QJsonObject &obj)
Definition: entity.cpp:77
Definition: entity.h:16
virtual void replicate() const =0
void serialize(QJsonObject &obj) const override
Implement this function to serialize into QJsonObject.
Definition: entity.cpp:70
::core::VISIBILITY visibility() const
Definition: entity.cpp:131
Entity(::core::ENTITY type=::core::ENTITY::UNDEFINED)
Definition: entity.cpp:12