All entities now have GID
This commit is contained in:
parent
eb097588ba
commit
2be2e9f5e3
9 changed files with 59 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue