mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
24 lines
521 B
C++
24 lines
521 B
C++
#ifndef OBJECTS_ENTITY_DEF_HPP_
|
|
#define OBJECTS_ENTITY_DEF_HPP_
|
|
|
|
#include <string>
|
|
#include <glm/glm.hpp>
|
|
|
|
#include "../typedefs.hpp"
|
|
|
|
struct EntityDef {
|
|
/// @brief Entity string id (with prefix included)
|
|
std::string const name;
|
|
|
|
std::string scriptName = name.substr(name.find(':')+1);
|
|
glm::vec3 hitbox {0.5f};
|
|
|
|
struct {
|
|
entityid_t id;
|
|
} rt {};
|
|
|
|
EntityDef(const std::string& name) : name(name) {}
|
|
EntityDef(const EntityDef&) = delete;
|
|
};
|
|
|
|
#endif // OBJECTS_ENTITY_DEF_HPP_
|