45 static const neolib::uuid sId = { 0x6f45d8be, 0xba9c, 0x4a32, 0xa99e, { 0x37, 0xd3, 0xf2, 0xb4, 0xe7, 0x53 } };
50 static const string sName =
"Rectangle";
62 return component_data_field_type::Vec3;
64 return component_data_field_type::Vec2;
66 return component_data_field_type::ComponentData | component_data_field_type::Optional;
73 static const string sFieldNames[] =
79 return sFieldNames[aFieldIndex];
102 { 0xce3d930, 0x6b18, 0x403b, 0x9680, { 0x89, 0xed, 0x54, 0x83, 0xd5, 0x72 } },
rectangle(i_ecs &aEcs, const vec3 &aPosition, const vec2 &aExtents, const i_texture &aTexture)
rectangle(const rectangle &aOther)
static const entity_archetype & archetype(i_ecs &aEcs)
rectangle(i_ecs &aEcs, const vec3 &aPosition, const vec2 &aExtents, const i_image &aImage, const rect &aTextureRect)
rectangle(i_ecs &aEcs, const vec3 &aPosition, const vec2 &aExtents)
rectangle(i_ecs &aEcs, const vec3 &aPosition, const vec2 &aExtents, const i_texture &aTexture, const rect &aTextureRect)
rectangle(i_ecs &aEcs, const vec3 &aPosition, const vec2 &aExtents, const i_image &aImage)
rectangle(i_ecs &aEcs, const vec3 &aPosition, const vec2 &aExtents, const neogfx::color &aColor)
virtual const i_component & component(component_id aComponentId) const =0
virtual void register_archetype(const i_entity_archetype &aArchetype)=0
virtual bool archetype_registered(const i_entity_archetype &aArchetype) const =0
game::mesh const & to_ecs_component(game::mesh &aResult, const basic_rect< CoordinateType, CoordinateSystem > &aRect, mesh_type aMeshType=mesh_type::Triangles, optional_mat44 const &aTransformation={}, uint32_t aOffset=0)
component_data_field_type