diff --git a/appveyor.yml b/appveyor.yml index 30a6eb4b..4e0bc75d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 3.11.{build} +version: 3.12.{build} branches: only: - master diff --git a/src/EcsRx.Examples/Program.cs b/src/EcsRx.Examples/Program.cs index aa49677e..3bbe3904 100644 --- a/src/EcsRx.Examples/Program.cs +++ b/src/EcsRx.Examples/Program.cs @@ -42,7 +42,7 @@ static void Main(string[] args) //new Struct3Application().StartApplication(); //new Class4Application().StartApplication(); //new Struct4Application().StartApplication(); - new Struct4BApplication().StartApplication(); + //new Struct4BApplication().StartApplication(); } } diff --git a/src/EcsRx/Groups/GroupBuilder.cs b/src/EcsRx/Groups/GroupBuilder.cs index f894e9cb..dcf3e86f 100644 --- a/src/EcsRx/Groups/GroupBuilder.cs +++ b/src/EcsRx/Groups/GroupBuilder.cs @@ -35,7 +35,18 @@ public GroupBuilder WithoutComponent() where T : class, IComponent _withoutComponents.Add(typeof(T)); return this; } - + + public GroupBuilder WithStructComponent() where T : struct, IComponent + { + _withComponents.Add(typeof(T)); + return this; + } + + public GroupBuilder WithoutStructComponent() where T : struct, IComponent + { + _withoutComponents.Add(typeof(T)); + return this; + } public GroupBuilder WithPredicate(Predicate predicate) {