Add accessors for some entities GIDs
This commit is contained in:
parent
76ac624519
commit
1ef4044479
4 changed files with 11 additions and 1 deletions
|
|
@ -75,3 +75,7 @@ void storage_entity::deserialize(QDataStream &input) {
|
|||
void storage_entity::preloadGlobalId(entity_id gid) {
|
||||
storage_entity::__global_id = gid;
|
||||
}
|
||||
|
||||
entity_id storage_entity::GID() {
|
||||
return storage_entity::__global_id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@ public:
|
|||
|
||||
void serialize(QDataStream &output);
|
||||
void deserialize(QDataStream &input);
|
||||
void preloadGlobalId(entity_id gid);
|
||||
static void preloadGlobalId(entity_id gid);
|
||||
static entity_id GID();
|
||||
};
|
||||
|
||||
#endif // STORAGE_ENTITY_H
|
||||
|
|
|
|||
|
|
@ -46,3 +46,7 @@ void vessel_entity::deserialize(QDataStream &input) {
|
|||
void vessel_entity::preloadGlobalId(entity_id gid) {
|
||||
vessel_entity::__global_id = gid;
|
||||
}
|
||||
|
||||
entity_id vessel_entity::GID() {
|
||||
return vessel_entity::__global_id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ public:
|
|||
void serialize(QDataStream &output);
|
||||
void deserialize(QDataStream &input);
|
||||
static void preloadGlobalId(entity_id gid);
|
||||
static entity_id GID();
|
||||
};
|
||||
|
||||
#endif // VESSEL_ENTITY_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue