update RigConfig

This commit is contained in:
MihailRis
2024-07-01 05:30:27 +03:00
parent 1b41a75cf4
commit beac332c96
15 changed files with 230 additions and 62 deletions
+6
View File
@@ -8,6 +8,10 @@
#include "../typedefs.hpp"
#include "../maths/aabb.hpp"
namespace rigging {
class RigConfig;
}
struct EntityDef {
/// @brief Entity string id (with prefix included)
std::string const name;
@@ -15,9 +19,11 @@ struct EntityDef {
std::string scriptName = name.substr(name.find(':')+1);
glm::vec3 hitbox {0.5f};
std::vector<AABB> triggers {};
std::string rigName = name.substr(name.find(":")+1);
struct {
entityid_t id;
rigging::RigConfig* rig;
} rt {};
EntityDef(const std::string& name) : name(name) {}