update sqlitecpp & merge property settings into properties

Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
folling 2023-11-27 11:24:55 +01:00 committed by Folling
parent ff9bf0c14a
commit 88ca7769d1
Signed by: folling
SSH key fingerprint: SHA256:S9qEx5WCFFLK49tE/LKnKuJYM5sw+++Dn6qJbbyxnCY
39 changed files with 412 additions and 253 deletions

View file

@ -0,0 +1,5 @@
//
// Created by Jonathan Purol on 26.11.23.
//
export module number_property.hpp;

View file

View file

@ -0,0 +1,15 @@
#pragma once
#include <objects/object.hpp>
struct IkarusProperty : IkarusObject {
IkarusProperty(struct IkarusProject * project, IkarusId id);
IkarusProperty(IkarusProperty const&) = default;
IkarusProperty(IkarusProperty&&) = default;
IkarusProperty& operator=(IkarusProperty const&) = default;
IkarusProperty& operator=(IkarusProperty&&) = default;
~IkarusProperty() override = default;
};

View 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;
};

View file

View file

@ -0,0 +1,8 @@
//
// Created by Jonathan Purol on 26.11.23.
//
#ifndef TEXT_PROPERTY_HPP
#define TEXT_PROPERTY_HPP
#endif //TEXT_PROPERTY_HPP

View file

@ -0,0 +1,7 @@
#pragma once
#include <objects/properties/property.hpp>
struct IkarusToggleProperty final : IkarusProperty {
IkarusToggleProperty(struct IkarusProject * project, IkarusId id);
};