mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update RigConfig
This commit is contained in:
parent
1b41a75cf4
commit
beac332c96
15 changed files with 230 additions and 62 deletions
|
|
@ -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) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue