Move project in sub
This commit is contained in:
parent
f868166756
commit
ec1af1b8e5
43 changed files with 358 additions and 2 deletions
32
sea_transport/system/object_system.h
Normal file
32
sea_transport/system/object_system.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef OBJECT_SYSTEM_H
|
||||
#define OBJECT_SYSTEM_H
|
||||
|
||||
#include <QVector>
|
||||
|
||||
#include <entities/dpoint_entity.h>
|
||||
#include <entities/vessel_entity.h>
|
||||
|
||||
|
||||
class object_system
|
||||
{
|
||||
private:
|
||||
QVector<dpoint_entity> _dpoints;
|
||||
QVector<vessel_entity> _vessels;
|
||||
|
||||
public:
|
||||
object_system() = default;
|
||||
|
||||
const dpoint_entity* get_dpoint(entity_id oid, bool &success);
|
||||
bool remove_dpoint(entity_id oid);
|
||||
bool add_dpoint(dpoint_entity dpoint);
|
||||
|
||||
const vessel_entity* get_vessel(entity_id oid, bool &success);
|
||||
bool remove_vessel(entity_id oid);
|
||||
bool add_vessel(vessel_entity dpoint);
|
||||
|
||||
|
||||
void init(QDataStream &stream);
|
||||
void shutdown(QDataStream &stream);
|
||||
};
|
||||
|
||||
#endif // OBJECT_SYSTEM_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue