update sqlitecpp & merge property settings into properties
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
ff9bf0c14a
commit
88ca7769d1
39 changed files with 412 additions and 253 deletions
0
src/objects/properties/number_property.cpp
Normal file
0
src/objects/properties/number_property.cpp
Normal file
5
src/objects/properties/number_property.hpp
Normal file
5
src/objects/properties/number_property.hpp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
//
|
||||
// Created by Jonathan Purol on 26.11.23.
|
||||
//
|
||||
|
||||
export module number_property.hpp;
|
||||
0
src/objects/properties/property.cpp
Normal file
0
src/objects/properties/property.cpp
Normal file
15
src/objects/properties/property.hpp
Normal file
15
src/objects/properties/property.hpp
Normal 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;
|
||||
};
|
||||
0
src/objects/properties/property_source.cpp
Normal file
0
src/objects/properties/property_source.cpp
Normal file
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;
|
||||
};
|
||||
0
src/objects/properties/text_property.cpp
Normal file
0
src/objects/properties/text_property.cpp
Normal file
8
src/objects/properties/text_property.hpp
Normal file
8
src/objects/properties/text_property.hpp
Normal 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
|
||||
0
src/objects/properties/toggle_property.cpp
Normal file
0
src/objects/properties/toggle_property.cpp
Normal file
7
src/objects/properties/toggle_property.hpp
Normal file
7
src/objects/properties/toggle_property.hpp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <objects/properties/property.hpp>
|
||||
|
||||
struct IkarusToggleProperty final : IkarusProperty {
|
||||
IkarusToggleProperty(struct IkarusProject * project, IkarusId id);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue