Class Game
- Namespace
- AO
- Assembly
- CoreAssembly.dll
Game is a core engine system with various utility functions.
public static class Game
- Inheritance
-
Game
- Inherited Members
Properties
FrameNumber
public static long FrameNumber { get; }
Property Value
IsEditor
public static bool IsEditor { get; }
Property Value
IsMobile
public static bool IsMobile { get; }
Property Value
IsPhone
public static bool IsPhone { get; }
Property Value
IsShuttingDown
public static bool IsShuttingDown { get; }
Property Value
IsTablet
public static bool IsTablet { get; }
Property Value
LaunchedFromEditor
public static bool LaunchedFromEditor { get; }
Property Value
Methods
AddJoystickDisableReason(string)
public static void AddJoystickDisableReason(string reason)
Parameters
reason
string
GetGameID()
public static extern string GetGameID()
Returns
GetServerID()
public static extern string GetServerID()
Returns
GetVoiceEnabled()
public static extern bool GetVoiceEnabled()
Returns
LookupPlayerName(string)
Lookup the player name by their user id. This may return '...' until that players data has been loaded.
public static extern string LookupPlayerName(string userId)
Parameters
userId
string
Returns
RemoveJoystickDisableReason(string)
public static void RemoveJoystickDisableReason(string reason)
Parameters
reason
string
SetDefaultJoystickBehaviour(JoystickBehaviour)
public static void SetDefaultJoystickBehaviour(JoystickBehaviour behaviour)
Parameters
behaviour
JoystickBehaviour
SetMatchmakingPriority(int)
public static extern void SetMatchmakingPriority(int priority)
Parameters
priority
int
SetVoiceEnabled(bool)
public static extern void SetVoiceEnabled(bool enabled)
Parameters
enabled
bool
ShowStatsForPlayer(Player)
public static void ShowStatsForPlayer(Player player)
Parameters
player
Player
SpawnProjectile(Player, string, string, Vector2, Vector2)
public static Entity SpawnProjectile(Player owner, string prefab_id, string projectile_id, Vector2 start, Vector2 direction)