mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: multiple components per entity support
This commit is contained in:
parent
a6aa42a521
commit
8f379f2ee7
8 changed files with 120 additions and 65 deletions
|
|
@ -15,8 +15,9 @@ namespace rigging {
|
|||
struct EntityDef {
|
||||
/// @brief Entity string id (with prefix included)
|
||||
std::string const name;
|
||||
|
||||
std::vector<std::string> components;
|
||||
|
||||
std::string scriptName = name.substr(name.find(':')+1);
|
||||
glm::vec3 hitbox {0.5f};
|
||||
std::vector<std::pair<size_t, AABB>> boxTriggers {};
|
||||
std::vector<std::pair<size_t, float>> radialTriggers {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue