feat: saving entities (WIP)

This commit is contained in:
MihailRis
2024-07-05 05:16:31 +03:00
parent 019a88ef84
commit f0270d3391
24 changed files with 290 additions and 101 deletions
+10 -2
View File
@@ -15,14 +15,22 @@ namespace rigging {
struct EntityDef {
/// @brief Entity string id (with prefix included)
std::string const name;
std::vector<std::string> components;
glm::vec3 hitbox {0.5f};
std::vector<std::pair<size_t, AABB>> boxTriggers {};
std::vector<std::pair<size_t, float>> radialTriggers {};
std::string rigName = name.substr(name.find(":")+1);
struct {
bool enabled = true;
struct {
bool textures = false;
bool pose = false;
} rig;
} save {};
struct {
entityid_t id;
rigging::RigConfig* rig;