sea_transport_project/sea_transport/entities/IEntity.h
2021-01-10 20:51:06 +07:00

24 lines
419 B
C++

#ifndef IENTITY_H
#define IENTITY_H
#include "ISerializable.h"
//! Alias type for any entity ID
typedef unsigned long long entity_id;
/**
* @brief Base interface for all entities
*
*/
class IEntity : public ISerializable {
public:
/**
* @brief Getter function for entity identificator
*
* @return entity_id entity identficator
*/
virtual entity_id id() const = 0;
};
#endif // IENTITY_H