add src/ikarus subdir and make names unique for objects per scope
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
ced123b628
commit
9f943cc6a2
51 changed files with 590 additions and 735 deletions
22
src/ikarus/objects/entity.hpp
Normal file
22
src/ikarus/objects/entity.hpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <ikarus/objects/object.hpp>
|
||||
|
||||
struct IkarusEntity : IkarusObject {
|
||||
public:
|
||||
inline IkarusEntity(struct IkarusProject * project, IkarusId id):
|
||||
IkarusObject{project, id} {}
|
||||
|
||||
IkarusEntity(IkarusEntity const &) = default;
|
||||
IkarusEntity(IkarusEntity &&) = default;
|
||||
|
||||
IkarusEntity & operator=(IkarusEntity const &) = default;
|
||||
IkarusEntity & operator=(IkarusEntity &&) = default;
|
||||
|
||||
~IkarusEntity() override = default;
|
||||
|
||||
public:
|
||||
inline std::string_view get_table_name() const noexcept override {
|
||||
return "entities";
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue