You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source/Managed/Framework/Framework.cs
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4046,6 +4046,19 @@ public static PlayerController GetFirstPlayerController() {
4046
4046
returnnull;
4047
4047
}
4048
4048
4049
+
/// <summary>
4050
+
/// Returns the current game mode instance which is always valid during gameplay on the server
4051
+
/// </summary>
4052
+
/// <returns>A game mode or <c>null</c> on failure</returns>
4053
+
publicstaticGameModeBaseGetGameMode(){
4054
+
IntPtrpointer=getGameMode();
4055
+
4056
+
if(pointer!=IntPtr.Zero)
4057
+
returnnew(pointer);
4058
+
4059
+
returnnull;
4060
+
}
4061
+
4049
4062
/// <summary>
4050
4063
/// Retrieves the current location of the <a href="https://docs.unrealengine.com/en-US/Engine/LevelStreaming/WorldBrowser/index.html">world origin</a> to a reference
4051
4064
/// </summary>
@@ -5442,6 +5455,30 @@ public TriggerCapsule(string name = null, Blueprint blueprint = null) {
5442
5455
}
5443
5456
}
5444
5457
5458
+
/// <summary>
5459
+
/// Defines the game being played, instantiated only on the server
0 commit comments