Table of Contents

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

long

IsEditor

public static bool IsEditor { get; }

Property Value

bool

IsMobile

public static bool IsMobile { get; }

Property Value

bool

IsPhone

public static bool IsPhone { get; }

Property Value

bool

IsShuttingDown

public static bool IsShuttingDown { get; }

Property Value

bool

IsTablet

public static bool IsTablet { get; }

Property Value

bool

LaunchedFromEditor

public static bool LaunchedFromEditor { get; }

Property Value

bool

Methods

AddJoystickDisableReason(string)

public static void AddJoystickDisableReason(string reason)

Parameters

reason string

GetGameID()

public static extern string GetGameID()

Returns

string

GetServerID()

public static extern string GetServerID()

Returns

string

GetVoiceEnabled()

public static extern bool GetVoiceEnabled()

Returns

bool

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

string

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)

Parameters

owner Player
prefab_id string
projectile_id string
start Vector2
direction Vector2

Returns

Entity