Skip to content

Commit

Permalink
Tests - ensure SystemBase.OnUpdateGroup() can be overriden
Browse files Browse the repository at this point in the history
  • Loading branch information
friflo committed Nov 28, 2024
1 parent 8ccbf09 commit ed26ad6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Tests/ECS/Systems/Systems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ public class TestGroup : SystemGroup {
internal int endCalled;

public TestGroup() : base("TestGroup") { }


// ensure OnUpdateGroup() can be overriden
// ReSharper disable once RedundantOverriddenMember
protected override void OnUpdateGroup() {
base.OnUpdateGroup();
}

protected override void OnUpdateGroupBegin() {
AreEqual(1, SystemRoot.Stores.Count);
AreEqual(42, Tick.deltaTime);
Expand Down

0 comments on commit ed26ad6

Please sign in to comment.