Skip to content

Commit b0d7c8d

Browse files
committed
feat(managed): Add gamephase enum
1 parent 072d37d commit b0d7c8d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSGameRules.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using SwiftlyS2.Shared.Natives;
1+
using SwiftlyS2.Shared.Misc;
2+
using SwiftlyS2.Shared.Natives;
23
using SwiftlyS2.Shared.SchemaDefinitions;
34
using SwiftlyS2.Shared.Schemas;
45

@@ -19,4 +20,6 @@ public partial interface CCSGameRules
1920
/// <param name="reason">The reason for ending the round</param>
2021
/// <param name="delay">The delay before ending the round</param>
2122
public void TerminateRound( RoundEndReason reason, float delay );
23+
24+
public GamePhase GamePhaseEnum { get; set; }
2225
}

managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSGameRulesImpl.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using SwiftlyS2.Core.Natives;
2+
using SwiftlyS2.Shared.Misc;
23
using SwiftlyS2.Shared.Natives;
34
using SwiftlyS2.Shared.SchemaDefinitions;
45
using SwiftlyS2.Shared.Schemas;
@@ -17,4 +18,9 @@ public void TerminateRound( RoundEndReason reason, float delay )
1718
{
1819
GameFunctions.TerminateRound(Address, (uint)reason, delay);
1920
}
21+
22+
public GamePhase GamePhaseEnum {
23+
get => (GamePhase)GamePhase;
24+
set => GamePhase = (int)value;
25+
}
2026
}

0 commit comments

Comments
 (0)