mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add "triggers" entity property
This commit is contained in:
parent
1f257d2db2
commit
15496070e0
7 changed files with 28 additions and 5 deletions
|
|
@ -2,9 +2,11 @@
|
|||
#define OBJECTS_ENTITY_DEF_HPP_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "../typedefs.hpp"
|
||||
#include "../maths/aabb.hpp"
|
||||
|
||||
struct EntityDef {
|
||||
/// @brief Entity string id (with prefix included)
|
||||
|
|
@ -12,6 +14,7 @@ struct EntityDef {
|
|||
|
||||
std::string scriptName = name.substr(name.find(':')+1);
|
||||
glm::vec3 hitbox {0.5f};
|
||||
std::vector<AABB> triggers {};
|
||||
|
||||
struct {
|
||||
entityid_t id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue