Class GameState
GameState is a subclass of GameStateBase that behaves like a multiplayer match-based game.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class GameState : GameStateBase
Remarks
It is tied to functionality in GameMode.
Properties
| Improve this Doc View SourceDefaultObject
Get UE4 Default Object for this Class
Declaration
public static GameState DefaultObject { get; }
Property Value
Type | Description |
---|---|
GameState |
ElapsedTime
Elapsed game time since match has started.
Declaration
public int ElapsedTime { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
MatchState
What match state we are currently in
Declaration
public Name MatchState { get; }
Property Value
Type | Description |
---|---|
Name |
PreviousMatchState
Previous map state, used to handle if multiple transitions happen per frame
Declaration
public Name PreviousMatchState { get; }
Property Value
Type | Description |
---|---|
Name |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static GameState New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
GameState |
Operators
| Improve this Doc View SourceImplicit(IntPtr to GameState)
Convert from IntPtr to UObject
Declaration
public static implicit operator GameState(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
GameState |