Additional flecs types

wip/source-generators
copygirl 2 years ago
parent 9683582d28
commit 740d289ac8
  1. 12
      src/gaemstone/Flecs/Core.cs
  2. 18
      src/gaemstone/Flecs/DeletionEvent.cs
  3. 8
      src/gaemstone/Flecs/ObserverEvent.cs

@ -6,18 +6,30 @@ namespace gaemstone.Flecs;
public static class Core
{
// Entity Tags
[Tag] public struct Module { }
[Tag] public struct Prefab { }
[Tag] public struct SlotOf { }
[Tag] public struct Disabled { }
[Tag] public struct Empty { }
// Entities
[Entity] public struct World { }
[Entity(Name = "*")] public struct Wildcard { }
[Entity(Name = "_")] public struct Any { }
[Entity] public struct This { }
[Entity(Name = "$")] public struct Variable { }
[Entity] public struct Flag { }
// Entity Relationships
[Tag, Relation] public struct IsA { }
[Tag, Relation] public struct ChildOf { }
[Tag, Relation] public struct DependsOn { }
// Component / Relationship Properties
[Tag] public struct Transitive { }
[Tag] public struct Reflexive { }
[Tag] public struct Symmetric { }

@ -0,0 +1,18 @@
using gaemstone.ECS;
namespace gaemstone.Flecs;
[Module("flecs", "core")]
public static class DeletionEvent
{
[Tag, Relation] public struct OnDelete { }
[Tag, Relation] public struct OnDeleteTarget { }
}
[Module("flecs", "core")]
public static class DeletionBehavior
{
[Tag] public struct Remove { }
[Tag] public struct Delete { }
[Tag] public struct Panic { }
}

@ -9,14 +9,6 @@ public static class ObserverEvent
[Entity] public struct OnRemove { }
[Entity] public struct OnSet { }
[Entity] public struct UnSet { }
// [Entity] public struct OnDelete { }
// [Entity] public struct OnCreateTable { }
// [Entity] public struct OnDeleteTable { }
[Entity] public struct OnTableEmpty { }
[Entity] public struct OnTableFilled { }
// [Entity] public struct OnCreateTrigger { }
// [Entity] public struct OnDeleteTrigger { }
// [Entity] public struct OnDeleteObservable { }
// [Entity] public struct OnComponentHooks { }
// [Entity] public struct OnDeleteTarget { }
}

Loading…
Cancel
Save