From 3370be609b7c29b244bbe566251be87bfe98045a Mon Sep 17 00:00:00 2001 From: BeanCheeseBurrito Date: Sun, 17 Nov 2024 23:09:45 -0800 Subject: [PATCH 1/3] Add Id and Entity method extension code generator --- src/Flecs.NET.Codegen/Generators/Alert.cs | 12 + src/Flecs.NET.Codegen/Generators/Component.cs | 12 + src/Flecs.NET.Codegen/Generators/Entity.cs | 2004 ++++++++++++++++- src/Flecs.NET.Codegen/Generators/Id.cs | 124 + src/Flecs.NET.Codegen/Generators/Observer.cs | 17 +- src/Flecs.NET.Codegen/Generators/Pipeline.cs | 29 +- src/Flecs.NET.Codegen/Generators/System_.cs | 17 +- .../Generators/TimerEntity.cs | 12 + .../Generators/UntypedComponent.cs | 12 + src/Flecs.NET.Codegen/Helpers/Generator.cs | 3 + src/Flecs.NET.Codegen/Helpers/Type.cs | 3 + src/Flecs.NET.Codegen/Program.cs | 4 + src/Flecs.NET/Core/Alert.cs | 4 +- src/Flecs.NET/Core/Component.cs | 2 +- src/Flecs.NET/Core/Entity.cs | 306 +-- src/Flecs.NET/Core/IEntity.cs | 934 +++++++- src/Flecs.NET/Core/IId.cs | 73 + src/Flecs.NET/Core/Id.cs | 2 +- src/Flecs.NET/Core/Observer.cs | 12 +- src/Flecs.NET/Core/Pipeline.cs | 4 +- src/Flecs.NET/Core/System_.cs | 10 +- src/Flecs.NET/Core/TimerEntity.cs | 4 +- src/Flecs.NET/Core/UntypedComponent.cs | 4 +- src/Flecs.NET/Core/World.cs | 4 +- .../Generated/Alert/Alert.Entity.g.cs | 1987 ++++++++++++++++ src/Flecs.NET/Generated/Alert/Alert.Id.g.cs | 114 + .../Generated/Component/Component.Entity.g.cs | 1987 ++++++++++++++++ .../Generated/Component/Component.Id.g.cs | 114 + .../Entity/Entity.ComponentCallbacks/T1.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T10.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T11.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T12.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T13.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T14.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T15.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T16.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T2.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T3.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T4.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T5.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T6.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T7.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T8.g.cs | 6 +- .../Entity/Entity.ComponentCallbacks/T9.g.cs | 6 +- src/Flecs.NET/Generated/Entity/Entity.Id.g.cs | 114 + .../Generated/Observer/Observer.Entity.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T1.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T10.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T11.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T12.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T13.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T14.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T15.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T16.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T2.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T3.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T4.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T5.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T6.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T7.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T8.g.cs | 1987 ++++++++++++++++ .../Observer/Observer.Entity/T9.g.cs | 1987 ++++++++++++++++ .../Generated/Observer/Observer.Id.g.cs | 114 + .../Generated/Observer/Observer.Id/T1.g.cs | 114 + .../Generated/Observer/Observer.Id/T10.g.cs | 114 + .../Generated/Observer/Observer.Id/T11.g.cs | 114 + .../Generated/Observer/Observer.Id/T12.g.cs | 114 + .../Generated/Observer/Observer.Id/T13.g.cs | 114 + .../Generated/Observer/Observer.Id/T14.g.cs | 114 + .../Generated/Observer/Observer.Id/T15.g.cs | 114 + .../Generated/Observer/Observer.Id/T16.g.cs | 114 + .../Generated/Observer/Observer.Id/T2.g.cs | 114 + .../Generated/Observer/Observer.Id/T3.g.cs | 114 + .../Generated/Observer/Observer.Id/T4.g.cs | 114 + .../Generated/Observer/Observer.Id/T5.g.cs | 114 + .../Generated/Observer/Observer.Id/T6.g.cs | 114 + .../Generated/Observer/Observer.Id/T7.g.cs | 114 + .../Generated/Observer/Observer.Id/T8.g.cs | 114 + .../Generated/Observer/Observer.Id/T9.g.cs | 114 + .../Generated/Observer/Observer/T1.g.cs | 12 +- .../Generated/Observer/Observer/T10.g.cs | 12 +- .../Generated/Observer/Observer/T11.g.cs | 12 +- .../Generated/Observer/Observer/T12.g.cs | 12 +- .../Generated/Observer/Observer/T13.g.cs | 12 +- .../Generated/Observer/Observer/T14.g.cs | 12 +- .../Generated/Observer/Observer/T15.g.cs | 12 +- .../Generated/Observer/Observer/T16.g.cs | 12 +- .../Generated/Observer/Observer/T2.g.cs | 12 +- .../Generated/Observer/Observer/T3.g.cs | 12 +- .../Generated/Observer/Observer/T4.g.cs | 12 +- .../Generated/Observer/Observer/T5.g.cs | 12 +- .../Generated/Observer/Observer/T6.g.cs | 12 +- .../Generated/Observer/Observer/T7.g.cs | 12 +- .../Generated/Observer/Observer/T8.g.cs | 12 +- .../Generated/Observer/Observer/T9.g.cs | 12 +- .../Generated/Pipeline/Pipeline.Entity.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T1.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T10.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T11.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T12.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T13.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T14.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T15.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T16.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T2.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T3.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T4.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T5.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T6.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T7.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T8.g.cs | 1987 ++++++++++++++++ .../Pipeline/Pipeline.Entity/T9.g.cs | 1987 ++++++++++++++++ .../Generated/Pipeline/Pipeline.Id.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T1.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T10.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T11.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T12.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T13.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T14.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T15.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T16.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T2.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T3.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T4.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T5.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T6.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T7.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T8.g.cs | 114 + .../Generated/Pipeline/Pipeline.Id/T9.g.cs | 114 + .../Generated/Pipeline/Pipeline/T1.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T10.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T11.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T12.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T13.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T14.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T15.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T16.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T2.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T3.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T4.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T5.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T6.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T7.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T8.g.cs | 2 +- .../Generated/Pipeline/Pipeline/T9.g.cs | 2 +- .../Generated/System_/System.Entity.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T1.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T10.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T11.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T12.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T13.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T14.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T15.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T16.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T2.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T3.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T4.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T5.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T6.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T7.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T8.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Entity/T9.g.cs | 1987 ++++++++++++++++ .../Generated/System_/System.Id.g.cs | 114 + .../Generated/System_/System.Id/T1.g.cs | 114 + .../Generated/System_/System.Id/T10.g.cs | 114 + .../Generated/System_/System.Id/T11.g.cs | 114 + .../Generated/System_/System.Id/T12.g.cs | 114 + .../Generated/System_/System.Id/T13.g.cs | 114 + .../Generated/System_/System.Id/T14.g.cs | 114 + .../Generated/System_/System.Id/T15.g.cs | 114 + .../Generated/System_/System.Id/T16.g.cs | 114 + .../Generated/System_/System.Id/T2.g.cs | 114 + .../Generated/System_/System.Id/T3.g.cs | 114 + .../Generated/System_/System.Id/T4.g.cs | 114 + .../Generated/System_/System.Id/T5.g.cs | 114 + .../Generated/System_/System.Id/T6.g.cs | 114 + .../Generated/System_/System.Id/T7.g.cs | 114 + .../Generated/System_/System.Id/T8.g.cs | 114 + .../Generated/System_/System.Id/T9.g.cs | 114 + .../Generated/System_/System/T1.g.cs | 12 +- .../Generated/System_/System/T10.g.cs | 12 +- .../Generated/System_/System/T11.g.cs | 12 +- .../Generated/System_/System/T12.g.cs | 12 +- .../Generated/System_/System/T13.g.cs | 12 +- .../Generated/System_/System/T14.g.cs | 12 +- .../Generated/System_/System/T15.g.cs | 12 +- .../Generated/System_/System/T16.g.cs | 12 +- .../Generated/System_/System/T2.g.cs | 12 +- .../Generated/System_/System/T3.g.cs | 12 +- .../Generated/System_/System/T4.g.cs | 12 +- .../Generated/System_/System/T5.g.cs | 12 +- .../Generated/System_/System/T6.g.cs | 12 +- .../Generated/System_/System/T7.g.cs | 12 +- .../Generated/System_/System/T8.g.cs | 12 +- .../Generated/System_/System/T9.g.cs | 12 +- .../TimerEntity/TimerEntity.Entity.g.cs | 1987 ++++++++++++++++ .../Generated/TimerEntity/TimerEntity.Id.g.cs | 114 + .../UntypedComponent.Entity.g.cs | 1987 ++++++++++++++++ .../UntypedComponent/UntypedComponent.Id.g.cs | 114 + src/Flecs.NET/Modules/Meta.cs | 30 +- 200 files changed, 119171 insertions(+), 648 deletions(-) create mode 100644 src/Flecs.NET.Codegen/Generators/Alert.cs create mode 100644 src/Flecs.NET.Codegen/Generators/Component.cs create mode 100644 src/Flecs.NET.Codegen/Generators/Id.cs create mode 100644 src/Flecs.NET.Codegen/Generators/TimerEntity.cs create mode 100644 src/Flecs.NET.Codegen/Generators/UntypedComponent.cs create mode 100644 src/Flecs.NET/Core/IId.cs create mode 100644 src/Flecs.NET/Generated/Alert/Alert.Entity.g.cs create mode 100644 src/Flecs.NET/Generated/Alert/Alert.Id.g.cs create mode 100644 src/Flecs.NET/Generated/Component/Component.Entity.g.cs create mode 100644 src/Flecs.NET/Generated/Component/Component.Id.g.cs create mode 100644 src/Flecs.NET/Generated/Entity/Entity.Id.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T1.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T10.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T11.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T12.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T13.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T14.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T15.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T16.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T2.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T3.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T4.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T5.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T6.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T7.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T8.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Entity/T9.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T1.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T10.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T11.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T12.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T13.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T14.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T15.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T16.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T2.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T3.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T4.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T5.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T6.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T7.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T8.g.cs create mode 100644 src/Flecs.NET/Generated/Observer/Observer.Id/T9.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T1.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T10.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T11.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T12.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T13.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T14.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T15.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T16.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T2.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T3.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T4.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T5.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T6.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T7.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T8.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T9.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T1.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T10.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T11.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T12.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T13.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T14.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T15.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T16.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T2.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T3.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T4.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T5.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T6.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T7.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T8.g.cs create mode 100644 src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T9.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T1.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T10.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T11.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T12.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T13.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T14.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T15.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T16.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T2.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T3.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T4.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T5.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T6.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T7.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T8.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Entity/T9.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T1.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T10.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T11.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T12.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T13.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T14.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T15.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T16.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T2.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T3.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T4.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T5.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T6.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T7.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T8.g.cs create mode 100644 src/Flecs.NET/Generated/System_/System.Id/T9.g.cs create mode 100644 src/Flecs.NET/Generated/TimerEntity/TimerEntity.Entity.g.cs create mode 100644 src/Flecs.NET/Generated/TimerEntity/TimerEntity.Id.g.cs create mode 100644 src/Flecs.NET/Generated/UntypedComponent/UntypedComponent.Entity.g.cs create mode 100644 src/Flecs.NET/Generated/UntypedComponent/UntypedComponent.Id.g.cs diff --git a/src/Flecs.NET.Codegen/Generators/Alert.cs b/src/Flecs.NET.Codegen/Generators/Alert.cs new file mode 100644 index 00000000..4b5740db --- /dev/null +++ b/src/Flecs.NET.Codegen/Generators/Alert.cs @@ -0,0 +1,12 @@ +using Flecs.NET.Codegen.Helpers; + +namespace Flecs.NET.Codegen.Generators; + +public class Alert : GeneratorBase +{ + public override void Generate() + { + AddSource($"Alert.Id.g.cs", Id.GenerateExtensions(Type.Alert)); + AddSource($"Alert.Entity.g.cs", Entity.GenerateExtensions(Type.Alert)); + } +} diff --git a/src/Flecs.NET.Codegen/Generators/Component.cs b/src/Flecs.NET.Codegen/Generators/Component.cs new file mode 100644 index 00000000..ec35a9aa --- /dev/null +++ b/src/Flecs.NET.Codegen/Generators/Component.cs @@ -0,0 +1,12 @@ +using Flecs.NET.Codegen.Helpers; + +namespace Flecs.NET.Codegen.Generators; + +public class Component : GeneratorBase +{ + public override void Generate() + { + AddSource($"Component.Id.g.cs", Id.GenerateExtensions(Type.Component)); + AddSource($"Component.Entity.g.cs", Entity.GenerateExtensions(Type.Component)); + } +} diff --git a/src/Flecs.NET.Codegen/Generators/Entity.cs b/src/Flecs.NET.Codegen/Generators/Entity.cs index b0e2464b..97273237 100644 --- a/src/Flecs.NET.Codegen/Generators/Entity.cs +++ b/src/Flecs.NET.Codegen/Generators/Entity.cs @@ -9,10 +9,13 @@ public class Entity : GeneratorBase public override void Generate() { for (int i = 0; i < Generator.GenericCount; i++) - AddSource($"Entity.ComponentCallbacks/T{i + 1}.g.cs", GenerateExtensions(i, Type.Entity)); + { + AddSource($"Entity.Id.g.cs", Id.GenerateExtensions(Type.Entity)); + AddSource($"Entity.ComponentCallbacks/T{i + 1}.g.cs", GenerateComponentCallbacks(Type.Entity, i)); + } } - public static string GenerateExtensions(int i, Type type) + public static string GenerateComponentCallbacks(Type type, int i) { IEnumerable readAndWrite = Generator.CallbacksReadAndWrite.Select((Callback callback) => $$""" /// @@ -32,7 +35,7 @@ public static string GenerateExtensions(int i, Type type) /// application to ensure access is protected.

///
/// The callback. - /// {{Generator.XmlTypeParameters}} + /// {{Generator.XmlTypeParameters[i]}} /// True if the entity has the specified components. public bool {{Generator.GetInvokerName(callback)}}<{{Generator.TypeParameters[i]}}>({{Generator.GetCallbackType(callback, i)}} callback) { @@ -57,7 +60,7 @@ public static string GenerateExtensions(int i, Type type) /// has been invoked. /// /// The callback. - /// {{Generator.XmlTypeParameters}} + /// {{Generator.XmlTypeParameters[i]}} /// Reference to self. public ref {{type}} {{Generator.GetInvokerName(callback)}}<{{Generator.TypeParameters[i]}}>({{Generator.GetCallbackType(callback, i)}} callback) { @@ -77,4 +80,1997 @@ public unsafe partial struct {{type}} } """; } + + public static string GenerateExtensions(Type type, int i = -1) + { + string typeName = Generator.GetTypeName(type, i); + + return $$""" + using System; + using static Flecs.NET.Bindings.flecs; + + namespace Flecs.NET.Core; + + public unsafe partial struct {{typeName}} + { + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref {{typeName}} Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref {{typeName}} Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref {{typeName}} Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref {{typeName}} Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref {{typeName}} Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref {{typeName}} Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref {{typeName}} Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref {{typeName}} Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref {{typeName}} AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref {{typeName}} AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref {{typeName}} AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref {{typeName}} AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref {{typeName}} AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref {{typeName}} AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref {{typeName}} AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref {{typeName}} AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref {{typeName}} AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref {{typeName}} AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref {{typeName}} IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref {{typeName}} IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref {{typeName}} IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref {{typeName}} ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref {{typeName}} ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref {{typeName}} ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref {{typeName}} DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref {{typeName}} DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref {{typeName}} DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref {{typeName}} SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref {{typeName}} SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref {{typeName}} SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref {{typeName}} Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref {{typeName}} Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref {{typeName}} Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref {{typeName}} Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref {{typeName}} Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref {{typeName}} Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref {{typeName}} Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref {{typeName}} Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref {{typeName}} Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref {{typeName}} RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref {{typeName}} AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref {{typeName}} AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref {{typeName}} AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref {{typeName}} AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref {{typeName}} AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref {{typeName}} AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref {{typeName}} AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref {{typeName}} AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref {{typeName}} AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref {{typeName}} SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref {{typeName}} Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref {{typeName}} Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref {{typeName}} Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref {{typeName}} Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref {{typeName}} Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref {{typeName}} Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref {{typeName}} Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref {{typeName}} Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref {{typeName}} Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref {{typeName}} EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref {{typeName}} Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref {{typeName}} Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref {{typeName}} Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref {{typeName}} Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref {{typeName}} Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref {{typeName}} Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref {{typeName}} Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref {{typeName}} Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref {{typeName}} Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref {{typeName}} DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref {{typeName}} SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref {{typeName}} SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref {{typeName}} SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref {{typeName}} SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref {{typeName}} SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref {{typeName}} SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref {{typeName}} SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref {{typeName}} SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref {{typeName}} SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref {{typeName}} SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref {{typeName}} Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref {{typeName}} Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref {{typeName}} Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref {{typeName}} Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref {{typeName}} Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref {{typeName}} Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref {{typeName}} SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref {{typeName}} Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref {{typeName}} Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref {{typeName}} Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref {{typeName}} Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref {{typeName}} Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref {{typeName}} Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref {{typeName}} SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref {{typeName}} With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref {{typeName}} With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref {{typeName}} With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref {{typeName}} With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref {{typeName}} With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref {{typeName}} With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref {{typeName}} Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref {{typeName}} Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref {{typeName}} SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref {{typeName}} SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref {{typeName}} SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref {{typeName}} SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref {{typeName}} SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref {{typeName}} SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref {{typeName}} SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref {{typeName}} SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref {{typeName}} Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref {{typeName}} Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref {{typeName}} UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref {{typeName}} Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref {{typeName}} Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref {{typeName}} Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref {{typeName}} SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref {{typeName}} SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref {{typeName}} SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref {{typeName}} SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref {{typeName}} SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref {{typeName}} SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref {{typeName}} SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref {{typeName}} SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref {{typeName}} Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref {{typeName}} Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref {{typeName}} Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref {{typeName}} Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref {{typeName}} Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref {{typeName}} Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } + } + """; + } } diff --git a/src/Flecs.NET.Codegen/Generators/Id.cs b/src/Flecs.NET.Codegen/Generators/Id.cs new file mode 100644 index 00000000..8d4c231f --- /dev/null +++ b/src/Flecs.NET.Codegen/Generators/Id.cs @@ -0,0 +1,124 @@ +using Flecs.NET.Codegen.Helpers; + +namespace Flecs.NET.Codegen.Generators; + +public static class Id +{ + public static string GenerateExtensions(Type type, int i = -1) + { + return $$""" + namespace Flecs.NET.Core; + + public unsafe partial struct {{Generator.GetTypeName(type, i)}} + { + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } + } + """; + } +} diff --git a/src/Flecs.NET.Codegen/Generators/Observer.cs b/src/Flecs.NET.Codegen/Generators/Observer.cs index 4576f387..0438f3cf 100644 --- a/src/Flecs.NET.Codegen/Generators/Observer.cs +++ b/src/Flecs.NET.Codegen/Generators/Observer.cs @@ -6,9 +6,14 @@ public class Observer : GeneratorBase { public override void Generate() { + AddSource($"Observer.Id.g.cs", Id.GenerateExtensions(Type.Observer)); + AddSource($"Observer.Entity.g.cs", Entity.GenerateExtensions(Type.Observer)); + for (int i = 0; i < Generator.GenericCount; i++) { AddSource($"Observer/T{i + 1}.g.cs", GenerateObserver(i)); + AddSource($"Observer.Id/T{i + 1}.g.cs", Id.GenerateExtensions(Type.Observer, i)); + AddSource($"Observer.Entity/T{i + 1}.g.cs", Entity.GenerateExtensions(Type.Observer, i)); } } @@ -26,7 +31,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// {{Generator.XmlTypeParameters[i]}} - public unsafe struct {{Generator.GetTypeName(Type.Observer, i)}} : IEquatable<{{Generator.GetTypeName(Type.Observer, i)}}>, IDisposable + public unsafe partial struct {{Generator.GetTypeName(Type.Observer, i)}} : IEquatable<{{Generator.GetTypeName(Type.Observer, i)}}>, IDisposable { private Observer _observer; @@ -69,12 +74,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -111,7 +110,7 @@ public static implicit operator Id({{Generator.GetTypeName(Type.Observer, i)}} o return ToId(observer); } - /// + /// public static implicit operator Entity({{Generator.GetTypeName(Type.Observer, i)}} observer) { return ToEntity(observer); @@ -129,7 +128,7 @@ public static Id ToId({{Generator.GetTypeName(Type.Observer, i)}} observer) return observer.Id; } - /// + /// public static Entity ToEntity({{Generator.GetTypeName(Type.Observer, i)}} observer) { return observer.Entity; diff --git a/src/Flecs.NET.Codegen/Generators/Pipeline.cs b/src/Flecs.NET.Codegen/Generators/Pipeline.cs index 45246a23..80bc6dcd 100644 --- a/src/Flecs.NET.Codegen/Generators/Pipeline.cs +++ b/src/Flecs.NET.Codegen/Generators/Pipeline.cs @@ -6,14 +6,21 @@ public class Pipeline : GeneratorBase { public override void Generate() { + AddSource($"Pipeline.Id.g.cs", Id.GenerateExtensions(Type.Pipeline)); + AddSource($"Pipeline.Entity.g.cs", Entity.GenerateExtensions(Type.Pipeline)); + for (int i = 0; i < Generator.GenericCount; i++) { AddSource($"Pipeline/T{i + 1}.g.cs", GeneratePipeline(i)); + AddSource($"Pipeline.Id/T{i + 1}.g.cs", Id.GenerateExtensions(Type.Pipeline, i)); + AddSource($"Pipeline.Entity/T{i + 1}.g.cs", Entity.GenerateExtensions(Type.Pipeline, i)); } } private static string GeneratePipeline(int i) { + string typeName = Generator.GetTypeName(Type.Pipeline, i); + return $$""" #nullable enable @@ -26,7 +33,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes {{i + 1}} type arguments. /// /// {{Generator.XmlTypeParameters[i]}} - public unsafe partial struct {{Generator.GetTypeName(Type.Pipeline, i)}} : IEquatable<{{Generator.GetTypeName(Type.Pipeline, i)}}>, IEntity + public unsafe partial struct {{typeName}} : IEquatable<{{typeName}}>, IEntity<{{typeName}}> { private Pipeline _pipeline; @@ -61,37 +68,37 @@ public Pipeline(Entity entity) } /// - public static implicit operator ulong({{Generator.GetTypeName(Type.Pipeline, i)}} pipeline) + public static implicit operator ulong({{typeName}} pipeline) { return ToUInt64(pipeline); } /// - public static implicit operator Id({{Generator.GetTypeName(Type.Pipeline, i)}} pipeline) + public static implicit operator Id({{typeName}} pipeline) { return ToId(pipeline); } /// - public static implicit operator Entity({{Generator.GetTypeName(Type.Pipeline, i)}} pipeline) + public static implicit operator Entity({{typeName}} pipeline) { return ToEntity(pipeline); } /// - public static ulong ToUInt64({{Generator.GetTypeName(Type.Pipeline, i)}} pipeline) + public static ulong ToUInt64({{typeName}} pipeline) { return pipeline.Entity; } /// - public static Id ToId({{Generator.GetTypeName(Type.Pipeline, i)}} pipeline) + public static Id ToId({{typeName}} pipeline) { return pipeline.Id; } /// - public static Entity ToEntity({{Generator.GetTypeName(Type.Pipeline, i)}} pipeline) + public static Entity ToEntity({{typeName}} pipeline) { return pipeline.Entity; } @@ -103,7 +110,7 @@ public override string ToString() } /// - public bool Equals({{Generator.GetTypeName(Type.Pipeline, i)}} other) + public bool Equals({{typeName}} other) { return Entity == other.Entity; } @@ -111,7 +118,7 @@ public bool Equals({{Generator.GetTypeName(Type.Pipeline, i)}} other) /// public override bool Equals(object? obj) { - return obj is {{Generator.GetTypeName(Type.Pipeline, i)}} other && Equals(other); + return obj is {{typeName}} other && Equals(other); } /// @@ -121,13 +128,13 @@ public override int GetHashCode() } /// - public static bool operator ==({{Generator.GetTypeName(Type.Pipeline, i)}} left, {{Generator.GetTypeName(Type.Pipeline, i)}} right) + public static bool operator ==({{typeName}} left, {{typeName}} right) { return left.Equals(right); } /// - public static bool operator !=({{Generator.GetTypeName(Type.Pipeline, i)}} left, {{Generator.GetTypeName(Type.Pipeline, i)}} right) + public static bool operator !=({{typeName}} left, {{typeName}} right) { return !(left == right); } diff --git a/src/Flecs.NET.Codegen/Generators/System_.cs b/src/Flecs.NET.Codegen/Generators/System_.cs index 9ad9c003..517819d8 100644 --- a/src/Flecs.NET.Codegen/Generators/System_.cs +++ b/src/Flecs.NET.Codegen/Generators/System_.cs @@ -9,9 +9,14 @@ public class System_ : GeneratorBase { public override void Generate() { + AddSource($"System.Id.g.cs", Id.GenerateExtensions(Type.System_)); + AddSource($"System.Entity.g.cs", Entity.GenerateExtensions(Type.System_)); + for (int i = 0; i < Generator.GenericCount; i++) { AddSource($"System/T{i + 1}.g.cs", GenerateSystem(i)); + AddSource($"System.Id/T{i + 1}.g.cs", Id.GenerateExtensions(Type.System, i)); + AddSource($"System.Entity/T{i + 1}.g.cs", Entity.GenerateExtensions(Type.System, i)); } } @@ -31,7 +36,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes {{i + 1}} type arguments. /// /// {{Generator.XmlTypeParameters[i]}} - public unsafe struct {{systemTypeName}} : IEquatable<{{systemTypeName}}>, IEntity + public unsafe partial struct {{systemTypeName}} : IEquatable<{{systemTypeName}}>, IEntity<{{systemTypeName}}> { private System_ _system; @@ -68,12 +73,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -188,7 +187,7 @@ public static implicit operator Id({{systemTypeName}} system) return ToId(system); } - /// + /// public static implicit operator Entity({{systemTypeName}} system) { return ToEntity(system); @@ -206,7 +205,7 @@ public static Id ToId({{systemTypeName}} system) return system.Id; } - /// + /// public static Entity ToEntity({{systemTypeName}} system) { return system.Entity; diff --git a/src/Flecs.NET.Codegen/Generators/TimerEntity.cs b/src/Flecs.NET.Codegen/Generators/TimerEntity.cs new file mode 100644 index 00000000..2809f438 --- /dev/null +++ b/src/Flecs.NET.Codegen/Generators/TimerEntity.cs @@ -0,0 +1,12 @@ +using Flecs.NET.Codegen.Helpers; + +namespace Flecs.NET.Codegen.Generators; + +public class TimerEntity : GeneratorBase +{ + public override void Generate() + { + AddSource($"TimerEntity.Id.g.cs", Id.GenerateExtensions(Type.TimerEntity)); + AddSource($"TimerEntity.Entity.g.cs", Entity.GenerateExtensions(Type.TimerEntity)); + } +} diff --git a/src/Flecs.NET.Codegen/Generators/UntypedComponent.cs b/src/Flecs.NET.Codegen/Generators/UntypedComponent.cs new file mode 100644 index 00000000..be873dd9 --- /dev/null +++ b/src/Flecs.NET.Codegen/Generators/UntypedComponent.cs @@ -0,0 +1,12 @@ +using Flecs.NET.Codegen.Helpers; + +namespace Flecs.NET.Codegen.Generators; + +public class UntypedComponent : GeneratorBase +{ + public override void Generate() + { + AddSource($"UntypedComponent.Id.g.cs", Id.GenerateExtensions(Type.UntypedComponent)); + AddSource($"UntypedComponent.Entity.g.cs", Entity.GenerateExtensions(Type.UntypedComponent)); + } +} diff --git a/src/Flecs.NET.Codegen/Helpers/Generator.cs b/src/Flecs.NET.Codegen/Helpers/Generator.cs index 9498b457..6acc1f1b 100644 --- a/src/Flecs.NET.Codegen/Helpers/Generator.cs +++ b/src/Flecs.NET.Codegen/Helpers/Generator.cs @@ -227,6 +227,9 @@ .. CallbacksFind public static string GetTypeName(Type type, int i = -1) { + if (type == Type.Component) + return $"{type}"; + return i < 0 ? type.ToString() : GenericNames[(int)type][i]; diff --git a/src/Flecs.NET.Codegen/Helpers/Type.cs b/src/Flecs.NET.Codegen/Helpers/Type.cs index 07f54a0d..8fdf9a5d 100644 --- a/src/Flecs.NET.Codegen/Helpers/Type.cs +++ b/src/Flecs.NET.Codegen/Helpers/Type.cs @@ -9,6 +9,7 @@ public enum Type { Alert, AlertBuilder, + Component, Entity, IIterable, IterIterable, @@ -22,6 +23,8 @@ public enum Type System, System_, SystemBuilder, + TimerEntity, TypeHelper, + UntypedComponent, WorkerIterable } diff --git a/src/Flecs.NET.Codegen/Program.cs b/src/Flecs.NET.Codegen/Program.cs index 16107e82..fff95120 100644 --- a/src/Flecs.NET.Codegen/Program.cs +++ b/src/Flecs.NET.Codegen/Program.cs @@ -1,7 +1,9 @@ using Flecs.NET.Codegen.Helpers; using Flecs.NET.Codegen.Generators; +Generate(); Generate(); +Generate(); Generate(); Generate(); Generate(); @@ -17,7 +19,9 @@ Generate(); Generate(); Generate(); +Generate(); Generate(); +Generate(); Generate(); Generate(); diff --git a/src/Flecs.NET/Core/Alert.cs b/src/Flecs.NET/Core/Alert.cs index 80d8df54..7cbd88f7 100644 --- a/src/Flecs.NET/Core/Alert.cs +++ b/src/Flecs.NET/Core/Alert.cs @@ -6,7 +6,7 @@ namespace Flecs.NET.Core; /// /// A wrapper for an alert. /// -public unsafe struct Alert : IEquatable +public unsafe partial struct Alert : IEquatable, IEntity { private Entity _entity; @@ -163,4 +163,4 @@ public override int GetHashCode() { return !(left == right); } -} \ No newline at end of file +} diff --git a/src/Flecs.NET/Core/Component.cs b/src/Flecs.NET/Core/Component.cs index 8da2dac9..b9cb321f 100644 --- a/src/Flecs.NET/Core/Component.cs +++ b/src/Flecs.NET/Core/Component.cs @@ -10,7 +10,7 @@ namespace Flecs.NET.Core; /// Struct used to register components and component metadata. /// /// -public unsafe partial struct Component : IEquatable>, IEquatable +public unsafe partial struct Component : IEquatable>, IEquatable, IEntity> { private UntypedComponent _untypedComponent; diff --git a/src/Flecs.NET/Core/Entity.cs b/src/Flecs.NET/Core/Entity.cs index 2a7120ba..1206d47f 100644 --- a/src/Flecs.NET/Core/Entity.cs +++ b/src/Flecs.NET/Core/Entity.cs @@ -10,7 +10,7 @@ namespace Flecs.NET.Core; /// /// A wrapper for working with entities. /// -public unsafe partial struct Entity : IEquatable, IEntity +public unsafe partial struct Entity : IEquatable, IEntity { private Id _id; @@ -24,7 +24,7 @@ public unsafe partial struct Entity : IEquatable, IEntity /// public ref Id Id => ref _id; - ref Entity IEntity.Entity => ref this; + ref Entity IEntity.Entity => ref this; /// /// Returns a null entity. @@ -98,108 +98,6 @@ public Entity(ecs_world_t* world, string name) _id = new Id(world, ecs_entity_init(world, &desc)); } - /// - public bool IsPair() - { - return Id.IsPair(); - } - - /// - public bool IsWildCard() - { - return Id.IsWildCard(); - } - - /// - public bool IsEntity() - { - return Id.IsEntity(); - } - - /// - public Entity AddFlags(ulong flags) - { - return Id.AddFlags(flags); - } - - /// - public Entity RemoveFlags(ulong flags) - { - return Id.RemoveFlags(flags); - } - - /// - public Entity RemoveFlags() - { - return Id.RemoveFlags(); - } - - /// - public Entity RemoveGeneration() - { - return Id.RemoveGeneration(); - } - - /// - public Entity TypeId() - { - return Id.TypeId(); - } - - /// - public bool HasFlags(ulong flags) - { - return Id.HasFlags(flags); - } - - /// - public bool HasFlags() - { - return Id.HasFlags(); - } - - /// - public Entity Flags() - { - return Id.Flags(); - } - - /// - public bool HasRelation(ulong first) - { - return Id.HasRelation(first); - } - - /// - public Entity First() - { - return Id.First(); - } - - /// - public Entity Second() - { - return Id.Second(); - } - - /// - public string Str() - { - return Id.Str(); - } - - /// - public string FlagsStr() - { - return Id.FlagsStr(); - } - - /// - public World CsWorld() - { - return Id.CsWorld(); - } - /// /// Check if entity is valid. /// @@ -1092,6 +990,52 @@ public Entity Lookup(string path, bool recursive = false) return new Entity(World, id); } + /// + /// Lookup an entity from a path. + /// + /// The path to resolve. + /// The entity if found, else 0. + /// True if the entity was found, else false. + public bool TryLookup(string path, out Entity entity) + { + return TryLookup(path, false, out entity); + } + + /// + /// Lookup an entity from a path. + /// + /// The path to resolve. + /// Recursively traverse up the tree until entity is found. + /// The entity if found, else 0. + /// True if the entity was found, else false. + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return (entity = Lookup(path, recursive)) != 0; + } + + /// + /// Lookup an entity from a path. + /// + /// The path to resolve. + /// The entity if found, else 0. + /// True if the entity was found, else false. + public bool TryLookup(string path, out ulong entity) + { + return TryLookup(path, false, out entity); + } + + /// + /// Lookup an entity from a path. + /// + /// The path to resolve. + /// Recursively traverse up the tree until entity is found. + /// The entity if found, else 0. + /// True if the entity was found, else false. + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return (entity = Lookup(path, recursive)) != 0; + } + /// /// Check if entity has the provided entity. /// @@ -2629,7 +2573,7 @@ public ref Entity DisableSecond(ulong first) public ref Entity SetUntyped(ulong id, int size, void* data) { Ecs.Assert(ecs_get_typeid(World, id) != 0, "Cannot set component data for tag ids."); - ecs_set_id(World, Id, id, (IntPtr)size, data); + ecs_set_id(World, Id, id, size, data); return ref this; } @@ -2952,6 +2896,44 @@ public ref Entity With(Action callback) return ref With(Type.Id(World), callback); } + /// + /// Entities created in function will have the current entity. + /// + /// The callback. + /// Reference to self. + public ref Entity With(Ecs.WorldCallback callback) + { + ulong prev = ecs_set_with(World, Id); + callback(World); + ecs_set_with(World, prev); + return ref this; + } + + /// + /// Entities created in function will have (first, this). + /// + /// The id. + /// The callback. + /// Reference to self. + public ref Entity With(ulong first, Ecs.WorldCallback callback) + { + ulong prev = ecs_set_with(World, Ecs.Pair(first, Id)); + callback(World); + ecs_set_with(World, prev); + return ref this; + } + + /// + /// Entities created in function will have (TFirst, this). + /// + /// The callback. + /// The component id. + /// Reference to self. + public ref Entity With(Ecs.WorldCallback callback) + { + return ref With(Type.Id(World), callback); + } + /// /// The function will be run with the scope set to the current entity. /// @@ -2965,6 +2947,19 @@ public ref Entity Scope(Action callback) return ref this; } + /// + /// The function will be run with the scope set to the current entity. + /// + /// The callback. + /// Reference to self. + public ref Entity Scope(Ecs.WorldCallback callback) + { + ulong prev = ecs_set_scope(World, Id); + callback(World); + ecs_set_scope(World, prev); + return ref this; + } + /// /// Set the entity name. /// @@ -3953,104 +3948,3 @@ public override string ToString() return Id.ToString(); } } - -// Flecs.NET Extensions -public unsafe partial struct Entity -{ - /// - /// Entities created in function will have the current entity. - /// - /// The callback. - /// Reference to self. - public ref Entity With(Ecs.WorldCallback callback) - { - ulong prev = ecs_set_with(World, Id); - callback(World); - ecs_set_with(World, prev); - return ref this; - } - - /// - /// Entities created in function will have (first, this). - /// - /// The id. - /// The callback. - /// Reference to self. - public ref Entity With(ulong first, Ecs.WorldCallback callback) - { - ulong prev = ecs_set_with(World, Ecs.Pair(first, Id)); - callback(World); - ecs_set_with(World, prev); - return ref this; - } - - /// - /// Entities created in function will have (TFirst, this). - /// - /// The callback. - /// The component id. - /// Reference to self. - public ref Entity With(Ecs.WorldCallback callback) - { - return ref With(Type.Id(World), callback); - } - - /// - /// The function will be run with the scope set to the current entity. - /// - /// The callback. - /// Reference to self. - public ref Entity Scope(Ecs.WorldCallback callback) - { - ulong prev = ecs_set_scope(World, Id); - callback(World); - ecs_set_scope(World, prev); - return ref this; - } - - /// - /// Lookup an entity from a path. - /// - /// The path to resolve. - /// The entity if found, else 0. - /// True if the entity was found, else false. - public bool TryLookup(string path, out Entity entity) - { - return TryLookup(path, false, out entity); - } - - /// - /// Lookup an entity from a path. - /// - /// The path to resolve. - /// Recursively traverse up the tree until entity is found. - /// The entity if found, else 0. - /// True if the entity was found, else false. - public bool TryLookup(string path, bool recursive, out Entity entity) - { - return (entity = Lookup(path, recursive)) != 0; - } - - /// - /// Lookup an entity from a path. - /// - /// The path to resolve. - /// The entity if found, else 0. - /// True if the entity was found, else false. - public bool TryLookup(string path, out ulong entity) - { - return TryLookup(path, false, out entity); - } - - /// - /// Lookup an entity from a path. - /// - /// The path to resolve. - /// Recursively traverse up the tree until entity is found. - /// The entity if found, else 0. - /// True if the entity was found, else false. - public bool TryLookup(string path, bool recursive, out ulong entity) - { - return (entity = Lookup(path, recursive)) != 0; - } -} diff --git a/src/Flecs.NET/Core/IEntity.cs b/src/Flecs.NET/Core/IEntity.cs index 6caec5c8..cd27a27a 100644 --- a/src/Flecs.NET/Core/IEntity.cs +++ b/src/Flecs.NET/Core/IEntity.cs @@ -1,3 +1,5 @@ +using System; +using System.Diagnostics.CodeAnalysis; using static Flecs.NET.Bindings.flecs; namespace Flecs.NET.Core; @@ -5,21 +7,931 @@ namespace Flecs.NET.Core; /// /// Interface for entity objects. /// -public unsafe interface IEntity +[SuppressMessage("Naming", "CA1716:Identifiers should not match keywords")] +public unsafe interface IEntity : IId { /// - /// A reference to the world. + /// A reference to the entity. /// - public ref ecs_world_t* World { get; } + public ref Entity Entity { get; } + + /// + public bool IsValid(); + + /// + public bool IsAlive(); + + /// + public string Name(); + + /// + public string Symbol(); + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator); + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator); + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator); + + /// + public bool Enabled(); + + /// + public bool Enabled(ulong id); + + /// + public bool Enabled(ulong first, ulong second); + + /// + public bool Enabled(); + + /// + public bool Enabled(T value) where T : Enum; + + /// + public bool Enabled(ulong second); + + /// + public bool Enabled(); + + /// + public bool Enabled(TSecond second) where TSecond : Enum; + + /// + public bool Enabled(TFirst first) where TFirst : Enum; + + /// + public bool EnabledSecond(ulong first); + + /// + public Types Type(); + + /// + public Table Table(); + + /// + public Table Range(); + + /// + public void Each(Ecs.EachIdCallback func); + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func); + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func); + + /// + public void Each(Ecs.EachEntityCallback func); + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum; + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback); + + /// + public void Children(Ecs.EachEntityCallback callback); + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum; + + /// + public void Children(Ecs.EachEntityCallback callback); + + /// + public void* GetPtr(ulong compId); + + /// + public void* GetPtr(ulong first, ulong second); + + /// + public T* GetPtr() where T : unmanaged; + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged; + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged where TSecond : Enum; + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum where TSecond : unmanaged; + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged; + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged; + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged; + + /// + public ref readonly T Get(); + + /// + public ref readonly TFirst Get(ulong second); + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum; + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum; + + /// + public ref readonly TFirst GetFirst(); + + /// + public ref readonly TSecond GetSecond(); + + /// + public ref readonly TSecond GetSecond(ulong first); + + /// + public void* GetMutPtr(ulong id); + + /// + public void* GetMutPtr(ulong first, ulong second); + + /// + public T* GetMutPtr() where T : unmanaged; + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged; + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged where TSecond : Enum; + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum where TSecond : unmanaged; + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged; + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged; + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged; + + /// + public ref T GetMut(); + + /// + public ref TFirst GetMut(ulong second); + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum; + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum; + + /// + public ref TFirst GetMutFirst(); + + /// + public ref TSecond GetMutSecond(); + + /// + public ref TSecond GetMutSecond(ulong first); + + /// + public Entity Target(ulong relation, int index = 0); + + /// + public Entity Target(int index = 0) where T : unmanaged; + + /// + public Entity TargetFor(ulong relation, ulong id); + + /// + public Entity TargetFor(ulong relation); + + /// + public Entity TargetFor(ulong relation); + + /// + public int Depth(ulong rel); + + /// + public int Depth(); + + /// + public int Depth(T value) where T : Enum; + + /// + public Entity Parent(); + + /// + public Entity Lookup(string path, bool recursive = false); + + /// + public bool TryLookup(string path, out Entity entity); + + /// + public bool TryLookup(string path, bool recursive, out Entity entity); + + /// + public bool TryLookup(string path, out ulong entity); + + /// + public bool TryLookup(string path, bool recursive, out ulong entity); + + /// + public bool Has(ulong id); + + /// + public bool Has(ulong first, ulong second); + + /// + public bool Has(); + + /// + public bool Has(T value) where T : Enum; + + /// + public bool Has(ulong second); + + /// + public bool Has(); + + /// + public bool Has(TSecond second) where TSecond : Enum; + + /// + public bool Has(TFirst first) where TFirst : Enum; + + /// + public bool HasSecond(ulong first); + + /// + public bool Owns(ulong id); + + /// + public bool Owns(ulong first, ulong second); + + /// + public bool Owns(); + + /// + public bool Owns(T value) where T : Enum; + + /// + public bool Owns(ulong second); + + /// + public bool Owns(); + + /// + public bool Owns(TSecond second) where TSecond : Enum; + + /// + public bool Owns(TFirst first) where TFirst : Enum; + + /// + public bool OwnsSecond(ulong first); + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0); + + /// + public Entity Mut(ref World stage); + + /// + public Entity Mut(ref Iter it); + + /// + public Entity Mut(ref Entity entity); + + /// + public Entity Mut(World stage); + + /// + public Entity Mut(Iter it); + + /// + public Entity Mut(Entity entity); + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc); + + /// + public string ToJson(); + + /// + public string ToJson(ref EntityToJsonDesc desc); + + /// + public string ToJson(EntityToJsonDesc desc); + + /// + public string DocName(); + + /// + public string DocBrief(); + + /// + public string DocDetail(); + + /// + public string DocLink(); + + /// + public string DocColor(); + + /// + public string DocUuid(); + + /// + public int AlertCount(ulong alert = 0); + + /// + public T ToConstant() where T : unmanaged, Enum; + + /// + public void Emit(ulong eventId); + + /// + public void Emit(Entity eventId); + + /// + public void Emit(); + + /// + public void Emit(T payload) where T : unmanaged; + + /// + public void Emit(ref T payload); + + /// + public void Enqueue(ulong eventId); + + /// + public void Enqueue(Entity eventId); + + /// + public void Enqueue(); + + /// + public void Enqueue(T payload) where T : unmanaged; + + /// + public void Enqueue(ref T payload); + + /// + public bool IsChildOf(ulong entity); + + /// + public bool IsChildOf(); + + /// + public bool IsChildOf(T value) where T : Enum; + + /// + public ref TEntity Add(ulong id); + + /// + public ref TEntity Add(ulong first, ulong second); + + /// + public ref TEntity Add(); + + /// + public ref TEntity Add(ulong second); + + /// + public ref TEntity Add(T value) where T : Enum; + + /// + public ref TEntity Add(); + + /// + public ref TEntity Add(TSecond second) where TSecond : Enum; + + /// + public ref TEntity Add(TFirst first) where TFirst : Enum; + + /// + public ref TEntity AddSecond(ulong first); + + /// + public ref TEntity AddIf(bool cond, ulong id); + + /// + public ref TEntity AddIf(bool cond, ulong first, ulong second); + + /// + public ref TEntity AddIf(bool cond); + + /// + public ref TEntity AddIf(bool cond, T value) where T : Enum; + + /// + public ref TEntity AddIf(bool cond, ulong second); + + /// + public ref TEntity AddIf(bool cond); + + /// + public ref TEntity AddIf(bool cond, TSecond second) where TSecond : Enum; + + /// + public ref TEntity AddIf(bool cond, TFirst first) where TFirst : Enum; + + /// + public ref TEntity AddIfSecond(bool cond, ulong first); + + /// + public ref TEntity IsA(ulong id); + + /// + public ref TEntity IsA(); + + /// + public ref TEntity IsA(T value) where T : Enum; + + /// + public ref TEntity ChildOf(ulong second); + + /// + public ref TEntity ChildOf(); + + /// + public ref TEntity ChildOf(T value) where T : Enum; + + /// + public ref TEntity DependsOn(ulong second); + + /// + public ref TEntity DependsOn(); + + /// + public ref TEntity DependsOn(T value) where T : Enum; + + /// + public ref TEntity SlotOf(ulong id); + + /// + public ref TEntity SlotOf(); + + /// + public ref TEntity SlotOf(T value) where T : Enum; + + /// + public ref TEntity Slot(); + + /// + public ref TEntity Remove(ulong id); + + /// + public ref TEntity Remove(ulong first, ulong second); + + /// + public ref TEntity Remove(); + + /// + public ref TEntity Remove(T value) where T : Enum; + + /// + public ref TEntity Remove(ulong second); + + /// + public ref TEntity Remove(); + + /// + public ref TEntity Remove(TSecond second) where TSecond : Enum; + + /// + public ref TEntity Remove(TFirst first) where TFirst : Enum; + + /// + public ref TEntity RemoveSecond(ulong first); + + /// + public ref TEntity AutoOverride(ulong id); + + /// + public ref TEntity AutoOverride(ulong first, ulong second); + + /// + public ref TEntity AutoOverride(); + + /// + public ref TEntity AutoOverride(T value) where T : Enum; + + /// + public ref TEntity AutoOverride(ulong second); + + /// + public ref TEntity AutoOverride(); + + /// + public ref TEntity AutoOverride(TSecond second) where TSecond : Enum; + + /// + public ref TEntity AutoOverride(TFirst first) where TFirst : Enum; + + /// + public ref TEntity AutoOverrideSecond(ulong first); + + /// + public ref TEntity SetAutoOverride(T component); + + /// + public ref TEntity SetAutoOverride(ref T component); + + /// + public ref TEntity SetAutoOverride(ulong second, TFirst component); + + /// + public ref TEntity SetAutoOverride(ulong second, ref TFirst component); + + /// + public ref TEntity SetAutoOverride(TFirst component); + + /// + public ref TEntity SetAutoOverride(ref TFirst component); + + /// + public ref TEntity SetAutoOverride(TSecond component); + + /// + public ref TEntity SetAutoOverride(ref TSecond component); + + /// + public ref TEntity SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum; + + /// + public ref TEntity SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum; + + /// + public ref TEntity SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum; + + /// + public ref TEntity SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum; + + /// + public ref TEntity SetAutoOverrideSecond(ulong first, TSecond component); + + /// + public ref TEntity SetAutoOverrideSecond(ulong first, ref TSecond component); + + /// + public ref TEntity Enable(); + + /// + public ref TEntity Enable(ulong id); + + /// + public ref TEntity Enable(ulong first, ulong second); + + /// + public ref TEntity Enable(); + + /// + public ref TEntity Enable(T value) where T : Enum; + + /// + public ref TEntity Enable(ulong second); + + /// + public ref TEntity Enable(); + + /// + public ref TEntity Enable(TSecond second) where TSecond : Enum; + + /// + public ref TEntity Enable(TFirst first) where TFirst : Enum; + + /// + public ref TEntity EnableSecond(ulong first); + + /// + public ref TEntity Disable(); + + /// + public ref TEntity Disable(ulong id); + + /// + public ref TEntity Disable(ulong first, ulong second); + + /// + public ref TEntity Disable(); + + /// + public ref TEntity Disable(T value) where T : Enum; + + /// + public ref TEntity Disable(ulong second); + + /// + public ref TEntity Disable(); + + /// + public ref TEntity Disable(TSecond second) where TSecond : Enum; + + /// + public ref TEntity Disable(TFirst first) where TFirst : Enum; + + /// + public ref TEntity DisableSecond(ulong first); - /// - /// A reference to the id. - /// /// - public ref Id Id { get; } + public ref TEntity SetUntyped(ulong id, int size, void* data); - /// - /// A reference to the entity. - /// - public ref Entity Entity { get; } + /// + public ref TEntity SetUntyped(ulong id, void* data); + + /// + public ref TEntity SetUntyped(ulong first, ulong second, int size, void* data); + + /// + public ref TEntity SetPtr(T* data); + + /// + public ref TEntity SetPtr(ulong second, TFirst* data); + + /// + public ref TEntity SetPtr(TSecond* data); + + /// + public ref TEntity SetPtr(TFirst* data); + + /// + public ref TEntity SetPtr(TSecond second, TFirst* data) where TSecond : Enum; + + /// + public ref TEntity SetPtr(TFirst first, TSecond* data) where TFirst : Enum; + + /// + public ref TEntity SetPtrSecond(ulong first, TSecond* data); + + /// + public ref TEntity Set(T data); + + /// + public ref TEntity Set(ulong second, TFirst data); + + /// + public ref TEntity Set(TSecond data); + + /// + public ref TEntity Set(TFirst data); + + /// + public ref TEntity Set(TSecond second, TFirst data) where TSecond : Enum; + + /// + public ref TEntity Set(TFirst first, TSecond data) where TFirst : Enum; + + /// + public ref TEntity SetSecond(ulong first, TSecond data); + + /// + public ref TEntity Set(ref T data); + + /// + public ref TEntity Set(ulong second, ref TFirst data); + + /// + public ref TEntity Set(ref TSecond data); + + /// + public ref TEntity Set(ref TFirst data); + + /// + public ref TEntity Set(TSecond second, ref TFirst data) where TSecond : Enum; + + /// + public ref TEntity Set(TFirst first, ref TSecond data) where TFirst : Enum; + + /// + public ref TEntity SetSecond(ulong first, ref TSecond data); + + /// + public ref TEntity With(Action callback); + + /// + public ref TEntity With(ulong first, Action callback); + + /// + public ref TEntity With(Action callback); + + /// + public ref TEntity With(Ecs.WorldCallback callback); + + /// + public ref TEntity With(ulong first, Ecs.WorldCallback callback); + + /// + public ref TEntity With(Ecs.WorldCallback callback); + + /// + public ref TEntity Scope(Action callback); + + /// + public ref TEntity Scope(Ecs.WorldCallback callback); + + /// + public ref TEntity SetName(string name); + + /// + public ref TEntity SetAlias(string alias); + + /// + public ref TEntity SetDocName(string name); + + /// + public ref TEntity SetDocBrief(string brief); + + /// + public ref TEntity SetDocDetail(string detail); + + /// + public ref TEntity SetDocLink(string link); + + /// + public ref TEntity SetDocColor(string color); + + /// + public ref TEntity SetDocUuid(string uuid); + + /// + public ref TEntity Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0); + + /// + public ref TEntity Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0); + + /// + public ref TEntity UnitPrefix(string symbol, int factor = 0, int power = 0); + + /// + public ref TEntity Quantity(ulong quantity); + + /// + public ref TEntity Quantity(); + + /// + public ref TEntity Quantity(); + + /// + public ref TEntity SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null); + + /// + public ref TEntity SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null); + + /// + public ref TEntity SetJson(string json, ecs_from_json_desc_t* desc = null); + + /// + public ref TEntity SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null); + + /// + public ref TEntity SetJson(string json, ecs_from_json_desc_t* desc = null); + + /// + public ref TEntity SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum; + + /// + public ref TEntity SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum; + + /// + public ref TEntity SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null); + + /// + public ref TEntity Observe(ulong eventId, Action callback); + + /// + public ref TEntity Observe(ulong eventId, Ecs.ObserveEntityCallback callback); + + /// + public ref TEntity Observe(Action callback); + + /// + public ref TEntity Observe(Ecs.ObserveEntityCallback callback); + + /// + public ref TEntity Observe(Ecs.ObserveRefCallback callback); + + /// + public ref TEntity Observe(Ecs.ObserveEntityRefCallback callback); + + /// + public void* EnsurePtr(ulong id); + + /// + public void* EnsurePtr(ulong first, ulong second); + + /// + public T* EnsurePtr() where T : unmanaged; + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged; + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged where TSecond : Enum; + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum where TSecond : unmanaged; + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged; + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged; + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged; + + /// + public ref T Ensure(); + + /// + public ref TFirst Ensure(ulong second); + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum; + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum; + + /// + public ref TFirst EnsureFirst(); + + /// + public ref TSecond EnsureSecond(); + + /// + public ref TSecond EnsureSecond(ulong first); + + /// + public void Modified(ulong id); + + /// + public void Modified(ulong first, ulong second); + + /// + public void Modified(); + + /// + public void Modified(T value) where T : Enum; + + /// + public void Modified(ulong second); + + /// + public void Modified(); + + /// + public void Modified(TSecond second) where TSecond : Enum; + + /// + public void Modified(TFirst first) where TFirst : Enum; + + /// + public void ModifiedSecond(ulong first); + + /// + public Ref GetRef(); + + /// + public Ref GetRef(ulong second); + + /// + public Ref GetRef(TSecond second) where TSecond : Enum; + + /// + public Ref GetRef(TFirst first) where TFirst : Enum; + + /// + public Ref GetRefFirst(); + + /// + public Ref GetRefSecond(); + + /// + public Ref GetRefSecond(ulong first); + + /// + public void Clear(); + + /// + public void Destruct(); + + /// + public string FromJson(string json); } diff --git a/src/Flecs.NET/Core/IId.cs b/src/Flecs.NET/Core/IId.cs new file mode 100644 index 00000000..53c79e80 --- /dev/null +++ b/src/Flecs.NET/Core/IId.cs @@ -0,0 +1,73 @@ +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +/// +/// Id interface. +/// +public unsafe interface IId +{ + /// + /// A reference to the world. + /// + public ref ecs_world_t* World { get; } + + /// + /// A reference to the id. + /// + public ref Id Id { get; } + + /// + public bool IsPair(); + + /// + public bool IsWildCard(); + + /// + public bool IsEntity(); + + /// + public Entity ToEntity(); + + /// + public Entity AddFlags(ulong flags); + + /// + public Entity RemoveFlags(ulong flags); + + /// + public Entity RemoveFlags(); + + /// + public Entity RemoveGeneration(); + + /// + public Entity TypeId(); + + /// + public bool HasFlags(ulong flags); + + /// + public bool HasFlags(); + + /// + public Entity Flags(); + + /// + public bool HasRelation(ulong first); + + /// + public Entity First(); + + /// + public Entity Second(); + + /// + public string Str(); + + /// + public string FlagsStr(); + + /// + public World CsWorld(); +} diff --git a/src/Flecs.NET/Core/Id.cs b/src/Flecs.NET/Core/Id.cs index c7df3ea3..61d1ad18 100644 --- a/src/Flecs.NET/Core/Id.cs +++ b/src/Flecs.NET/Core/Id.cs @@ -135,7 +135,7 @@ public bool IsEntity() /// Return id as entity. (only allowed when id is valid entity) /// /// - public Entity Entity() + public Entity ToEntity() { Ecs.Assert(!IsPair()); Ecs.Assert(Flags() == 0); diff --git a/src/Flecs.NET/Core/Observer.cs b/src/Flecs.NET/Core/Observer.cs index 2bcc0453..c626fa7f 100644 --- a/src/Flecs.NET/Core/Observer.cs +++ b/src/Flecs.NET/Core/Observer.cs @@ -6,7 +6,7 @@ namespace Flecs.NET.Core; /// /// A wrapper around observer. /// -public unsafe struct Observer : IEquatable, IDisposable +public unsafe partial struct Observer : IEquatable, IDisposable, IEntity { private Entity _entity; @@ -52,14 +52,6 @@ public void Dispose() Destruct(); } - /// - /// Destructs the observer. - /// - public void Destruct() - { - Entity.Destruct(); - } - /// /// Sets the observer context. /// @@ -219,4 +211,4 @@ public override string ToString() { return Entity.ToString(); } -} \ No newline at end of file +} diff --git a/src/Flecs.NET/Core/Pipeline.cs b/src/Flecs.NET/Core/Pipeline.cs index 3b26da78..f4fa993e 100644 --- a/src/Flecs.NET/Core/Pipeline.cs +++ b/src/Flecs.NET/Core/Pipeline.cs @@ -6,7 +6,7 @@ namespace Flecs.NET.Core; /// /// A wrapper around pipeline. /// -public unsafe struct Pipeline : IEquatable +public unsafe partial struct Pipeline : IEquatable, IEntity { private Entity _entity; @@ -163,4 +163,4 @@ public override int GetHashCode() { return !(left == right); } -} \ No newline at end of file +} diff --git a/src/Flecs.NET/Core/System_.cs b/src/Flecs.NET/Core/System_.cs index 32161481..eca72840 100644 --- a/src/Flecs.NET/Core/System_.cs +++ b/src/Flecs.NET/Core/System_.cs @@ -9,7 +9,7 @@ namespace Flecs.NET.Core; /// [SuppressMessage("ReSharper", "InconsistentNaming")] [SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores")] -public unsafe struct System_ : IEquatable +public unsafe partial struct System_ : IEquatable { private Entity _entity; @@ -47,14 +47,6 @@ public System_(Entity entity) _entity = entity; } - /// - /// Destructs the system. - /// - public void Destruct() - { - Entity.Destruct(); - } - /// /// Sets the context for the system. /// diff --git a/src/Flecs.NET/Core/TimerEntity.cs b/src/Flecs.NET/Core/TimerEntity.cs index 6655336b..78ee9330 100644 --- a/src/Flecs.NET/Core/TimerEntity.cs +++ b/src/Flecs.NET/Core/TimerEntity.cs @@ -6,7 +6,7 @@ namespace Flecs.NET.Core; /// /// Timer struct. /// -public unsafe struct TimerEntity : IEquatable +public unsafe partial struct TimerEntity : IEquatable, IEntity { private Entity _entity; @@ -250,4 +250,4 @@ public override int GetHashCode() { return !(left == right); } -} \ No newline at end of file +} diff --git a/src/Flecs.NET/Core/UntypedComponent.cs b/src/Flecs.NET/Core/UntypedComponent.cs index 51bdb6b3..e59de2a3 100644 --- a/src/Flecs.NET/Core/UntypedComponent.cs +++ b/src/Flecs.NET/Core/UntypedComponent.cs @@ -8,7 +8,7 @@ namespace Flecs.NET.Core; /// /// An untyped component. /// -public unsafe partial struct UntypedComponent : IEquatable +public unsafe partial struct UntypedComponent : IEquatable, IEntity { private Entity _entity; @@ -462,4 +462,4 @@ public TypeInfo TypeInfo() { return new TypeInfo(ecs_get_type_info(World, Id)); } -} \ No newline at end of file +} diff --git a/src/Flecs.NET/Core/World.cs b/src/Flecs.NET/Core/World.cs index 11c90612..6530276a 100644 --- a/src/Flecs.NET/Core/World.cs +++ b/src/Flecs.NET/Core/World.cs @@ -2757,7 +2757,7 @@ public Entity Prefab(string name) /// public Entity Prefab() { - return new Component(Handle).Entity.Add(EcsPrefab); + return new Component(Handle).Add(EcsPrefab); } /// @@ -2768,7 +2768,7 @@ public Entity Prefab() /// public Entity Prefab(string name) { - return new Component(Handle, name).Entity.Add(EcsPrefab); + return new Component(Handle, name).Add(EcsPrefab); } /// diff --git a/src/Flecs.NET/Generated/Alert/Alert.Entity.g.cs b/src/Flecs.NET/Generated/Alert/Alert.Entity.g.cs new file mode 100644 index 00000000..838abcc6 --- /dev/null +++ b/src/Flecs.NET/Generated/Alert/Alert.Entity.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Alert/Alert.Entity.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Alert.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Alert +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Alert Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Alert Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Alert Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Alert Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Alert Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Alert Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Alert Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Alert Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Alert AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Alert AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Alert AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Alert AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Alert AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Alert AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Alert AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Alert AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Alert AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Alert AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Alert IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Alert IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Alert IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Alert ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Alert ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Alert ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Alert DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Alert DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Alert DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Alert SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Alert SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Alert SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Alert Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Alert Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Alert Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Alert Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Alert Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Alert Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Alert Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Alert Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Alert Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Alert RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Alert AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Alert AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Alert AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Alert AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Alert AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Alert AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Alert AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Alert AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Alert AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Alert SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Alert SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Alert SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Alert SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Alert Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Alert Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Alert Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Alert Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Alert Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Alert Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Alert Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Alert Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Alert Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Alert EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Alert Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Alert Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Alert Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Alert Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Alert Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Alert Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Alert Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Alert Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Alert Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Alert DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Alert SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Alert SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Alert SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Alert SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Alert SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Alert SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Alert SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Alert SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Alert SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Alert SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Alert Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Alert Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Alert Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Alert Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Alert Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Alert Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Alert SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Alert Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Alert Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Alert Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Alert Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Alert Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Alert Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Alert SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Alert With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Alert With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Alert With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Alert With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Alert With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Alert With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Alert Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Alert Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Alert SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Alert SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Alert SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Alert SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Alert SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Alert SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Alert SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Alert SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Alert Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Alert Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Alert UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Alert Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Alert Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Alert Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Alert SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Alert SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Alert SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Alert SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Alert SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Alert SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Alert SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Alert SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Alert Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Alert Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Alert Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Alert Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Alert Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Alert Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Alert/Alert.Id.g.cs b/src/Flecs.NET/Generated/Alert/Alert.Id.g.cs new file mode 100644 index 00000000..50db5dc6 --- /dev/null +++ b/src/Flecs.NET/Generated/Alert/Alert.Id.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Alert/Alert.Id.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Alert.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Alert +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Component/Component.Entity.g.cs b/src/Flecs.NET/Generated/Component/Component.Entity.g.cs new file mode 100644 index 00000000..92aac3b9 --- /dev/null +++ b/src/Flecs.NET/Generated/Component/Component.Entity.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Component/Component.Entity.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Component.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Component +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Component Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Component Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Component Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Component Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Component Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Component Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Component Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Component Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Component AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Component AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Component AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Component AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Component AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Component AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Component AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Component AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Component AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Component AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Component IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Component IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Component IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Component ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Component ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Component ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Component DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Component DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Component DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Component SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Component SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Component SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Component Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Component Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Component Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Component Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Component Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Component Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Component Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Component Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Component Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Component RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Component AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Component AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Component AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Component AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Component AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Component AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Component AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Component AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Component AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Component SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Component SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Component SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Component SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Component SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Component SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Component SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Component SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Component SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Component SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Component SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Component SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Component SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Component SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Component Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Component Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Component Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Component Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Component Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Component Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Component Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Component Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Component Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Component EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Component Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Component Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Component Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Component Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Component Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Component Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Component Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Component Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Component Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Component DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Component SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Component SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Component SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Component SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Component SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Component SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Component SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Component SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Component SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Component SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Component Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Component Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Component Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Component Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Component Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Component Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Component SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Component Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Component Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Component Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Component Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Component Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Component Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Component SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Component With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Component With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Component With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Component With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Component With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Component With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Component Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Component Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Component SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Component SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Component SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Component SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Component SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Component SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Component SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Component SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Component Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Component Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Component UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Component Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Component Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Component Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Component SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Component SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Component SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Component SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Component SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Component SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Component SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Component SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Component Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Component Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Component Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Component Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Component Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Component Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Component/Component.Id.g.cs b/src/Flecs.NET/Generated/Component/Component.Id.g.cs new file mode 100644 index 00000000..72acbee8 --- /dev/null +++ b/src/Flecs.NET/Generated/Component/Component.Id.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Component/Component.Id.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Component.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Component +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T1.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T1.g.cs index 9b1f1f35..c7440ce6 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T1.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T1.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

///
/// The callback. - /// System.String[] + /// The T0 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallback callback) /// application to ensure access is protected.

///
/// The callback. - /// System.String[] + /// The T0 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallback callback) /// has been invoked. /// /// The callback. - /// System.String[] + /// The T0 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T10.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T10.g.cs index 8a6c01b5..c7766154 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T10.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T10.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallback
/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallback /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T11.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T11.g.cs index 163690b8..7f27bad5 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T11.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T11.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallbac /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallb /// has been invoked. /// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T12.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T12.g.cs index d1673f65..49ab2564 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T12.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T12.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCa /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRef /// has been invoked. /// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T13.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T13.g.cs index 3fc70a3c..dab81607 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T13.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T13.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.Read /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.Wri /// has been invoked. /// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T14.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T14.g.cs index 5a0e3db7..991a4cea 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T14.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T14.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ec /// has been invoked. /// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T15.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T15.g.cs index d5821423..3710cb96 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T15.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T15.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read
/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T16.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T16.g.cs index fcf588db..c3c314a3 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T16.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T16.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. The T15 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read
/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. The T15 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. The T15 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T2.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T2.g.cs index 37a79fa5..54d552c0 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T2.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T2.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallback callback) /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallback callback) /// has been invoked. /// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T3.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T3.g.cs index 25094cf0..27cd97f6 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T3.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T3.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallback callback) /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallback callback) /// has been invoked. /// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T4.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T4.g.cs index e381ca97..2a95cfa1 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T4.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T4.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallback callback) /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallback callback) /// has been invoked. /// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T5.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T5.g.cs index d9834fa1..e6a10930 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T5.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T5.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallback cal /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallback c /// has been invoked. /// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T6.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T6.g.cs index 86c0959c..18c3d804 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T6.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T6.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallback
/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallback /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T7.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T7.g.cs index 41784c07..82dba199 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T7.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T7.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallback
/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallback /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T8.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T8.g.cs index f7fc81df..70759267 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T8.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T8.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallback
/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallback /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T9.g.cs b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T9.g.cs index e50355df..9374860e 100644 --- a/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T9.g.cs +++ b/src/Flecs.NET/Generated/Entity/Entity.ComponentCallbacks/T9.g.cs @@ -23,7 +23,7 @@ public unsafe partial struct Entity /// application to ensure access is protected.

