update sqlitecpp & merge property settings into properties
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
f847d30c06
commit
c98afbdfa6
39 changed files with 412 additions and 253 deletions
30
src/objects/properties/property_source.hpp
Normal file
30
src/objects/properties/property_source.hpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include <variant>
|
||||
|
||||
#include <ikarus/objects/properties/property_source.h>
|
||||
|
||||
struct IkarusPropertySource {
|
||||
public:
|
||||
using Data = std::variant<IkarusBlueprint *, IkarusEntity *>;
|
||||
|
||||
public:
|
||||
inline explicit IkarusPropertySource(Data data):
|
||||
_data{data} {}
|
||||
|
||||
IkarusPropertySource(IkarusPropertySource const&) = default;
|
||||
IkarusPropertySource(IkarusPropertySource&&) = default;
|
||||
|
||||
IkarusPropertySource& operator=(IkarusPropertySource const&) = default;
|
||||
IkarusPropertySource& operator=(IkarusPropertySource&&) = default;
|
||||
|
||||
~IkarusPropertySource() = default;
|
||||
|
||||
public:
|
||||
[[nodiscard]] inline Data const& get_data() const {
|
||||
return _data;
|
||||
}
|
||||
|
||||
private:
|
||||
std::variant<IkarusBlueprint *, IkarusEntity *> _data;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue