add "triggers" entity property

This commit is contained in:
MihailRis
2024-06-30 23:14:02 +03:00
parent 1f257d2db2
commit 15496070e0
7 changed files with 28 additions and 5 deletions
+3
View File
@@ -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;