All entities now have GID

This commit is contained in:
Andrew nuark G 2020-12-23 19:00:57 +07:00
parent eb097588ba
commit 2be2e9f5e3
9 changed files with 59 additions and 11 deletions

View file

@ -10,6 +10,8 @@
class cargo_entity : public IEntity {
private:
static entity_id __global_id;
entity_id _id = 0;
QString _title;
unsigned int _volume = 50000;
@ -24,6 +26,8 @@ public:
void serialize(QDataStream &output);
void deserialize(QDataStream &input);
static void preloadGlobalId(entity_id gid);
static entity_id GID();
};
#endif // CARGO_ENTITY_H