Skip to content

Commit 7e611f6

Browse files
committed
Added struct methods to group builder
Bumped version number and also made only one app start in examples.
1 parent 75d6b33 commit 7e611f6

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 3.11.{build}
1+
version: 3.12.{build}
22
branches:
33
only:
44
- master

src/EcsRx.Examples/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void Main(string[] args)
4242
//new Struct3Application().StartApplication();
4343
//new Class4Application().StartApplication();
4444
//new Struct4Application().StartApplication();
45-
new Struct4BApplication().StartApplication();
45+
//new Struct4BApplication().StartApplication();
4646

4747
}
4848
}

src/EcsRx/Groups/GroupBuilder.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,18 @@ public GroupBuilder WithoutComponent<T>() where T : class, IComponent
3535
_withoutComponents.Add(typeof(T));
3636
return this;
3737
}
38-
38+
39+
public GroupBuilder WithStructComponent<T>() where T : struct, IComponent
40+
{
41+
_withComponents.Add(typeof(T));
42+
return this;
43+
}
44+
45+
public GroupBuilder WithoutStructComponent<T>() where T : struct, IComponent
46+
{
47+
_withoutComponents.Add(typeof(T));
48+
return this;
49+
}
3950

4051
public GroupBuilder WithPredicate(Predicate<IEntity> predicate)
4152
{

0 commit comments

Comments
 (0)