You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
491 B
20 lines
491 B
using static flecs_hub.flecs; |
|
|
|
namespace gaemstone.ECS; |
|
|
|
public struct EntityDesc |
|
{ |
|
public ecs_entity_desc_t Value; |
|
|
|
public string? Name { get => Value.name; set => Value.name.Set(value); } |
|
public string? Symbol { get => Value.symbol; set => Value.symbol.Set(value); } |
|
|
|
public EntityDesc(params ecs_id_t[] ids) |
|
{ |
|
Value = default; |
|
for (var i = 0; i < ids.Length; i++) |
|
Value.add[i] = ids[i]; |
|
} |
|
|
|
public static explicit operator ecs_entity_desc_t(EntityDesc desc) => desc.Value; |
|
}
|
|
|