/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. /// True if the entity has the specified components. public bool Read(Ecs.ReadRefCallback callback) { @@ -47,7 +47,7 @@ public bool Read(Ecs.ReadRefCallback
/// /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. /// True if the entity has the specified components. public bool Write(Ecs.WriteRefCallback callback) { @@ -70,7 +70,7 @@ public bool Write(Ecs.WriteRefCallback /// The callback. - /// System.String[] + /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. /// Reference to self. public ref Entity Insert(Ecs.InsertRefCallback callback) { diff --git a/src/Flecs.NET/Generated/Entity/Entity.Id.g.cs b/src/Flecs.NET/Generated/Entity/Entity.Id.g.cs new file mode 100644 index 00000000..7c76a50f --- /dev/null +++ b/src/Flecs.NET/Generated/Entity/Entity.Id.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Entity/Entity.Id.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Entity.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Entity +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity.g.cs new file mode 100644 index 00000000..d38866ae --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T1.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T1.g.cs new file mode 100644 index 00000000..1aef2f4d --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T1.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T1.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T10.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T10.g.cs new file mode 100644 index 00000000..e76366de --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T10.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T10.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T11.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T11.g.cs new file mode 100644 index 00000000..67ecb221 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T11.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T11.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T12.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T12.g.cs new file mode 100644 index 00000000..a44db786 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T12.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T12.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T13.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T13.g.cs new file mode 100644 index 00000000..a760957c --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T13.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T13.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T14.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T14.g.cs new file mode 100644 index 00000000..197e1c50 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T14.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T14.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T15.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T15.g.cs new file mode 100644 index 00000000..8d051032 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T15.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T15.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T16.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T16.g.cs new file mode 100644 index 00000000..4242c4a4 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T16.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T16.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T2.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T2.g.cs new file mode 100644 index 00000000..d44dded0 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T2.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T2.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T3.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T3.g.cs new file mode 100644 index 00000000..047ab719 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T3.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T3.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T4.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T4.g.cs new file mode 100644 index 00000000..3cc942d3 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T4.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T4.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T5.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T5.g.cs new file mode 100644 index 00000000..a5f6da2b --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T5.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T5.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T6.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T6.g.cs new file mode 100644 index 00000000..6173ec89 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T6.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T6.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T7.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T7.g.cs new file mode 100644 index 00000000..a1c812d6 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T7.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T7.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T8.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T8.g.cs new file mode 100644 index 00000000..f48bea4b --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T8.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T8.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Entity/T9.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Entity/T9.g.cs new file mode 100644 index 00000000..2ac519ed --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Entity/T9.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Entity/T9.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Observer Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Observer Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Observer Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Observer Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Observer Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Observer AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Observer AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Observer AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Observer IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Observer IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Observer IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Observer ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Observer ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Observer ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Observer DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Observer DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Observer DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Observer SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Observer SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Observer SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Observer Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Observer Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Observer Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Observer Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Observer Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Observer Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Observer RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Observer AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Observer AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Observer AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Observer AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Observer SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Observer SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Observer Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Observer Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Observer Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Observer Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Observer EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Observer Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Observer Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Observer Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Observer Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Observer DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Observer SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Observer SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Observer SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Observer SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Observer SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Observer Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Observer Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Observer Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Observer SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Observer With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Observer Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Observer SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Observer SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Observer SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Observer SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Observer SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Observer SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Observer SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Observer SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Observer Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Observer UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Observer Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Observer SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Observer SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Observer SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Observer Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Observer Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id.g.cs new file mode 100644 index 00000000..6f41a497 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T1.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T1.g.cs new file mode 100644 index 00000000..235514f8 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T1.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T1.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T10.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T10.g.cs new file mode 100644 index 00000000..e80c2d2a --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T10.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T10.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T11.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T11.g.cs new file mode 100644 index 00000000..c125b95f --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T11.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T11.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T12.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T12.g.cs new file mode 100644 index 00000000..dbe54633 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T12.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T12.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T13.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T13.g.cs new file mode 100644 index 00000000..86c4dc6b --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T13.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T13.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T14.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T14.g.cs new file mode 100644 index 00000000..7ddaccf0 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T14.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T14.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T15.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T15.g.cs new file mode 100644 index 00000000..d77c6908 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T15.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T15.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T16.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T16.g.cs new file mode 100644 index 00000000..0bab1596 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T16.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T16.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T2.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T2.g.cs new file mode 100644 index 00000000..5df51ed1 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T2.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T2.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T3.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T3.g.cs new file mode 100644 index 00000000..e34e8fcf --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T3.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T3.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T4.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T4.g.cs new file mode 100644 index 00000000..372c96ba --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T4.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T4.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T5.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T5.g.cs new file mode 100644 index 00000000..6f8d331b --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T5.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T5.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T6.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T6.g.cs new file mode 100644 index 00000000..fe587bab --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T6.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T6.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T7.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T7.g.cs new file mode 100644 index 00000000..43d65a15 --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T7.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T7.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T8.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T8.g.cs new file mode 100644 index 00000000..eddb88ad --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T8.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T8.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer.Id/T9.g.cs b/src/Flecs.NET/Generated/Observer/Observer.Id/T9.g.cs new file mode 100644 index 00000000..d9e4c70d --- /dev/null +++ b/src/Flecs.NET/Generated/Observer/Observer.Id/T9.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Observer/Observer.Id/T9.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Observer.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Observer +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Observer/Observer/T1.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T1.g.cs index 98b5f40b..aea1da02 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T1.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T1.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer observer) return ToId(observer); } - /// + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer observer) return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T10.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T10.g.cs index c40d1382..39dc59ba 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T10.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T10.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer observer) return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T11.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T11.g.cs index 09df4146..d5cc2bba 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T11.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T11.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer obse return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T12.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T12.g.cs index de8d755f..4a063278 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T12.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T12.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T13.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T13.g.cs index 54a55c95..70da8b85 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T13.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T13.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T14.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T14.g.cs index 12b65b55..a87a30e1 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T14.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T14.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T15.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T15.g.cs index 676d1195..47e20bb3 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T15.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T15.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T16.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T16.g.cs index b7da17fe..a642314f 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T16.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T16.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. The T15 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T2.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T2.g.cs index f30aa54e..c0586ce4 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T2.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T2.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer observer) return ToId(observer); } - /// + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer observer) return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T3.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T3.g.cs index c4fe32e6..ac772570 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T3.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T3.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer observer) return ToId(observer); } - /// + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer observer) return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T4.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T4.g.cs index bc90fdf1..074470a6 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T4.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T4.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer observer) return ToId(observer); } - /// + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer observer) return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T5.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T5.g.cs index f74fc051..a17b4fb5 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T5.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T5.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer observer) return ToId(observer); } - /// + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer observer) return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T6.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T6.g.cs index 48485a83..9499ed03 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T6.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T6.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer observer) return ToId(observer); } - /// + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer observer) return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T7.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T7.g.cs index 0ba5ac5b..d061dc26 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T7.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T7.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer observer return ToId(observer); } - /// + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer observer) return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T8.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T8.g.cs index b926e50f..a846b285 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T8.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T8.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer obse return ToId(observer); } - /// + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer observer) return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Observer/Observer/T9.g.cs b/src/Flecs.NET/Generated/Observer/Observer/T9.g.cs index a9b2aa95..7c6928a6 100644 --- a/src/Flecs.NET/Generated/Observer/Observer/T9.g.cs +++ b/src/Flecs.NET/Generated/Observer/Observer/T9.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. -public unsafe struct Observer : IEquatable>, IDisposable +public unsafe partial struct Observer : IEquatable>, IDisposable { private Observer _observer; @@ -54,12 +54,6 @@ public void Dispose() _observer.Dispose(); } - /// - public void Destruct() - { - _observer.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -96,7 +90,7 @@ public static implicit operator Id(Observer return ToId(observer); } - /// + /// public static implicit operator Entity(Observer observer) { return ToEntity(observer); @@ -114,7 +108,7 @@ public static Id ToId(Observer observer) return observer.Id; } - /// + /// public static Entity ToEntity(Observer observer) { return observer.Entity; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity.g.cs new file mode 100644 index 00000000..9f99723e --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T1.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T1.g.cs new file mode 100644 index 00000000..35400da2 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T1.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T1.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T10.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T10.g.cs new file mode 100644 index 00000000..0b45fca0 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T10.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T10.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T11.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T11.g.cs new file mode 100644 index 00000000..bc5b4cd7 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T11.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T11.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T12.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T12.g.cs new file mode 100644 index 00000000..3e329e22 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T12.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T12.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T13.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T13.g.cs new file mode 100644 index 00000000..024e5751 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T13.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T13.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T14.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T14.g.cs new file mode 100644 index 00000000..6f094395 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T14.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T14.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T15.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T15.g.cs new file mode 100644 index 00000000..1d892f47 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T15.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T15.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T16.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T16.g.cs new file mode 100644 index 00000000..949dd815 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T16.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T16.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T2.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T2.g.cs new file mode 100644 index 00000000..b8e2b02b --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T2.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T2.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T3.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T3.g.cs new file mode 100644 index 00000000..e395b5ef --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T3.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T3.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T4.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T4.g.cs new file mode 100644 index 00000000..e16baa63 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T4.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T4.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T5.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T5.g.cs new file mode 100644 index 00000000..2b314d53 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T5.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T5.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T6.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T6.g.cs new file mode 100644 index 00000000..8298f53b --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T6.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T6.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T7.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T7.g.cs new file mode 100644 index 00000000..bbabc9b6 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T7.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T7.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T8.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T8.g.cs new file mode 100644 index 00000000..4976e2c4 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T8.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T8.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T9.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T9.g.cs new file mode 100644 index 00000000..7d7a87bd --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T9.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Entity/T9.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref Pipeline Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref Pipeline Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref Pipeline Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref Pipeline Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref Pipeline Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref Pipeline AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref Pipeline AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref Pipeline AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref Pipeline IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref Pipeline IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref Pipeline IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref Pipeline ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref Pipeline ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref Pipeline ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref Pipeline DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref Pipeline DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref Pipeline DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref Pipeline SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref Pipeline SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref Pipeline SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref Pipeline Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref Pipeline Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref Pipeline Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref Pipeline Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref Pipeline Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref Pipeline Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref Pipeline RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref Pipeline AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref Pipeline AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref Pipeline AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref Pipeline SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref Pipeline Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref Pipeline Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref Pipeline Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref Pipeline Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref Pipeline EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref Pipeline Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref Pipeline Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref Pipeline Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref Pipeline Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref Pipeline DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref Pipeline SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref Pipeline SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref Pipeline SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref Pipeline Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref Pipeline Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref Pipeline Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref Pipeline SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref Pipeline With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref Pipeline SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref Pipeline SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref Pipeline SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref Pipeline SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref Pipeline SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref Pipeline SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref Pipeline SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref Pipeline SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref Pipeline Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref Pipeline UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref Pipeline Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref Pipeline SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref Pipeline Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref Pipeline Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id.g.cs new file mode 100644 index 00000000..665cbdc7 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T1.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T1.g.cs new file mode 100644 index 00000000..819d65f4 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T1.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T1.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T10.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T10.g.cs new file mode 100644 index 00000000..2cf790cb --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T10.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T10.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T11.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T11.g.cs new file mode 100644 index 00000000..b78787c7 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T11.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T11.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T12.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T12.g.cs new file mode 100644 index 00000000..44ae8816 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T12.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T12.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T13.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T13.g.cs new file mode 100644 index 00000000..275655e1 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T13.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T13.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T14.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T14.g.cs new file mode 100644 index 00000000..9a58e932 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T14.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T14.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T15.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T15.g.cs new file mode 100644 index 00000000..52e6db2c --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T15.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T15.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T16.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T16.g.cs new file mode 100644 index 00000000..29f60ae0 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T16.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T16.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T2.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T2.g.cs new file mode 100644 index 00000000..9adab8a9 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T2.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T2.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T3.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T3.g.cs new file mode 100644 index 00000000..56bd66df --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T3.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T3.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T4.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T4.g.cs new file mode 100644 index 00000000..c8cd336f --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T4.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T4.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T5.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T5.g.cs new file mode 100644 index 00000000..88233da7 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T5.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T5.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T6.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T6.g.cs new file mode 100644 index 00000000..2d90e4d9 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T6.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T6.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T7.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T7.g.cs new file mode 100644 index 00000000..b5519c74 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T7.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T7.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T8.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T8.g.cs new file mode 100644 index 00000000..e601ac90 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T8.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T8.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T9.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T9.g.cs new file mode 100644 index 00000000..091cac23 --- /dev/null +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T9.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/Pipeline/Pipeline.Id/T9.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/Pipeline.cs +namespace Flecs.NET.Core; + +public unsafe partial struct Pipeline +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T1.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T1.g.cs index 4bbae79e..1c4b5e59 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T1.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T1.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 1 type arguments. /// /// The T0 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T10.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T10.g.cs index 01f1d099..411895d9 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T10.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T10.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 10 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T11.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T11.g.cs index 00c0eaeb..8935aa88 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T11.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T11.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 11 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T12.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T12.g.cs index 33a59e95..5281aa9b 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T12.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T12.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 12 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T13.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T13.g.cs index 3648d9dc..3dbc215f 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T13.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T13.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 13 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T14.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T14.g.cs index b14d9456..66df060a 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T14.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T14.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 14 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T15.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T15.g.cs index 57c43e11..ac8b86ce 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T15.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T15.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 15 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T16.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T16.g.cs index 308fd613..767578b7 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T16.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T16.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. The T15 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T2.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T2.g.cs index 12c3868a..c2f0e35d 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T2.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T2.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 2 type arguments. /// /// The T0 component type. The T1 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T3.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T3.g.cs index 5a911cbe..b7acc612 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T3.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T3.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 3 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T4.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T4.g.cs index 3f5a17be..2cb045e2 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T4.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T4.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 4 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T5.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T5.g.cs index eea8cc2c..f656fdd7 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T5.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T5.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 5 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T6.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T6.g.cs index 01cc6c41..e10d5bfa 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T6.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T6.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 6 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T7.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T7.g.cs index 1811294b..b4766794 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T7.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T7.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 7 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T8.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T8.g.cs index 2e5d83e4..839a98ab 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T8.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T8.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 8 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/Pipeline/Pipeline/T9.g.cs b/src/Flecs.NET/Generated/Pipeline/Pipeline/T9.g.cs index acfe9101..891e863e 100644 --- a/src/Flecs.NET/Generated/Pipeline/Pipeline/T9.g.cs +++ b/src/Flecs.NET/Generated/Pipeline/Pipeline/T9.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 9 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. -public unsafe partial struct Pipeline : IEquatable>, IEntity +public unsafe partial struct Pipeline : IEquatable>, IEntity> { private Pipeline _pipeline; diff --git a/src/Flecs.NET/Generated/System_/System.Entity.g.cs b/src/Flecs.NET/Generated/System_/System.Entity.g.cs new file mode 100644 index 00000000..dedc782a --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System_ +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System_ Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System_ Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System_ Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System_ Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System_ Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System_ Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System_ Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System_ Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System_ AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System_ AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System_ AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System_ AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System_ AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System_ AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System_ AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System_ AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System_ AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System_ AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System_ IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System_ IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System_ IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System_ ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System_ ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System_ ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System_ DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System_ DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System_ DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System_ SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System_ SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System_ SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System_ Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System_ Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System_ Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System_ Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System_ Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System_ Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System_ Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System_ Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System_ Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System_ RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System_ AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System_ AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System_ AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System_ AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System_ AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System_ AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System_ AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System_ AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System_ AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System_ SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System_ SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System_ SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System_ SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System_ Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System_ Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System_ Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System_ Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System_ Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System_ Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System_ Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System_ Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System_ Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System_ EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System_ Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System_ Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System_ Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System_ Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System_ Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System_ Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System_ Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System_ Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System_ Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System_ DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System_ SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System_ SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System_ SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System_ SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System_ SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System_ SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System_ SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System_ SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System_ SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System_ SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System_ Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System_ Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System_ Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System_ Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System_ Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System_ Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System_ SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System_ Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System_ Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System_ Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System_ Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System_ Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System_ Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System_ SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System_ With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System_ With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System_ With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System_ With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System_ With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System_ With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System_ Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System_ Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System_ SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System_ SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System_ SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System_ SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System_ SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System_ SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System_ SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System_ SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System_ Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System_ Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System_ UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System_ Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System_ Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System_ Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System_ SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System_ SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System_ SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System_ SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System_ SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System_ SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System_ SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System_ SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System_ Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System_ Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System_ Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System_ Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System_ Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System_ Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T1.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T1.g.cs new file mode 100644 index 00000000..5239d86f --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T1.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T1.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T10.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T10.g.cs new file mode 100644 index 00000000..5e07232c --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T10.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T10.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T11.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T11.g.cs new file mode 100644 index 00000000..530b41bb --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T11.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T11.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T12.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T12.g.cs new file mode 100644 index 00000000..2519086b --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T12.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T12.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T13.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T13.g.cs new file mode 100644 index 00000000..a7b37765 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T13.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T13.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T14.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T14.g.cs new file mode 100644 index 00000000..2626ca0b --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T14.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T14.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T15.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T15.g.cs new file mode 100644 index 00000000..4138f70f --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T15.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T15.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T16.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T16.g.cs new file mode 100644 index 00000000..0b98b939 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T16.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T16.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T2.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T2.g.cs new file mode 100644 index 00000000..610468a1 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T2.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T2.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T3.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T3.g.cs new file mode 100644 index 00000000..959aba1e --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T3.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T3.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T4.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T4.g.cs new file mode 100644 index 00000000..5269fa4b --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T4.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T4.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T5.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T5.g.cs new file mode 100644 index 00000000..c064d8dc --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T5.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T5.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T6.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T6.g.cs new file mode 100644 index 00000000..d20987f8 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T6.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T6.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T7.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T7.g.cs new file mode 100644 index 00000000..8ff7b6a9 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T7.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T7.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T8.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T8.g.cs new file mode 100644 index 00000000..ed62cf2c --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T8.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T8.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Entity/T9.g.cs b/src/Flecs.NET/Generated/System_/System.Entity/T9.g.cs new file mode 100644 index 00000000..5ec654cd --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Entity/T9.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/System_/System.Entity/T9.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref System Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref System Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref System Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref System Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref System Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref System AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref System AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref System AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref System AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref System AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref System IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref System IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref System IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref System ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref System ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref System ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref System DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref System DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref System DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref System SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref System SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref System SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref System Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref System Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref System Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref System Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref System Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref System Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref System RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref System AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref System AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref System AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref System AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref System AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref System AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref System SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref System SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref System SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref System SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref System Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref System Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref System Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref System Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref System EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref System Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref System Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref System Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref System Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref System DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref System SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref System SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref System SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref System SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref System SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref System Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref System Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref System Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref System Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref System Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref System Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref System SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref System With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref System Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref System SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref System SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref System SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref System SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref System SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref System SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref System SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref System SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref System Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref System UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref System Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref System SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref System SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref System SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref System SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref System Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref System Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id.g.cs b/src/Flecs.NET/Generated/System_/System.Id.g.cs new file mode 100644 index 00000000..65f88dd1 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System_ +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T1.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T1.g.cs new file mode 100644 index 00000000..86c97d6a --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T1.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T1.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T10.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T10.g.cs new file mode 100644 index 00000000..564cfc26 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T10.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T10.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T11.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T11.g.cs new file mode 100644 index 00000000..159e5170 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T11.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T11.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T12.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T12.g.cs new file mode 100644 index 00000000..447bf8e3 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T12.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T12.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T13.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T13.g.cs new file mode 100644 index 00000000..c0d4bbbc --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T13.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T13.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T14.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T14.g.cs new file mode 100644 index 00000000..e91ea4c5 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T14.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T14.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T15.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T15.g.cs new file mode 100644 index 00000000..fed907a6 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T15.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T15.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T16.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T16.g.cs new file mode 100644 index 00000000..f1df0909 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T16.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T16.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T2.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T2.g.cs new file mode 100644 index 00000000..bb77a007 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T2.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T2.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T3.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T3.g.cs new file mode 100644 index 00000000..8d3ce22c --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T3.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T3.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T4.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T4.g.cs new file mode 100644 index 00000000..97066e1d --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T4.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T4.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T5.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T5.g.cs new file mode 100644 index 00000000..1d80f6dd --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T5.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T5.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T6.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T6.g.cs new file mode 100644 index 00000000..3721e963 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T6.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T6.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T7.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T7.g.cs new file mode 100644 index 00000000..0de21eed --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T7.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T7.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T8.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T8.g.cs new file mode 100644 index 00000000..20c6df06 --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T8.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T8.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System.Id/T9.g.cs b/src/Flecs.NET/Generated/System_/System.Id/T9.g.cs new file mode 100644 index 00000000..5e6bd68a --- /dev/null +++ b/src/Flecs.NET/Generated/System_/System.Id/T9.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/System_/System.Id/T9.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/System_.cs +namespace Flecs.NET.Core; + +public unsafe partial struct System +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/System_/System/T1.g.cs b/src/Flecs.NET/Generated/System_/System/T1.g.cs index f6423442..b636302c 100644 --- a/src/Flecs.NET/Generated/System_/System/T1.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T1.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 1 type arguments. /// /// The T0 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System system) return ToId(system); } - /// + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system) return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T10.g.cs b/src/Flecs.NET/Generated/System_/System/T10.g.cs index 4bbfd244..4a62afbe 100644 --- a/src/Flecs.NET/Generated/System_/System/T10.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T10.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 10 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system) return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T11.g.cs b/src/Flecs.NET/Generated/System_/System/T11.g.cs index 94663cac..b0e54f62 100644 --- a/src/Flecs.NET/Generated/System_/System/T11.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T11.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 11 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T12.g.cs b/src/Flecs.NET/Generated/System_/System/T12.g.cs index 1b87324b..dd14a703 100644 --- a/src/Flecs.NET/Generated/System_/System/T12.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T12.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 12 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System s return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T13.g.cs b/src/Flecs.NET/Generated/System_/System/T13.g.cs index e8e191f1..1492175e 100644 --- a/src/Flecs.NET/Generated/System_/System/T13.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T13.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 13 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T14.g.cs b/src/Flecs.NET/Generated/System_/System/T14.g.cs index 1aca2ed2..b1e5f9e4 100644 --- a/src/Flecs.NET/Generated/System_/System/T14.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T14.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 14 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T15.g.cs b/src/Flecs.NET/Generated/System_/System/T15.g.cs index 873725e2..caf278bc 100644 --- a/src/Flecs.NET/Generated/System_/System/T15.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T15.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 15 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T16.g.cs b/src/Flecs.NET/Generated/System_/System/T16.g.cs index a54f0efe..360358d4 100644 --- a/src/Flecs.NET/Generated/System_/System/T16.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T16.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 16 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. The T9 component type. The T10 component type. The T11 component type. The T12 component type. The T13 component type. The T14 component type. The T15 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T2.g.cs b/src/Flecs.NET/Generated/System_/System/T2.g.cs index c2376d8b..0bbee443 100644 --- a/src/Flecs.NET/Generated/System_/System/T2.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T2.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 2 type arguments. /// /// The T0 component type. The T1 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System system) return ToId(system); } - /// + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system) return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T3.g.cs b/src/Flecs.NET/Generated/System_/System/T3.g.cs index 0fa95121..fdeb4028 100644 --- a/src/Flecs.NET/Generated/System_/System/T3.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T3.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 3 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System system) return ToId(system); } - /// + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system) return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T4.g.cs b/src/Flecs.NET/Generated/System_/System/T4.g.cs index 960f0496..95f00c96 100644 --- a/src/Flecs.NET/Generated/System_/System/T4.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T4.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 4 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System system) return ToId(system); } - /// + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system) return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T5.g.cs b/src/Flecs.NET/Generated/System_/System/T5.g.cs index 449f353c..441e0ba5 100644 --- a/src/Flecs.NET/Generated/System_/System/T5.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T5.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 5 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System system) return ToId(system); } - /// + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system) return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T6.g.cs b/src/Flecs.NET/Generated/System_/System/T6.g.cs index 4294c2d9..345a76fd 100644 --- a/src/Flecs.NET/Generated/System_/System/T6.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T6.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 6 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System system) return ToId(system); } - /// + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system) return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T7.g.cs b/src/Flecs.NET/Generated/System_/System/T7.g.cs index 0944707a..8a8e33d9 100644 --- a/src/Flecs.NET/Generated/System_/System/T7.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T7.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 7 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System system) return ToId(system); } - /// + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system) return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T8.g.cs b/src/Flecs.NET/Generated/System_/System/T8.g.cs index 0b7ee7c9..b7f4e617 100644 --- a/src/Flecs.NET/Generated/System_/System/T8.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T8.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 8 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System system return ToId(system); } - /// + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system) return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/System_/System/T9.g.cs b/src/Flecs.NET/Generated/System_/System/T9.g.cs index 99f07ffa..d8eaf82d 100644 --- a/src/Flecs.NET/Generated/System_/System/T9.g.cs +++ b/src/Flecs.NET/Generated/System_/System/T9.g.cs @@ -11,7 +11,7 @@ namespace Flecs.NET.Core; /// A type-safe wrapper around that takes 9 type arguments. /// /// The T0 component type. The T1 component type. The T2 component type. The T3 component type. The T4 component type. The T5 component type. The T6 component type. The T7 component type. The T8 component type. -public unsafe struct System : IEquatable>, IEntity +public unsafe partial struct System : IEquatable>, IEntity> { private System_ _system; @@ -48,12 +48,6 @@ public System(Entity entity) _system = new System_(entity); } - /// - public void Destruct() - { - _system.Destruct(); - } - /// public void Ctx(void* ctx) { @@ -168,7 +162,7 @@ public static implicit operator Id(System sy return ToId(system); } - /// + /// public static implicit operator Entity(System system) { return ToEntity(system); @@ -186,7 +180,7 @@ public static Id ToId(System system) return system.Id; } - /// + /// public static Entity ToEntity(System system) { return system.Entity; diff --git a/src/Flecs.NET/Generated/TimerEntity/TimerEntity.Entity.g.cs b/src/Flecs.NET/Generated/TimerEntity/TimerEntity.Entity.g.cs new file mode 100644 index 00000000..39fb0410 --- /dev/null +++ b/src/Flecs.NET/Generated/TimerEntity/TimerEntity.Entity.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/TimerEntity/TimerEntity.Entity.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/TimerEntity.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct TimerEntity +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref TimerEntity Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref TimerEntity Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref TimerEntity Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref TimerEntity Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref TimerEntity Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref TimerEntity Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref TimerEntity Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref TimerEntity Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref TimerEntity AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref TimerEntity AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref TimerEntity AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref TimerEntity AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref TimerEntity AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref TimerEntity AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref TimerEntity AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref TimerEntity AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref TimerEntity AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref TimerEntity AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref TimerEntity IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref TimerEntity IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref TimerEntity IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref TimerEntity ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref TimerEntity ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref TimerEntity ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref TimerEntity DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref TimerEntity DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref TimerEntity DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref TimerEntity SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref TimerEntity SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref TimerEntity SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref TimerEntity Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref TimerEntity Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref TimerEntity Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref TimerEntity Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref TimerEntity Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref TimerEntity Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref TimerEntity Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref TimerEntity Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref TimerEntity Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref TimerEntity RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref TimerEntity AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref TimerEntity AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref TimerEntity AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref TimerEntity AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref TimerEntity AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref TimerEntity AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref TimerEntity AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref TimerEntity AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref TimerEntity AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref TimerEntity SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref TimerEntity Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref TimerEntity Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref TimerEntity Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref TimerEntity Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref TimerEntity Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref TimerEntity Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref TimerEntity Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref TimerEntity Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref TimerEntity Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref TimerEntity EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref TimerEntity Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref TimerEntity Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref TimerEntity Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref TimerEntity Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref TimerEntity Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref TimerEntity Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref TimerEntity Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref TimerEntity Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref TimerEntity Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref TimerEntity DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref TimerEntity SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref TimerEntity SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref TimerEntity SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref TimerEntity SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref TimerEntity SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref TimerEntity SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref TimerEntity SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref TimerEntity SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref TimerEntity SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref TimerEntity SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref TimerEntity Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref TimerEntity Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref TimerEntity Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref TimerEntity Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref TimerEntity Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref TimerEntity Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref TimerEntity SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref TimerEntity Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref TimerEntity Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref TimerEntity Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref TimerEntity Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref TimerEntity Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref TimerEntity Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref TimerEntity SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref TimerEntity With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref TimerEntity With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref TimerEntity With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref TimerEntity With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref TimerEntity With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref TimerEntity With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref TimerEntity Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref TimerEntity Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref TimerEntity SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref TimerEntity SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref TimerEntity SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref TimerEntity SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref TimerEntity SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref TimerEntity SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref TimerEntity SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref TimerEntity SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref TimerEntity Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref TimerEntity Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref TimerEntity UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref TimerEntity Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref TimerEntity Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref TimerEntity Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref TimerEntity SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref TimerEntity SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref TimerEntity SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref TimerEntity SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref TimerEntity SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref TimerEntity SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref TimerEntity SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref TimerEntity SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref TimerEntity Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref TimerEntity Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref TimerEntity Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref TimerEntity Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref TimerEntity Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref TimerEntity Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/TimerEntity/TimerEntity.Id.g.cs b/src/Flecs.NET/Generated/TimerEntity/TimerEntity.Id.g.cs new file mode 100644 index 00000000..227e4d98 --- /dev/null +++ b/src/Flecs.NET/Generated/TimerEntity/TimerEntity.Id.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/TimerEntity/TimerEntity.Id.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/TimerEntity.cs +namespace Flecs.NET.Core; + +public unsafe partial struct TimerEntity +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/UntypedComponent/UntypedComponent.Entity.g.cs b/src/Flecs.NET/Generated/UntypedComponent/UntypedComponent.Entity.g.cs new file mode 100644 index 00000000..855c61e0 --- /dev/null +++ b/src/Flecs.NET/Generated/UntypedComponent/UntypedComponent.Entity.g.cs @@ -0,0 +1,1987 @@ +// /_/src/Flecs.NET/Generated/UntypedComponent/UntypedComponent.Entity.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/UntypedComponent.cs +using System; +using static Flecs.NET.Bindings.flecs; + +namespace Flecs.NET.Core; + +public unsafe partial struct UntypedComponent +{ + /// + public bool IsValid() + { + return Entity.IsValid(); + } + + /// + public bool IsAlive() + { + return Entity.IsAlive(); + } + + /// + public string Name() + { + return Entity.Name(); + } + + /// + public string Symbol() + { + return Entity.Symbol(); + } + + /// + public string Path(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.Path(sep, initSep); + } + + /// + public string PathFrom(ulong parent, string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(parent, sep, initSep); + } + + /// + public string PathFrom(string sep = Ecs.DefaultSeparator, string initSep = Ecs.DefaultSeparator) + { + return Entity.PathFrom(sep, initSep); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(ulong id) + { + return Entity.Enabled(id); + } + + /// + public bool Enabled(ulong first, ulong second) + { + return Entity.Enabled(first, second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(T value) where T : Enum + { + return Entity.Enabled(value); + } + + /// + public bool Enabled(ulong second) + { + return Entity.Enabled(second); + } + + /// + public bool Enabled() + { + return Entity.Enabled(); + } + + /// + public bool Enabled(TSecond second) where TSecond : Enum + { + return Entity.Enabled(second); + } + + /// + public bool Enabled(TFirst first) where TFirst : Enum + { + return Entity.Enabled(first); + } + + /// + public bool EnabledSecond(ulong first) + { + return Entity.EnabledSecond(first); + } + + /// + public Types Type() + { + return Entity.Type(); + } + + /// + public Table Table() + { + return Entity.Table(); + } + + /// + public Table Range() + { + return Entity.Range(); + } + + /// + public void Each(Ecs.EachIdCallback func) + { + Entity.Each(func); + } + + /// + public void Each(ulong first, ulong second, Ecs.EachIdCallback func) + { + Entity.Each(first, second, func); + } + + /// + public void Each(ulong relation, Ecs.EachEntityCallback func) + { + Entity.Each(relation, func); + } + + /// + public void Each(Ecs.EachEntityCallback func) + { + Entity.Each(func); + } + + /// + public void Each(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Each(relation, callback); + } + + /// + public void Children(ulong relation, Ecs.EachEntityCallback callback) + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void Children(TFirst relation, Ecs.EachEntityCallback callback) where TFirst : Enum + { + Entity.Children(relation, callback); + } + + /// + public void Children(Ecs.EachEntityCallback callback) + { + Entity.Children(callback); + } + + /// + public void* GetPtr(ulong compId) + { + return Entity.GetPtr(compId); + } + + /// + public void* GetPtr(ulong first, ulong second) + { + return Entity.GetPtr(first, second); + } + + /// + public T* GetPtr() where T : unmanaged + { + return Entity.GetPtr(); + } + + /// + public TFirst* GetPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetPtr(second); + } + + /// + public TFirst* GetPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetPtr(second); + } + + /// + public TSecond* GetPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetPtr(first); + } + + /// + public TFirst* GetFirstPtr() where TFirst : unmanaged + { + return Entity.GetFirstPtr(); + } + + /// + public TSecond* GetSecondPtr() where TSecond : unmanaged + { + return Entity.GetSecondPtr(); + } + + /// + public TSecond* GetSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetSecondPtr(first); + } + + /// + public ref readonly T Get() + { + return ref Entity.Get(); + } + + /// + public ref readonly TFirst Get(ulong second) + { + return ref Entity.Get(second); + } + + /// + public ref readonly TFirst Get(TSecond second) where TSecond : Enum + { + return ref Entity.Get(second); + } + + /// + public ref readonly TSecond Get(TFirst first) where TFirst : Enum + { + return ref Entity.Get(first); + } + + /// + public ref readonly TFirst GetFirst() + { + return ref Entity.GetFirst(); + } + + /// + public ref readonly TSecond GetSecond() + { + return ref Entity.GetSecond(); + } + + /// + public ref readonly TSecond GetSecond(ulong first) + { + return ref Entity.GetSecond(first); + } + + /// + public void* GetMutPtr(ulong id) + { + return Entity.GetMutPtr(id); + } + + /// + public void* GetMutPtr(ulong first, ulong second) + { + return Entity.GetMutPtr(first, second); + } + + /// + public T* GetMutPtr() where T : unmanaged + { + return Entity.GetMutPtr(); + } + + /// + public TFirst* GetMutPtr(ulong second) where TFirst : unmanaged + { + return Entity.GetMutPtr(second); + } + + /// + public TFirst* GetMutPtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.GetMutPtr(second); + } + + /// + public TSecond* GetMutPtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.GetMutPtr(first); + } + + /// + public TFirst* GetMutFirstPtr() where TFirst : unmanaged + { + return Entity.GetMutFirstPtr(); + } + + /// + public TSecond* GetMutSecondPtr() where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(); + } + + /// + public TSecond* GetMutSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.GetMutSecondPtr(first); + } + + /// + public ref T GetMut() + { + return ref Entity.GetMut(); + } + + /// + public ref TFirst GetMut(ulong second) + { + return ref Entity.GetMut(second); + } + + /// + public ref TFirst GetMut(TSecond second) where TSecond : Enum + { + return ref Entity.GetMut(second); + } + + /// + public ref TSecond GetMut(TFirst first) where TFirst : Enum + { + return ref Entity.GetMut(first); + } + + /// + public ref TFirst GetMutFirst() + { + return ref Entity.GetMutFirst(); + } + + /// + public ref TSecond GetMutSecond() + { + return ref Entity.GetMutSecond(); + } + + /// + public ref TSecond GetMutSecond(ulong first) + { + return ref Entity.GetMutSecond(first); + } + + /// + public Entity Target(ulong relation, int index = 0) + { + return Entity.Target(relation, index); + } + + /// + public Entity Target(int index = 0) where T : unmanaged + { + return Entity.Target(index); + } + + /// + public Entity TargetFor(ulong relation, ulong id) + { + return Entity.TargetFor(relation, id); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public Entity TargetFor(ulong relation) + { + return Entity.TargetFor(relation); + } + + /// + public int Depth(ulong rel) + { + return Entity.Depth(rel); + } + + /// + public int Depth() + { + return Entity.Depth(); + } + + /// + public int Depth(T value) where T : Enum + { + return Entity.Depth(value); + } + + /// + public Entity Parent() + { + return Entity.Parent(); + } + + /// + public Entity Lookup(string path, bool recursive = false) + { + return Entity.Lookup(path, recursive); + } + + /// + public bool TryLookup(string path, out Entity entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out Entity entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool TryLookup(string path, out ulong entity) + { + return Entity.TryLookup(path, out entity); + } + + /// + public bool TryLookup(string path, bool recursive, out ulong entity) + { + return Entity.TryLookup(path, recursive, out entity); + } + + /// + public bool Has(ulong id) + { + return Entity.Has(id); + } + + /// + public bool Has(ulong first, ulong second) + { + return Entity.Has(first, second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(T value) where T : Enum + { + return Entity.Has(value); + } + + /// + public bool Has(ulong second) + { + return Entity.Has(second); + } + + /// + public bool Has() + { + return Entity.Has(); + } + + /// + public bool Has(TSecond second) where TSecond : Enum + { + return Entity.Has(second); + } + + /// + public bool Has(TFirst first) where TFirst : Enum + { + return Entity.Has(first); + } + + /// + public bool HasSecond(ulong first) + { + return Entity.HasSecond(first); + } + + /// + public bool Owns(ulong id) + { + return Entity.Owns(id); + } + + /// + public bool Owns(ulong first, ulong second) + { + return Entity.Owns(first, second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(T value) where T : Enum + { + return Entity.Owns(value); + } + + /// + public bool Owns(ulong second) + { + return Entity.Owns(second); + } + + /// + public bool Owns() + { + return Entity.Owns(); + } + + /// + public bool Owns(TSecond second) where TSecond : Enum + { + return Entity.Owns(second); + } + + /// + public bool Owns(TFirst first) where TFirst : Enum + { + return Entity.Owns(first); + } + + /// + public bool OwnsSecond(ulong first) + { + return Entity.OwnsSecond(first); + } + + /// + public Entity Clone(bool cloneValue = true, ulong dstId = 0) + { + return Entity.Clone(cloneValue, dstId); + } + + /// + public Entity Mut(ref World stage) + { + return Entity.Mut(ref stage); + } + + /// + public Entity Mut(ref Iter it) + { + return Entity.Mut(ref it); + } + + /// + public Entity Mut(ref Entity entity) + { + return Entity.Mut(ref entity); + } + + /// + public Entity Mut(World stage) + { + return Entity.Mut(stage); + } + + /// + public Entity Mut(Iter it) + { + return Entity.Mut(it); + } + + /// + public Entity Mut(Entity entity) + { + return Entity.Mut(entity); + } + + /// + public string ToJson(ecs_entity_to_json_desc_t* desc) + { + return Entity.ToJson(desc); + } + + /// + public string ToJson() + { + return Entity.ToJson(); + } + + /// + public string ToJson(ref EntityToJsonDesc desc) + { + return Entity.ToJson(ref desc); + } + + /// + public string ToJson(EntityToJsonDesc desc) + { + return Entity.ToJson(desc); + } + + /// + public string DocName() + { + return Entity.DocName(); + } + + /// + public string DocBrief() + { + return Entity.DocBrief(); + } + + /// + public string DocDetail() + { + return Entity.DocDetail(); + } + + /// + public string DocLink() + { + return Entity.DocLink(); + } + + /// + public string DocColor() + { + return Entity.DocColor(); + } + + /// + public string DocUuid() + { + return Entity.DocUuid(); + } + + /// + public int AlertCount(ulong alert = 0) + { + return Entity.AlertCount(alert); + } + + /// + public T ToConstant() where T : unmanaged, Enum + { + return Entity.ToConstant(); + } + + /// + public void Emit(ulong eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit(Entity eventId) + { + Entity.Emit(eventId); + } + + /// + public void Emit() + { + Entity.Emit(); + } + + /// + public void Emit(T payload) where T : unmanaged + { + Entity.Emit(payload); + } + + /// + public void Emit(ref T payload) + { + Entity.Emit(ref payload); + } + + /// + public void Enqueue(ulong eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue(Entity eventId) + { + Entity.Enqueue(eventId); + } + + /// + public void Enqueue() + { + Entity.Enqueue(); + } + + /// + public void Enqueue(T payload) where T : unmanaged + { + Entity.Enqueue(payload); + } + + /// + public void Enqueue(ref T payload) + { + Entity.Enqueue(ref payload); + } + + /// + public bool IsChildOf(ulong entity) + { + return Entity.IsChildOf(entity); + } + + /// + public bool IsChildOf() + { + return Entity.IsChildOf(); + } + + /// + public bool IsChildOf(T value) where T : Enum + { + return Entity.IsChildOf(value); + } + + /// + public ref UntypedComponent Add(ulong id) + { + Entity.Add(id); + return ref this; + } + + /// + public ref UntypedComponent Add(ulong first, ulong second) + { + Entity.Add(first, second); + return ref this; + } + + /// + public ref UntypedComponent Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref UntypedComponent Add(ulong second) + { + Entity.Add(second); + return ref this; + } + + /// + public ref UntypedComponent Add(T value) where T : Enum + { + Entity.Add(value); + return ref this; + } + + /// + public ref UntypedComponent Add() + { + Entity.Add(); + return ref this; + } + + /// + public ref UntypedComponent Add(TSecond second) where TSecond : Enum + { + Entity.Add(second); + return ref this; + } + + /// + public ref UntypedComponent Add(TFirst first) where TFirst : Enum + { + Entity.Add(first); + return ref this; + } + + /// + public ref UntypedComponent AddSecond(ulong first) + { + Entity.AddSecond(first); + return ref this; + } + + /// + public ref UntypedComponent AddIf(bool cond, ulong id) + { + Entity.AddIf(cond, id); + return ref this; + } + + /// + public ref UntypedComponent AddIf(bool cond, ulong first, ulong second) + { + Entity.AddIf(cond, first, second); + return ref this; + } + + /// + public ref UntypedComponent AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref UntypedComponent AddIf(bool cond, T value) where T : Enum + { + Entity.AddIf(cond, value); + return ref this; + } + + /// + public ref UntypedComponent AddIf(bool cond, ulong second) + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref UntypedComponent AddIf(bool cond) + { + Entity.AddIf(cond); + return ref this; + } + + /// + public ref UntypedComponent AddIf(bool cond, TSecond second) where TSecond : Enum + { + Entity.AddIf(cond, second); + return ref this; + } + + /// + public ref UntypedComponent AddIf(bool cond, TFirst first) where TFirst : Enum + { + Entity.AddIf(cond, first); + return ref this; + } + + /// + public ref UntypedComponent AddIfSecond(bool cond, ulong first) + { + Entity.AddIfSecond(cond, first); + return ref this; + } + + /// + public ref UntypedComponent IsA(ulong id) + { + Entity.IsA(id); + return ref this; + } + + /// + public ref UntypedComponent IsA() + { + Entity.IsA(); + return ref this; + } + + /// + public ref UntypedComponent IsA(T value) where T : Enum + { + Entity.IsA(value); + return ref this; + } + + /// + public ref UntypedComponent ChildOf(ulong second) + { + Entity.ChildOf(second); + return ref this; + } + + /// + public ref UntypedComponent ChildOf() + { + Entity.ChildOf(); + return ref this; + } + + /// + public ref UntypedComponent ChildOf(T value) where T : Enum + { + Entity.ChildOf(value); + return ref this; + } + + /// + public ref UntypedComponent DependsOn(ulong second) + { + Entity.DependsOn(second); + return ref this; + } + + /// + public ref UntypedComponent DependsOn() + { + Entity.DependsOn(); + return ref this; + } + + /// + public ref UntypedComponent DependsOn(T value) where T : Enum + { + Entity.DependsOn(value); + return ref this; + } + + /// + public ref UntypedComponent SlotOf(ulong id) + { + Entity.SlotOf(id); + return ref this; + } + + /// + public ref UntypedComponent SlotOf() + { + Entity.SlotOf(); + return ref this; + } + + /// + public ref UntypedComponent SlotOf(T value) where T : Enum + { + Entity.SlotOf(value); + return ref this; + } + + /// + public ref UntypedComponent Slot() + { + Entity.Slot(); + return ref this; + } + + /// + public ref UntypedComponent Remove(ulong id) + { + Entity.Remove(id); + return ref this; + } + + /// + public ref UntypedComponent Remove(ulong first, ulong second) + { + Entity.Remove(first, second); + return ref this; + } + + /// + public ref UntypedComponent Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref UntypedComponent Remove(T value) where T : Enum + { + Entity.Remove(value); + return ref this; + } + + /// + public ref UntypedComponent Remove(ulong second) + { + Entity.Remove(second); + return ref this; + } + + /// + public ref UntypedComponent Remove() + { + Entity.Remove(); + return ref this; + } + + /// + public ref UntypedComponent Remove(TSecond second) where TSecond : Enum + { + Entity.Remove(second); + return ref this; + } + + /// + public ref UntypedComponent Remove(TFirst first) where TFirst : Enum + { + Entity.Remove(first); + return ref this; + } + + /// + public ref UntypedComponent RemoveSecond(ulong first) + { + Entity.RemoveSecond(first); + return ref this; + } + + /// + public ref UntypedComponent AutoOverride(ulong id) + { + Entity.AutoOverride(id); + return ref this; + } + + /// + public ref UntypedComponent AutoOverride(ulong first, ulong second) + { + Entity.AutoOverride(first, second); + return ref this; + } + + /// + public ref UntypedComponent AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref UntypedComponent AutoOverride(T value) where T : Enum + { + Entity.AutoOverride(value); + return ref this; + } + + /// + public ref UntypedComponent AutoOverride(ulong second) + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref UntypedComponent AutoOverride() + { + Entity.AutoOverride(); + return ref this; + } + + /// + public ref UntypedComponent AutoOverride(TSecond second) where TSecond : Enum + { + Entity.AutoOverride(second); + return ref this; + } + + /// + public ref UntypedComponent AutoOverride(TFirst first) where TFirst : Enum + { + Entity.AutoOverride(first); + return ref this; + } + + /// + public ref UntypedComponent AutoOverrideSecond(ulong first) + { + Entity.AutoOverrideSecond(first); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(T component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(ref T component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(ulong second, TFirst component) + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(ulong second, ref TFirst component) + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(TFirst component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(ref TFirst component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(TSecond component) + { + Entity.SetAutoOverride(component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(ref TSecond component) + { + Entity.SetAutoOverride(ref component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(TSecond second, TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(TSecond second, ref TFirst component) where TSecond : Enum + { + Entity.SetAutoOverride(second, ref component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(TFirst first, TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverride(TFirst first, ref TSecond component) where TFirst : Enum + { + Entity.SetAutoOverride(first, ref component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverrideSecond(ulong first, TSecond component) + { + Entity.SetAutoOverrideSecond(first, component); + return ref this; + } + + /// + public ref UntypedComponent SetAutoOverrideSecond(ulong first, ref TSecond component) + { + Entity.SetAutoOverrideSecond(first, ref component); + return ref this; + } + + /// + public ref UntypedComponent Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref UntypedComponent Enable(ulong id) + { + Entity.Enable(id); + return ref this; + } + + /// + public ref UntypedComponent Enable(ulong first, ulong second) + { + Entity.Enable(first, second); + return ref this; + } + + /// + public ref UntypedComponent Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref UntypedComponent Enable(T value) where T : Enum + { + Entity.Enable(value); + return ref this; + } + + /// + public ref UntypedComponent Enable(ulong second) + { + Entity.Enable(second); + return ref this; + } + + /// + public ref UntypedComponent Enable() + { + Entity.Enable(); + return ref this; + } + + /// + public ref UntypedComponent Enable(TSecond second) where TSecond : Enum + { + Entity.Enable(second); + return ref this; + } + + /// + public ref UntypedComponent Enable(TFirst first) where TFirst : Enum + { + Entity.Enable(first); + return ref this; + } + + /// + public ref UntypedComponent EnableSecond(ulong first) + { + Entity.EnableSecond(first); + return ref this; + } + + /// + public ref UntypedComponent Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref UntypedComponent Disable(ulong id) + { + Entity.Disable(id); + return ref this; + } + + /// + public ref UntypedComponent Disable(ulong first, ulong second) + { + Entity.Disable(first, second); + return ref this; + } + + /// + public ref UntypedComponent Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref UntypedComponent Disable(T value) where T : Enum + { + Entity.Disable(value); + return ref this; + } + + /// + public ref UntypedComponent Disable(ulong second) + { + Entity.Disable(second); + return ref this; + } + + /// + public ref UntypedComponent Disable() + { + Entity.Disable(); + return ref this; + } + + /// + public ref UntypedComponent Disable(TSecond second) where TSecond : Enum + { + Entity.Disable(second); + return ref this; + } + + /// + public ref UntypedComponent Disable(TFirst first) where TFirst : Enum + { + Entity.Disable(first); + return ref this; + } + + /// + public ref UntypedComponent DisableSecond(ulong first) + { + Entity.DisableSecond(first); + return ref this; + } + + /// + public ref UntypedComponent SetUntyped(ulong id, int size, void* data) + { + Entity.SetUntyped(id, size, data); + return ref this; + } + + /// + public ref UntypedComponent SetUntyped(ulong id, void* data) + { + Entity.SetUntyped(id, data); + return ref this; + } + + /// + public ref UntypedComponent SetUntyped(ulong first, ulong second, int size, void* data) + { + Entity.SetUntyped(first, second, size, data); + return ref this; + } + + /// + public ref UntypedComponent SetPtr(T* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref UntypedComponent SetPtr(ulong second, TFirst* data) + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref UntypedComponent SetPtr(TSecond* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref UntypedComponent SetPtr(TFirst* data) + { + Entity.SetPtr(data); + return ref this; + } + + /// + public ref UntypedComponent SetPtr(TSecond second, TFirst* data) where TSecond : Enum + { + Entity.SetPtr(second, data); + return ref this; + } + + /// + public ref UntypedComponent SetPtr(TFirst first, TSecond* data) where TFirst : Enum + { + Entity.SetPtr(first, data); + return ref this; + } + + /// + public ref UntypedComponent SetPtrSecond(ulong first, TSecond* data) + { + Entity.SetPtrSecond(first, data); + return ref this; + } + + /// + public ref UntypedComponent Set(T data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref UntypedComponent Set(ulong second, TFirst data) + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref UntypedComponent Set(TSecond data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref UntypedComponent Set(TFirst data) + { + Entity.Set(data); + return ref this; + } + + /// + public ref UntypedComponent Set(TSecond second, TFirst data) where TSecond : Enum + { + Entity.Set(second, data); + return ref this; + } + + /// + public ref UntypedComponent Set(TFirst first, TSecond data) where TFirst : Enum + { + Entity.Set(first, data); + return ref this; + } + + /// + public ref UntypedComponent SetSecond(ulong first, TSecond data) + { + Entity.SetSecond(first, data); + return ref this; + } + + /// + public ref UntypedComponent Set(ref T data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref UntypedComponent Set(ulong second, ref TFirst data) + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref UntypedComponent Set(ref TSecond data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref UntypedComponent Set(ref TFirst data) + { + Entity.Set(ref data); + return ref this; + } + + /// + public ref UntypedComponent Set(TSecond second, ref TFirst data) where TSecond : Enum + { + Entity.Set(second, ref data); + return ref this; + } + + /// + public ref UntypedComponent Set(TFirst first, ref TSecond data) where TFirst : Enum + { + Entity.Set(first, ref data); + return ref this; + } + + /// + public ref UntypedComponent SetSecond(ulong first, ref TSecond data) + { + Entity.SetSecond(first, ref data); + return ref this; + } + + /// + public ref UntypedComponent With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref UntypedComponent With(ulong first, Action callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref UntypedComponent With(Action callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref UntypedComponent With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref UntypedComponent With(ulong first, Ecs.WorldCallback callback) + { + Entity.With(first, callback); + return ref this; + } + + /// + public ref UntypedComponent With(Ecs.WorldCallback callback) + { + Entity.With(callback); + return ref this; + } + + /// + public ref UntypedComponent Scope(Action callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref UntypedComponent Scope(Ecs.WorldCallback callback) + { + Entity.Scope(callback); + return ref this; + } + + /// + public ref UntypedComponent SetName(string name) + { + Entity.SetName(name); + return ref this; + } + + /// + public ref UntypedComponent SetAlias(string alias) + { + Entity.SetAlias(alias); + return ref this; + } + + /// + public ref UntypedComponent SetDocName(string name) + { + Entity.SetDocName(name); + return ref this; + } + + /// + public ref UntypedComponent SetDocBrief(string brief) + { + Entity.SetDocBrief(brief); + return ref this; + } + + /// + public ref UntypedComponent SetDocDetail(string detail) + { + Entity.SetDocDetail(detail); + return ref this; + } + + /// + public ref UntypedComponent SetDocLink(string link) + { + Entity.SetDocLink(link); + return ref this; + } + + /// + public ref UntypedComponent SetDocColor(string color) + { + Entity.SetDocColor(color); + return ref this; + } + + /// + public ref UntypedComponent SetDocUuid(string uuid) + { + Entity.SetDocUuid(uuid); + return ref this; + } + + /// + public ref UntypedComponent Unit( + string symbol, + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(symbol, prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref UntypedComponent Unit( + ulong prefix = 0, + ulong @base = 0, + ulong over = 0, + int factor = 0, + int power = 0) + { + Entity.Unit(prefix, @base, over, factor, power); + return ref this; + } + + /// + public ref UntypedComponent UnitPrefix(string symbol, int factor = 0, int power = 0) + { + Entity.UnitPrefix(symbol, factor, power); + return ref this; + } + + /// + public ref UntypedComponent Quantity(ulong quantity) + { + Entity.Quantity(quantity); + return ref this; + } + + /// + public ref UntypedComponent Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref UntypedComponent Quantity() + { + Entity.Quantity(); + return ref this; + } + + /// + public ref UntypedComponent SetJson(ulong e, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(e, json, desc); + return ref this; + } + + /// + public ref UntypedComponent SetJson(ulong first, ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(first, second, json, desc); + return ref this; + } + + /// + public ref UntypedComponent SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref UntypedComponent SetJson(ulong second, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref UntypedComponent SetJson(string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJson(json, desc); + return ref this; + } + + /// + public ref UntypedComponent SetJson(TSecond second, string json, ecs_from_json_desc_t* desc = null) where TSecond : Enum + { + Entity.SetJson(second, json, desc); + return ref this; + } + + /// + public ref UntypedComponent SetJson(TFirst first, string json, ecs_from_json_desc_t* desc = null) where TFirst : Enum + { + Entity.SetJson(first, json, desc); + return ref this; + } + + /// + public ref UntypedComponent SetJsonSecond(ulong first, string json, ecs_from_json_desc_t* desc = null) + { + Entity.SetJsonSecond(first, json, desc); + return ref this; + } + + /// + public ref UntypedComponent Observe(ulong eventId, Action callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref UntypedComponent Observe(ulong eventId, Ecs.ObserveEntityCallback callback) + { + Entity.Observe(eventId, callback); + return ref this; + } + + /// + public ref UntypedComponent Observe(Action callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref UntypedComponent Observe(Ecs.ObserveEntityCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref UntypedComponent Observe(Ecs.ObserveRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public ref UntypedComponent Observe(Ecs.ObserveEntityRefCallback callback) + { + Entity.Observe(callback); + return ref this; + } + + /// + public void* EnsurePtr(ulong id) + { + return Entity.EnsurePtr(id); + } + + /// + public void* EnsurePtr(ulong first, ulong second) + { + return Entity.EnsurePtr(first, second); + } + + /// + public T* EnsurePtr() where T : unmanaged + { + return Entity.EnsurePtr(); + } + + /// + public TFirst* EnsurePtr(ulong second) where TFirst : unmanaged + { + return Entity.EnsurePtr(second); + } + + /// + public TFirst* EnsurePtr(TSecond second) where TFirst : unmanaged + where TSecond : Enum + { + return Entity.EnsurePtr(second); + } + + /// + public TSecond* EnsurePtr(TFirst first) where TFirst : Enum + where TSecond : unmanaged + { + return Entity.EnsurePtr(first); + } + + /// + public TFirst* EnsureFirstPtr() where TFirst : unmanaged + { + return Entity.EnsureFirstPtr(); + } + + /// + public TSecond* EnsureSecondPtr() where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(); + } + + /// + public TSecond* EnsureSecondPtr(ulong first) where TSecond : unmanaged + { + return Entity.EnsureSecondPtr(first); + } + + /// + public ref T Ensure() + { + return ref Entity.Ensure(); + } + + /// + public ref TFirst Ensure(ulong second) + { + return ref Entity.Ensure(second); + } + + /// + public ref TFirst Ensure(TSecond second) where TSecond : Enum + { + return ref Entity.Ensure(second); + } + + /// + public ref TSecond Ensure(TFirst first) where TFirst : Enum + { + return ref Entity.Ensure(first); + } + + /// + public ref TFirst EnsureFirst() + { + return ref Entity.EnsureFirst(); + } + + /// + public ref TSecond EnsureSecond() + { + return ref Entity.EnsureSecond(); + } + + /// + public ref TSecond EnsureSecond(ulong first) + { + return ref Entity.EnsureSecond(first); + } + + /// + public void Modified(ulong id) + { + Entity.Modified(id); + } + + /// + public void Modified(ulong first, ulong second) + { + Entity.Modified(first, second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(T value) where T : Enum + { + Entity.Modified(value); + } + + /// + public void Modified(ulong second) + { + Entity.Modified(second); + } + + /// + public void Modified() + { + Entity.Modified(); + } + + /// + public void Modified(TSecond second) where TSecond : Enum + { + Entity.Modified(second); + } + + /// + public void Modified(TFirst first) where TFirst : Enum + { + Entity.Modified(first); + } + + /// + public void ModifiedSecond(ulong first) + { + Entity.ModifiedSecond(first); + } + + /// + public Ref GetRef() + { + return Entity.GetRef(); + } + + /// + public Ref GetRef(ulong second) + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TSecond second) where TSecond : Enum + { + return Entity.GetRef(second); + } + + /// + public Ref GetRef(TFirst first) where TFirst : Enum + { + return Entity.GetRef(first); + } + + /// + public Ref GetRefFirst() + { + return Entity.GetRefFirst(); + } + + /// + public Ref GetRefSecond() + { + return Entity.GetRefSecond(); + } + + /// + public Ref GetRefSecond(ulong first) + { + return Entity.GetRefSecond(first); + } + + /// + public void Clear() + { + Entity.Clear(); + } + + /// + public void Destruct() + { + Entity.Destruct(); + } + + /// + public string FromJson(string json) + { + return Entity.FromJson(json); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Generated/UntypedComponent/UntypedComponent.Id.g.cs b/src/Flecs.NET/Generated/UntypedComponent/UntypedComponent.Id.g.cs new file mode 100644 index 00000000..44dd80fe --- /dev/null +++ b/src/Flecs.NET/Generated/UntypedComponent/UntypedComponent.Id.g.cs @@ -0,0 +1,114 @@ +// /_/src/Flecs.NET/Generated/UntypedComponent/UntypedComponent.Id.g.cs +// File was auto-generated by /_/src/Flecs.NET.Codegen/Generators/UntypedComponent.cs +namespace Flecs.NET.Core; + +public unsafe partial struct UntypedComponent +{ + /// + public bool IsPair() + { + return Id.IsPair(); + } + + /// + public bool IsWildCard() + { + return Id.IsWildCard(); + } + + /// + public bool IsEntity() + { + return Id.IsEntity(); + } + + /// + public Entity ToEntity() + { + return Id.ToEntity(); + } + + /// + public Entity AddFlags(ulong flags) + { + return Id.AddFlags(flags); + } + + /// + public Entity RemoveFlags(ulong flags) + { + return Id.RemoveFlags(flags); + } + + /// + public Entity RemoveFlags() + { + return Id.RemoveFlags(); + } + + /// + public Entity RemoveGeneration() + { + return Id.RemoveGeneration(); + } + + /// + public Entity TypeId() + { + return Id.TypeId(); + } + + /// + public bool HasFlags(ulong flags) + { + return Id.HasFlags(flags); + } + + /// + public bool HasFlags() + { + return Id.HasFlags(); + } + + /// + public Entity Flags() + { + return Id.Flags(); + } + + /// + public bool HasRelation(ulong first) + { + return Id.HasRelation(first); + } + + /// + public Entity First() + { + return Id.First(); + } + + /// + public Entity Second() + { + return Id.Second(); + } + + /// + public string Str() + { + return Id.Str(); + } + + /// + public string FlagsStr() + { + return Id.FlagsStr(); + } + + /// + public World CsWorld() + { + return Id.CsWorld(); + } +} \ No newline at end of file diff --git a/src/Flecs.NET/Modules/Meta.cs b/src/Flecs.NET/Modules/Meta.cs index 7e7d5d42..e7993f17 100644 --- a/src/Flecs.NET/Modules/Meta.cs +++ b/src/Flecs.NET/Modules/Meta.cs @@ -16,21 +16,21 @@ public struct Meta : IEquatable, IFlecsModule /// public readonly void InitModule(World world) { - world.Component().Entity.Set(new EcsPrimitive { kind = EcsBool }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsChar }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsU8 }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsU16 }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsU32 }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsU64 }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsI8 }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsI16 }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsI32 }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsI64 }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsF32 }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsF64 }); + world.Component().Set(new EcsPrimitive { kind = EcsBool }); + world.Component().Set(new EcsPrimitive { kind = EcsChar }); + world.Component().Set(new EcsPrimitive { kind = EcsU8 }); + world.Component().Set(new EcsPrimitive { kind = EcsU16 }); + world.Component().Set(new EcsPrimitive { kind = EcsU32 }); + world.Component().Set(new EcsPrimitive { kind = EcsU64 }); + world.Component().Set(new EcsPrimitive { kind = EcsI8 }); + world.Component().Set(new EcsPrimitive { kind = EcsI16 }); + world.Component().Set(new EcsPrimitive { kind = EcsI32 }); + world.Component().Set(new EcsPrimitive { kind = EcsI64 }); + world.Component().Set(new EcsPrimitive { kind = EcsF32 }); + world.Component().Set(new EcsPrimitive { kind = EcsF64 }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsUPtr }); - world.Component().Entity.Set(new EcsPrimitive { kind = EcsIPtr }); + world.Component().Set(new EcsPrimitive { kind = EcsUPtr }); + world.Component().Set(new EcsPrimitive { kind = EcsIPtr }); // TODO: Add support for string. } @@ -86,4 +86,4 @@ public override int GetHashCode() return !(left == right); } } -} \ No newline at end of file +} From 488cc38e6bd6d3ef6d48465756919724dada9c71 Mon Sep 17 00:00:00 2001 From: BeanCheeseBurrito Date: Sun, 17 Nov 2024 23:10:32 -0800 Subject: [PATCH 2/3] Update tests to use entity and id extensions --- .../CSharp/Core/QueryBuilderTests.cs | 10 ++- src/Flecs.NET.Tests/CSharp/Core/QueryTests.cs | 16 ++-- src/Flecs.NET.Tests/Cpp/EntityTests.cs | 90 +++++++++---------- src/Flecs.NET.Tests/Cpp/ObserverTests.cs | 16 ++-- src/Flecs.NET.Tests/Cpp/PairTests.cs | 8 +- src/Flecs.NET.Tests/Cpp/QueryBuilderTests.cs | 16 ++-- src/Flecs.NET.Tests/Cpp/QueryTests.cs | 16 ++-- src/Flecs.NET.Tests/Cpp/SystemBuilderTests.cs | 2 +- src/Flecs.NET.Tests/Cpp/SystemTests.cs | 18 ++-- src/Flecs.NET.Tests/Cpp/TableTests.cs | 2 +- src/Flecs.NET.Tests/Cpp/UnionTests.cs | 8 +- src/Flecs.NET.Tests/Cpp/WorldFactoryTests.cs | 4 +- 12 files changed, 106 insertions(+), 100 deletions(-) diff --git a/src/Flecs.NET.Tests/CSharp/Core/QueryBuilderTests.cs b/src/Flecs.NET.Tests/CSharp/Core/QueryBuilderTests.cs index 28e63b69..de6c9134 100644 --- a/src/Flecs.NET.Tests/CSharp/Core/QueryBuilderTests.cs +++ b/src/Flecs.NET.Tests/CSharp/Core/QueryBuilderTests.cs @@ -92,16 +92,19 @@ private void TermAt() world.Component(); world.QueryBuilder() + .Cached() .With() .TermAt(0) .Build(); world.QueryBuilder() + .Cached() .With() .TermAt(0) .Build(); world.QueryBuilder() + .Cached() .With().Second() .TermAt(0) .Build(); @@ -109,6 +112,7 @@ private void TermAt() Assert.Throws(() => { world.QueryBuilder() + .Cached() .With().Second() .TermAt(0) .Build(); @@ -117,6 +121,7 @@ private void TermAt() Assert.Throws(() => { world.QueryBuilder() + .Cached() .With().Second() .TermAt(0) .Build(); @@ -124,14 +129,15 @@ private void TermAt() Assert.Throws(() => { - world.Component().Entity.Add(Ecs.PairIsTag); + world.Component().Add(Ecs.PairIsTag); world.QueryBuilder() + .Cached() .With() .TermAt(0) .Build(); - world.Component().Entity.Remove(Ecs.PairIsTag); + world.Component().Remove(Ecs.PairIsTag); }); } } diff --git a/src/Flecs.NET.Tests/CSharp/Core/QueryTests.cs b/src/Flecs.NET.Tests/CSharp/Core/QueryTests.cs index 2376b5ba..7ac6b603 100644 --- a/src/Flecs.NET.Tests/CSharp/Core/QueryTests.cs +++ b/src/Flecs.NET.Tests/CSharp/Core/QueryTests.cs @@ -821,7 +821,7 @@ private void EachSharedUnmanaged() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); using Query query = world.Query(); @@ -848,7 +848,7 @@ private void EachSharedManaged() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); using Query query = world.Query(); @@ -875,7 +875,7 @@ private void EachSparseUnmanaged() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); + world.Component().Add(Ecs.Sparse); using Query query = world.Query(); @@ -902,7 +902,7 @@ private void EachSparseManaged() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); + world.Component().Add(Ecs.Sparse); using Query query = world.Query(); @@ -929,8 +929,8 @@ private void EachSparseSharedUnmanaged() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.Sparse); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); using Query query = world.Query(); @@ -960,8 +960,8 @@ private void EachSparseSharedManaged() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.Sparse); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); using Query query = world.Query(); diff --git a/src/Flecs.NET.Tests/Cpp/EntityTests.cs b/src/Flecs.NET.Tests/Cpp/EntityTests.cs index 5b786bef..5132c1e2 100644 --- a/src/Flecs.NET.Tests/Cpp/EntityTests.cs +++ b/src/Flecs.NET.Tests/Cpp/EntityTests.cs @@ -787,7 +787,7 @@ private void AddRole() Entity entity = world.Entity(); - entity = entity.Id.AddFlags(ECS_PAIR); + entity = entity.AddFlags(ECS_PAIR); Assert.True((entity & ECS_PAIR) != 0); } @@ -801,11 +801,11 @@ private void RemoveRole() ulong id = entity; - entity = entity.Id.AddFlags(ECS_PAIR); + entity = entity.AddFlags(ECS_PAIR); Assert.True((entity & ECS_PAIR) != 0); - entity = entity.Id.RemoveFlags(); + entity = entity.RemoveFlags(); Assert.True(entity == id); } @@ -817,13 +817,13 @@ private void HasRole() Entity entity = world.Entity(); - entity = entity.Id.AddFlags(ECS_PAIR); + entity = entity.AddFlags(ECS_PAIR); - Assert.True(entity.Id.HasFlags(ECS_PAIR)); + Assert.True(entity.HasFlags(ECS_PAIR)); - entity = entity.Id.RemoveFlags(); + entity = entity.RemoveFlags(); - Assert.True(!entity.Id.HasFlags(ECS_PAIR)); + Assert.True(!entity.HasFlags(ECS_PAIR)); } [Fact] @@ -1171,8 +1171,8 @@ private void ForceOwned() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity prefab = world.Prefab() .Add() @@ -1193,8 +1193,8 @@ private void ForceOwned2() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity prefab = world.Prefab() .Add() @@ -1216,8 +1216,8 @@ private void ForceOwnedNested() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity prefab = world.Prefab() .Add() @@ -1243,7 +1243,7 @@ private void TagHasSizeZero() Component comp = world.Component(); - EcsComponent* ptr = comp.Entity.GetPtr(); + EcsComponent* ptr = comp.GetPtr(); Assert.Equal(0, ptr->size); Assert.Equal(0, ptr->alignment); } @@ -1307,7 +1307,7 @@ private void IsComponentEnabled() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.CanToggle); + world.Component().Add(Ecs.CanToggle); Entity e = world.Entity() .Add(); @@ -1321,7 +1321,7 @@ private void IsEnabledComponentEnabled() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.CanToggle); + world.Component().Add(Ecs.CanToggle); Entity e = world.Entity() .Add() @@ -1335,7 +1335,7 @@ private void IsDisabledComponentEnabled() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.CanToggle); + world.Component().Add(Ecs.CanToggle); Entity e = world.Entity() .Add() @@ -1349,7 +1349,7 @@ private void IsPairEnabled() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.CanToggle); + world.Component().Add(Ecs.CanToggle); Entity e = world.Entity() .Add(); @@ -1363,7 +1363,7 @@ private void IsEnabledPairEnabled() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.CanToggle); + world.Component().Add(Ecs.CanToggle); Entity e = world.Entity() .Add() @@ -1377,7 +1377,7 @@ private void IsDisabledPairEnabled() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.CanToggle); + world.Component().Add(Ecs.CanToggle); Entity e = world.Entity() .Add() @@ -1391,7 +1391,7 @@ private void IsPairEnabledWithIds() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.CanToggle); + world.Component().Add(Ecs.CanToggle); Entity rel = world.Entity(); Entity tgtA = world.Entity(); @@ -1439,7 +1439,7 @@ private void IsPairEnabledWithTargetId() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.CanToggle); + world.Component().Add(Ecs.CanToggle); Entity tgtA = world.Entity(); Entity tgtB = world.Entity(); @@ -1456,7 +1456,7 @@ private void IsEnabledPairEnabledWithTargetId() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.CanToggle); + world.Component().Add(Ecs.CanToggle); Entity tgt = world.Entity(); @@ -1472,7 +1472,7 @@ private void IsDisabledPairEnabledWithTargetId() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.CanToggle); + world.Component().Add(Ecs.CanToggle); Entity tgt = world.Entity(); @@ -1536,7 +1536,7 @@ private void Override() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity() .AutoOverride(); @@ -1575,7 +1575,7 @@ private void OverridePairWithTargetId() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity tgtA = world.Entity(); Entity tgtB = world.Entity(); @@ -1621,7 +1621,7 @@ private void OverridePair() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity() .AutoOverride() @@ -1642,7 +1642,7 @@ private void SetOverride() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity() .SetAutoOverride(new Position(10, 20)); @@ -1668,7 +1668,7 @@ private void SetOverrideLValue() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Position plvalue = new Position(10, 20); @@ -1696,7 +1696,7 @@ private void SetOverridePair() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity() .SetAutoOverride(new Position(10, 20)); @@ -1722,7 +1722,7 @@ private void SetOverridePairWithTargetId() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity tgt = world.Entity(); @@ -1750,7 +1750,7 @@ private void SetOverridePairWithRelTag() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity() .SetAutoOverride(new Position(10, 20)); @@ -2498,7 +2498,7 @@ private void WithSelf() }); Component self = world.Component(); - Assert.True(!self.Entity.Has(tag)); + Assert.True(!self.Has(tag)); int count = 0; using Query query = world.QueryBuilder() @@ -2533,7 +2533,7 @@ private void WithRelationTypeSelf() }); Component self = world.Component(); - Assert.True(!self.Entity.Has(bob)); + Assert.True(!self.Has(bob)); int count = 0; using Query q = world.QueryBuilder() @@ -2570,7 +2570,7 @@ private void WithRelationSelf() }); Component self = world.Component(); - Assert.True(!self.Entity.Has(likes, bob)); + Assert.True(!self.Has(likes, bob)); int count = 0; using Query q = world.QueryBuilder() @@ -2662,7 +2662,7 @@ private void WithScope() Assert.True(world.Lookup("P.C3") == parent.Lookup("C3")); Component self = world.Component(); - Assert.True(!self.Entity.Has(Ecs.ChildOf, parent)); + Assert.True(!self.Has(Ecs.ChildOf, parent)); int count = 0; using Query q = world.QueryBuilder() @@ -3752,7 +3752,7 @@ private void IdGetEntity() Id id = world.Id(e); - Assert.True(id.Entity() == e); + Assert.True(id.ToEntity() == e); } [Fact] @@ -4306,7 +4306,7 @@ private void AddIfExclusiveRo() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Exclusive); + world.Component().Add(Ecs.Exclusive); Entity e = world.Entity(); Entity o1 = world.Entity(); @@ -4329,7 +4329,7 @@ private void AddIfExclusiveRO() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Exclusive); + world.Component().Add(Ecs.Exclusive); Entity e = world.Entity(); @@ -4469,7 +4469,7 @@ private void GetDepthWithType() { using World world = World.Create(); - world.Component().Entity.Add(EcsTraversable); + world.Component().Add(EcsTraversable); Entity e1 = world.Entity(); Entity e2 = world.Entity().Add(e1); @@ -4595,7 +4595,7 @@ private void SetSparse() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); + world.Component().Add(Ecs.Sparse); Entity e = world.Entity().Set(new Velocity(1, 2)); @@ -4611,7 +4611,7 @@ private void Insert1Sparse() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); + world.Component().Add(Ecs.Sparse); Entity e = world.Entity().Insert((ref Velocity v) => { @@ -4632,7 +4632,7 @@ private void Insert2With1Sparse() using World world = World.Create(); world.Component(); - world.Component().Entity.Add(Ecs.Sparse); + world.Component().Add(Ecs.Sparse); Entity e = world.Entity().Insert((ref Position p, ref Velocity v) => { @@ -4659,7 +4659,7 @@ private void OverrideSparse() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); + world.Component().Add(Ecs.Sparse); Entity @base = world.Entity().Set(new Velocity(1, 2)); @@ -4678,7 +4678,7 @@ private void DeleteWithOverrideSparse() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); + world.Component().Add(Ecs.Sparse); Entity @base = world.Entity().Set(new Velocity(1, 2)); diff --git a/src/Flecs.NET.Tests/Cpp/ObserverTests.cs b/src/Flecs.NET.Tests/Cpp/ObserverTests.cs index 67dac636..8fcc1412 100644 --- a/src/Flecs.NET.Tests/Cpp/ObserverTests.cs +++ b/src/Flecs.NET.Tests/Cpp/ObserverTests.cs @@ -971,7 +971,7 @@ private void OnSetWithSetSetSparse() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); + world.Component().Add(Ecs.Sparse); int count = 0; @@ -1387,7 +1387,7 @@ private void OnAddInherited() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); int count = 0; Entity matched = default; @@ -1415,7 +1415,7 @@ private void OnSetInherited() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); int count = 0; Entity matched = default; @@ -1443,7 +1443,7 @@ private void OnRemoveInherited() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); int count = 0; Entity matched = default; @@ -1474,7 +1474,7 @@ private void OnSetAfterRemoveOverride() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Prefab() .Set(new Position(1, 2)); @@ -1505,7 +1505,7 @@ private void OnSetAfterRemoveOverrideCreateObserverBefore() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); int count = 0; @@ -1536,7 +1536,7 @@ private void OnSetWithOverrideAfterDelete() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Prefab() .Set(new Position(1, 2)); @@ -1563,7 +1563,7 @@ private void OnSetWithOverrideAfterClear() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Prefab() .Set(new Position(1, 2)); diff --git a/src/Flecs.NET.Tests/Cpp/PairTests.cs b/src/Flecs.NET.Tests/Cpp/PairTests.cs index aa723a18..8dcf75cf 100644 --- a/src/Flecs.NET.Tests/Cpp/PairTests.cs +++ b/src/Flecs.NET.Tests/Cpp/PairTests.cs @@ -232,7 +232,7 @@ private void OverridePair() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity() .Set(new Pair { Value = 10 }); @@ -1015,7 +1015,7 @@ private void GetObjectForTypeSelf() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity().Add(); Entity self = world.Entity().IsA(@base).Add(); @@ -1030,7 +1030,7 @@ private void GetObjectForTypeBase() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity().Add(); Entity self = world.Entity().IsA(@base); @@ -1101,7 +1101,7 @@ private void SymmetricWithChildOf() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Symmetric); + world.Component().Add(Ecs.Symmetric); Entity idk = world.Entity("Idk"); diff --git a/src/Flecs.NET.Tests/Cpp/QueryBuilderTests.cs b/src/Flecs.NET.Tests/Cpp/QueryBuilderTests.cs index 77c64c0b..07e0ea4a 100644 --- a/src/Flecs.NET.Tests/Cpp/QueryBuilderTests.cs +++ b/src/Flecs.NET.Tests/Cpp/QueryBuilderTests.cs @@ -1166,7 +1166,7 @@ private void IsASupersetTerm(ecs_query_cache_kind_t cacheKind) { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); using Query q = world.QueryBuilder() .With().Src().Up(Ecs.IsA).In() @@ -1210,7 +1210,7 @@ private void IsASelfSupersetTerm(ecs_query_cache_kind_t cacheKind) { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); using Query q = world.QueryBuilder() .With().Src().Self().Up(Ecs.IsA).In() @@ -1364,7 +1364,7 @@ private void IsASupersetTermWithEach(ecs_query_cache_kind_t cacheKind) { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); using Query q = world.QueryBuilder() .TermAt(1).Src().Up(Ecs.IsA) @@ -1398,7 +1398,7 @@ private void IsASelfSupersetTermWithEach(ecs_query_cache_kind_t cacheKind) { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); using Query q = world.QueryBuilder() .TermAt(1).Src().Self().Up(Ecs.IsA) @@ -1504,7 +1504,7 @@ private void IsASupersetShortcut(ecs_query_cache_kind_t cacheKind) { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); using Query q = world.QueryBuilder() .TermAt(1).Up(Ecs.IsA) @@ -1538,7 +1538,7 @@ private void IsASupersetShortcutWithSelf(ecs_query_cache_kind_t cacheKind) { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); using Query q = world.QueryBuilder() .TermAt(1).Self().Up(Ecs.IsA) @@ -3093,7 +3093,7 @@ private void UpWithType(ecs_query_cache_kind_t cacheKind) using World world = World.Create(); - world.Component().Entity.Add(Ecs.Traversable); + world.Component().Add(Ecs.Traversable); using Query q = world.QueryBuilder() .With().Src().Up().In() @@ -3138,7 +3138,7 @@ private void CascadeWithType(ecs_query_cache_kind_t cacheKind) using World world = World.Create(); - world.Component().Entity.Add(Ecs.Traversable); + world.Component().Add(Ecs.Traversable); Entity tag = world.Entity(); Entity foo = world.Entity(); diff --git a/src/Flecs.NET.Tests/Cpp/QueryTests.cs b/src/Flecs.NET.Tests/Cpp/QueryTests.cs index 18e796b2..246b4e13 100644 --- a/src/Flecs.NET.Tests/Cpp/QueryTests.cs +++ b/src/Flecs.NET.Tests/Cpp/QueryTests.cs @@ -638,8 +638,8 @@ private void RunShared() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity() .Set(new Velocity(1, 2)); @@ -762,7 +762,7 @@ private void RunSparse() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); + world.Component().Add(Ecs.Sparse); world.Component(); Entity entity = world.Entity() @@ -951,7 +951,7 @@ private void EachSparse() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Sparse); + world.Component().Add(Ecs.Sparse); world.Component(); Entity entity = world.Entity() @@ -1044,8 +1044,8 @@ private void SignatureShared() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity() .Set(new Velocity(1, 2)); @@ -1320,7 +1320,7 @@ private void ExprWithTemplate() using World world = World.Create(); Component> comp = world.Component>(); - Assert.Equal("Template", comp.Entity.Name()); + Assert.Equal("Template", comp.Name()); int count = 0; using Query q = world.QueryBuilder().Expr("Template").Build(); @@ -1350,7 +1350,7 @@ private void QueryTypeWithTemplate() using World world = World.Create(); Component> comp = world.Component>(); - Assert.Equal("Template", comp.Entity.Name()); + Assert.Equal("Template", comp.Name()); int count = 0; using Query> q = world.Query>(); diff --git a/src/Flecs.NET.Tests/Cpp/SystemBuilderTests.cs b/src/Flecs.NET.Tests/Cpp/SystemBuilderTests.cs index fe1ec7b4..d6c214d3 100644 --- a/src/Flecs.NET.Tests/Cpp/SystemBuilderTests.cs +++ b/src/Flecs.NET.Tests/Cpp/SystemBuilderTests.cs @@ -473,7 +473,7 @@ private void NameArg() } }); - Assert.True(s.Entity.Has()); + Assert.True(s.Has()); } [Fact] diff --git a/src/Flecs.NET.Tests/Cpp/SystemTests.cs b/src/Flecs.NET.Tests/Cpp/SystemTests.cs index f1f6ab23..c5ca2fb2 100644 --- a/src/Flecs.NET.Tests/Cpp/SystemTests.cs +++ b/src/Flecs.NET.Tests/Cpp/SystemTests.cs @@ -92,8 +92,8 @@ private void IterShared() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity() .Set(new Velocity(1, 2)); @@ -422,8 +422,8 @@ private void SignatureShared() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); Entity @base = world.Entity() .Set(new Velocity(1, 2)); @@ -575,7 +575,7 @@ private void NestedSystem() } }); - Assert.Equal("bar", system1.Entity.Name()); + Assert.Equal("bar", system1.Name()); Entity e = world.Lookup("foo"); Assert.True(e.Id != 0); @@ -1395,7 +1395,7 @@ private void CustomPipeline() count++; } }) - .Entity.Add(tag); + .Add(tag); world.System() .Kind(onFrame) @@ -1407,7 +1407,7 @@ private void CustomPipeline() count++; } }) - .Entity.Add(tag); + .Add(tag); world.System() .Kind(preFrame) @@ -1419,7 +1419,7 @@ private void CustomPipeline() count++; } }) - .Entity.Add(tag); + .Add(tag); Assert.Equal(0, count); @@ -2242,7 +2242,7 @@ private void IntervalTickSource() TimerEntity t = world.Timer().Interval(2.1f); - ref EcsTimer timer = ref t.Entity.Ensure(); + ref EcsTimer timer = ref t.Ensure(); timer.time = 0; int sysAInvoked = 0, sysBInvoked = 0; diff --git a/src/Flecs.NET.Tests/Cpp/TableTests.cs b/src/Flecs.NET.Tests/Cpp/TableTests.cs index c24c34d4..e3c8345c 100644 --- a/src/Flecs.NET.Tests/Cpp/TableTests.cs +++ b/src/Flecs.NET.Tests/Cpp/TableTests.cs @@ -572,7 +572,7 @@ private void GetDepthWithType() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Traversable); + world.Component().Add(Ecs.Traversable); Entity e1 = world.Entity(); Entity e2 = world.Entity().Add(e1); diff --git a/src/Flecs.NET.Tests/Cpp/UnionTests.cs b/src/Flecs.NET.Tests/Cpp/UnionTests.cs index ede68348..c2681768 100644 --- a/src/Flecs.NET.Tests/Cpp/UnionTests.cs +++ b/src/Flecs.NET.Tests/Cpp/UnionTests.cs @@ -48,7 +48,7 @@ private void AddCaseWithType() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Union); + world.Component().Add(Ecs.Union); Entity e = world.Entity().Add(); Assert.True((e.Has())); @@ -64,7 +64,7 @@ private void AddSwitchWithType() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Union); + world.Component().Add(Ecs.Union); Entity e = world.Entity().Add(); Assert.True((e.Has())); @@ -80,7 +80,7 @@ private void AddRemoveSwitchWithType() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Union); + world.Component().Add(Ecs.Union); Entity e = world.Entity().Add(); Assert.True(e.Has(Ecs.Wildcard)); @@ -109,7 +109,7 @@ private void SwitchEnumType() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Union); + world.Component().Add(Ecs.Union); Entity e = world.Entity().Add(Color.Red); Assert.True(e.Has(Color.Red)); diff --git a/src/Flecs.NET.Tests/Cpp/WorldFactoryTests.cs b/src/Flecs.NET.Tests/Cpp/WorldFactoryTests.cs index d882b97f..32ee86df 100644 --- a/src/Flecs.NET.Tests/Cpp/WorldFactoryTests.cs +++ b/src/Flecs.NET.Tests/Cpp/WorldFactoryTests.cs @@ -92,7 +92,7 @@ private void SystemWithName() }); Assert.True(system.Id != 0); - Assert.Equal("MySystem", system.Entity.Name()); + Assert.Equal("MySystem", system.Name()); Entity e = world.Entity() .Set(new Position { X = 10, Y = 20 }) @@ -131,7 +131,7 @@ private void SystemWithExpr() }); Assert.True(system.Id != 0); - Assert.Equal("MySystem", system.Entity.Name()); + Assert.Equal("MySystem", system.Name()); Entity e = world.Entity() .Set(new Position { X = 10, Y = 20 }) From a2c355f3ee0436d52707243dfbd859e43c16c2ff Mon Sep 17 00:00:00 2001 From: BeanCheeseBurrito Date: Sun, 17 Nov 2024 23:10:52 -0800 Subject: [PATCH 3/3] Update examples to use id and entity extensions --- .../Entities/IterateComponents.cs | 2 +- .../GameMechanics/InventorySystem.cs | 14 +++++++------- src/Flecs.NET.Examples/Prefabs/Basics.cs | 2 +- src/Flecs.NET.Examples/Prefabs/Override.cs | 4 ++-- src/Flecs.NET.Examples/Queries/ChangeTracking.cs | 2 +- .../Queries/ComponentInheritance.cs | 16 ++++++++-------- .../Queries/SettingVariables.cs | 12 ++++++------ .../Queries/TransitiveQueries.cs | 2 +- .../Relationships/ExclusiveRelations.cs | 2 +- .../Relationships/RelationComponent.cs | 2 +- .../Relationships/SymmetricRelations.cs | 2 +- src/Flecs.NET.Examples/Relationships/Union.cs | 4 ++-- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/Flecs.NET.Examples/Entities/IterateComponents.cs b/src/Flecs.NET.Examples/Entities/IterateComponents.cs index da729a21..5b347160 100644 --- a/src/Flecs.NET.Examples/Entities/IterateComponents.cs +++ b/src/Flecs.NET.Examples/Entities/IterateComponents.cs @@ -59,7 +59,7 @@ private static void IterateComponents(Entity e) else { // Id contains a regular entity. Strip role before printing. - Entity comp = id.Entity(); + Entity comp = id.ToEntity(); Console.Write($"Entity: {comp}"); } diff --git a/src/Flecs.NET.Examples/GameMechanics/InventorySystem.cs b/src/Flecs.NET.Examples/GameMechanics/InventorySystem.cs index 143af1bc..9f6a5a1e 100644 --- a/src/Flecs.NET.Examples/GameMechanics/InventorySystem.cs +++ b/src/Flecs.NET.Examples/GameMechanics/InventorySystem.cs @@ -38,9 +38,9 @@ public static void Main() .Add(Ecs.Exclusive); // Item can only be contained by one container // Register item kinds - ecs.Component().Entity.IsA(); - ecs.Component().Entity.IsA(); - ecs.Component().Entity.IsA(); + ecs.Component().IsA(); + ecs.Component().IsA(); + ecs.Component().IsA(); // Register item prefabs ecs.Prefab().Add() @@ -116,8 +116,8 @@ private static Entity ItemKind(Entity item) { // If id is a plain entity (component), check if component inherits // from Item - if (id.Entity().Has(Ecs.IsA, world.Id())) - result = id.Entity(); + if (id.ToEntity().Has(Ecs.IsA, world.Id())) + result = id.ToEntity(); } else if (id.IsPair()) { @@ -146,8 +146,8 @@ private static string ItemName(Entity item) { if (id.IsEntity()) { - if (id.Entity().Has(Ecs.IsA, world.Id())) - result = id.Entity().Name(); + if (id.ToEntity().Has(Ecs.IsA, world.Id())) + result = id.ToEntity().Name(); } else if (id.IsPair()) { diff --git a/src/Flecs.NET.Examples/Prefabs/Basics.cs b/src/Flecs.NET.Examples/Prefabs/Basics.cs index 45af243a..fcbd9b4b 100644 --- a/src/Flecs.NET.Examples/Prefabs/Basics.cs +++ b/src/Flecs.NET.Examples/Prefabs/Basics.cs @@ -31,7 +31,7 @@ public static void Main() // Make Defense component inheritable. By default, components are copied from // the instance to the prefab. An inherited component is only stored on the // prefab, and is shared across all instances. - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); // Create a SpaceShip prefab with a Defense component. Entity spaceShip = world.Prefab("SpaceShip") diff --git a/src/Flecs.NET.Examples/Prefabs/Override.cs b/src/Flecs.NET.Examples/Prefabs/Override.cs index 1b3353ce..1a6510b3 100644 --- a/src/Flecs.NET.Examples/Prefabs/Override.cs +++ b/src/Flecs.NET.Examples/Prefabs/Override.cs @@ -28,8 +28,8 @@ public static void Main() using World world = World.Create(); // Change the instantiation behavior for Attack and Defense to inherit. - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); // Attack and Defense are properties that can be shared across many // spaceships. This saves memory, and speeds up prefab creation as we don't diff --git a/src/Flecs.NET.Examples/Queries/ChangeTracking.cs b/src/Flecs.NET.Examples/Queries/ChangeTracking.cs index 330fd86a..3d92498b 100644 --- a/src/Flecs.NET.Examples/Queries/ChangeTracking.cs +++ b/src/Flecs.NET.Examples/Queries/ChangeTracking.cs @@ -18,7 +18,7 @@ public static void Main() using World world = World.Create(); // Make Dirty inheritable so that queries can match it on prefabs. - world.Component().Entity.Add(Ecs.OnInstantiate, Ecs.Inherit); + world.Component().Add(Ecs.OnInstantiate, Ecs.Inherit); // Create a query that just reads a component. We'll use this query for // change tracking. Change tracking for a query is automatically enabled diff --git a/src/Flecs.NET.Examples/Queries/ComponentInheritance.cs b/src/Flecs.NET.Examples/Queries/ComponentInheritance.cs index 28baa3b7..8c1af384 100644 --- a/src/Flecs.NET.Examples/Queries/ComponentInheritance.cs +++ b/src/Flecs.NET.Examples/Queries/ComponentInheritance.cs @@ -20,14 +20,14 @@ public static void Main() // Make the ECS aware of the inheritance relationships. Note that IsA // relationship used here is the same as in the prefab example. - world.Component().Entity.IsA(); - world.Component().Entity.IsA(); - world.Component().Entity.IsA(); - - world.Component().Entity.IsA(); - world.Component().Entity.IsA(); - world.Component().Entity.IsA(); - world.Component().Entity.IsA(); + world.Component().IsA(); + world.Component().IsA(); + world.Component().IsA(); + + world.Component().IsA(); + world.Component().IsA(); + world.Component().IsA(); + world.Component().IsA(); // Create a few units world.Entity("Warrior1").Add(); diff --git a/src/Flecs.NET.Examples/Queries/SettingVariables.cs b/src/Flecs.NET.Examples/Queries/SettingVariables.cs index 97ab81a2..ec55b71b 100644 --- a/src/Flecs.NET.Examples/Queries/SettingVariables.cs +++ b/src/Flecs.NET.Examples/Queries/SettingVariables.cs @@ -30,13 +30,13 @@ public static void Main() using World world = World.Create(); // See ComponentInheritance example - world.Component().Entity.IsA(); - world.Component().Entity.IsA(); - world.Component().Entity.IsA(); + world.Component().IsA(); + world.Component().IsA(); + world.Component().IsA(); - world.Component().Entity.IsA(); - world.Component().Entity.IsA(); - world.Component().Entity.IsA(); + world.Component().IsA(); + world.Component().IsA(); + world.Component().IsA(); // Populate store with players and platoons for (int p = 0; p < PlayerCount; p++) diff --git a/src/Flecs.NET.Examples/Queries/TransitiveQueries.cs b/src/Flecs.NET.Examples/Queries/TransitiveQueries.cs index b30c53a5..e7bd56e9 100644 --- a/src/Flecs.NET.Examples/Queries/TransitiveQueries.cs +++ b/src/Flecs.NET.Examples/Queries/TransitiveQueries.cs @@ -29,7 +29,7 @@ public static void Main() using World world = World.Create(); // Register the LocatedIn relationship as transitive - world.Component().Entity.Add(Ecs.Transitive); + world.Component().Add(Ecs.Transitive); // Populate the store with locations Entity earth = world.Entity("Earth") diff --git a/src/Flecs.NET.Examples/Relationships/ExclusiveRelations.cs b/src/Flecs.NET.Examples/Relationships/ExclusiveRelations.cs index 408fa361..2f6d4cd2 100644 --- a/src/Flecs.NET.Examples/Relationships/ExclusiveRelations.cs +++ b/src/Flecs.NET.Examples/Relationships/ExclusiveRelations.cs @@ -11,7 +11,7 @@ public static void Main() // Register Platoon as exclusive relationship. This ensures that an entity // can only belong to a single Platoon. - world.Component().Entity.Add(Ecs.Exclusive); + world.Component().Add(Ecs.Exclusive); // Create two platoons Entity platoon1 = world.Entity(); diff --git a/src/Flecs.NET.Examples/Relationships/RelationComponent.cs b/src/Flecs.NET.Examples/Relationships/RelationComponent.cs index 0f0ea90b..8e16b76d 100644 --- a/src/Flecs.NET.Examples/Relationships/RelationComponent.cs +++ b/src/Flecs.NET.Examples/Relationships/RelationComponent.cs @@ -40,7 +40,7 @@ public static void Main() // You can prevent a pair from assuming the type of a component by adding // the Tag property to a relationship: - world.Component().Entity.Add(Ecs.PairIsTag); + world.Component().Add(Ecs.PairIsTag); // Even though Position is a component, contains no // data because MustHave has the Tag property. diff --git a/src/Flecs.NET.Examples/Relationships/SymmetricRelations.cs b/src/Flecs.NET.Examples/Relationships/SymmetricRelations.cs index 7a289aff..bcd1f6a0 100644 --- a/src/Flecs.NET.Examples/Relationships/SymmetricRelations.cs +++ b/src/Flecs.NET.Examples/Relationships/SymmetricRelations.cs @@ -11,7 +11,7 @@ public static void Main() // Register TradesWith as symmetric relationship. Symmetric relationships // go both ways, adding (R, B) to A will also add (R, A) to B. - world.Component().Entity.Add(Ecs.Symmetric); + world.Component().Add(Ecs.Symmetric); // Create two players Entity player1 = world.Entity(); diff --git a/src/Flecs.NET.Examples/Relationships/Union.cs b/src/Flecs.NET.Examples/Relationships/Union.cs index 9b278d76..b9c8e564 100644 --- a/src/Flecs.NET.Examples/Relationships/Union.cs +++ b/src/Flecs.NET.Examples/Relationships/Union.cs @@ -36,8 +36,8 @@ public static void Main() { using World world = World.Create(); - world.Component().Entity.Add(Ecs.Union); - world.Component().Entity.Add(Ecs.Union); + world.Component().Add(Ecs.Union); + world.Component().Add(Ecs.Union); // Create a query that subscribes for all entities that have a Direction // and that are walking