Table of Contents

Class GameManagerBase

Namespace
TaleWorlds.Core
Assembly
TaleWorlds.Core.dll
public abstract class GameManagerBase
Inheritance
GameManagerBase
Derived
Inherited Members

Constructors

GameManagerBase()

protected GameManagerBase()

Properties

ApplicationTime

public abstract float ApplicationTime { get; }

Property Value

float

CheatMode

public abstract bool CheatMode { get; }

Property Value

bool

Components

public IEnumerable<GameManagerComponent> Components { get; }

Property Value

IEnumerable<GameManagerComponent>

Current

public static GameManagerBase Current { get; }

Property Value

GameManagerBase

Game

public Game Game { get; }

Property Value

Game

IsDevelopmentMode

public abstract bool IsDevelopmentMode { get; }

Property Value

bool

IsEditModeOn

public abstract bool IsEditModeOn { get; }

Property Value

bool

UnitSpawnPrioritization

public abstract UnitSpawnPrioritizations UnitSpawnPrioritization { get; }

Property Value

UnitSpawnPrioritizations

Methods

AddComponent(Type)

public GameManagerComponent AddComponent(Type componentType)

Parameters

componentType Type

Returns

GameManagerComponent

AddComponent<T>()

public T AddComponent<T>() where T : GameManagerComponent, new()

Returns

T

Type Parameters

T

AfterRegisterSubModuleObjects(bool)

public abstract void AfterRegisterSubModuleObjects(bool isSavedCampaign)

Parameters

isSavedCampaign bool

BeginGameStart(Game)

public abstract void BeginGameStart(Game game)

Parameters

game Game

DoLoadingForGameManager()

public bool DoLoadingForGameManager()

Returns

bool

DoLoadingForGameManager(GameManagerLoadingSteps, out GameManagerLoadingSteps)

protected virtual void DoLoadingForGameManager(GameManagerLoadingSteps gameManagerLoadingStep, out GameManagerLoadingSteps nextStep)

Parameters

gameManagerLoadingStep GameManagerLoadingSteps
nextStep GameManagerLoadingSteps

GetComponent(Type)

public GameManagerComponent GetComponent(Type componentType)

Parameters

componentType Type

Returns

GameManagerComponent

GetComponent<T>()

public T GetComponent<T>() where T : GameManagerComponent

Returns

T

Type Parameters

T

GetComponents<T>()

public IEnumerable<T> GetComponents<T>() where T : GameManagerComponent

Returns

IEnumerable<T>

Type Parameters

T

Initialize()

public void Initialize()

InitializeGameStarter(Game, IGameStarter)

public virtual void InitializeGameStarter(Game game, IGameStarter starterObject)

Parameters

game Game
starterObject IGameStarter

OnAfterCampaignStart(Game)

public abstract void OnAfterCampaignStart(Game game)

Parameters

game Game

OnAfterGameInitializationFinished(Game, object)

public abstract void OnAfterGameInitializationFinished(Game game, object initializerObject)

Parameters

game Game
initializerObject object

OnGameEnd(Game)

public virtual void OnGameEnd(Game game)

Parameters

game Game

OnGameInitializationFinished(Game)

public abstract void OnGameInitializationFinished(Game game)

Parameters

game Game

OnGameLoaded(Game, object)

public abstract void OnGameLoaded(Game game, object initializerObject)

Parameters

game Game
initializerObject object

OnGameNetworkBegin()

public void OnGameNetworkBegin()

OnGameNetworkEnd()

public void OnGameNetworkEnd()

OnGameStart(Game, IGameStarter)

public abstract void OnGameStart(Game game, IGameStarter gameStarter)

Parameters

game Game
gameStarter IGameStarter

OnLoadFinished()

public virtual void OnLoadFinished()

OnNewCampaignStart(Game, object)

public abstract void OnNewCampaignStart(Game game, object starterObject)

Parameters

game Game
starterObject object

OnNewGameCreated(Game, object)

public abstract void OnNewGameCreated(Game game, object initializerObject)

Parameters

game Game
initializerObject object

OnPlayerConnect(VirtualPlayer)

public void OnPlayerConnect(VirtualPlayer peer)

Parameters

peer VirtualPlayer

OnPlayerDisconnect(VirtualPlayer)

public void OnPlayerDisconnect(VirtualPlayer peer)

Parameters

peer VirtualPlayer

OnTick(float)

public void OnTick(float dt)

Parameters

dt float

RegisterSubModuleObjects(bool)

public abstract void RegisterSubModuleObjects(bool isSavedCampaign)

Parameters

isSavedCampaign bool

RemoveComponent(GameManagerComponent)

public void RemoveComponent(GameManagerComponent component)

Parameters

component GameManagerComponent

RemoveComponent<T>()

public void RemoveComponent<T>() where T : GameManagerComponent

Type Parameters

T

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).