Skip to content

Commit

Permalink
Added struct methods to group builder
Browse files Browse the repository at this point in the history
Bumped version number and also made only one app start in examples.
  • Loading branch information
grofit committed Dec 16, 2020
1 parent 75d6b33 commit 7e611f6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 3.11.{build}
version: 3.12.{build}
branches:
only:
- master
Expand Down
2 changes: 1 addition & 1 deletion src/EcsRx.Examples/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static void Main(string[] args)
//new Struct3Application().StartApplication();
//new Class4Application().StartApplication();
//new Struct4Application().StartApplication();
new Struct4BApplication().StartApplication();
//new Struct4BApplication().StartApplication();

}
}
Expand Down
13 changes: 12 additions & 1 deletion src/EcsRx/Groups/GroupBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,18 @@ public GroupBuilder WithoutComponent<T>() where T : class, IComponent
_withoutComponents.Add(typeof(T));
return this;
}


public GroupBuilder WithStructComponent<T>() where T : struct, IComponent
{
_withComponents.Add(typeof(T));
return this;
}

public GroupBuilder WithoutStructComponent<T>() where T : struct, IComponent
{
_withoutComponents.Add(typeof(T));
return this;
}

public GroupBuilder WithPredicate(Predicate<IEntity> predicate)
{
Expand Down

0 comments on commit 7e611f6

Please sign in to comment.