M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Core.GameState Class Reference

Inherits TaleWorlds.ObjectSystem.MBObjectBase.

Inherited by TaleWorlds.CampaignSystem.GameState.BannerEditorState, TaleWorlds.CampaignSystem.GameState.BarberState, TaleWorlds.CampaignSystem.GameState.CharacterDeveloperState, TaleWorlds.CampaignSystem.GameState.ClanState, TaleWorlds.CampaignSystem.GameState.CraftingState, TaleWorlds.CampaignSystem.GameState.EducationState, TaleWorlds.CampaignSystem.GameState.KingdomState, TaleWorlds.CampaignSystem.GameState.MapState, TaleWorlds.CampaignSystem.GameState.QuestsState, TaleWorlds.CampaignSystem.GameState.TutorialState, TaleWorlds.Core.PlayerGameState, TaleWorlds.MountAndBlade.EditorState, TaleWorlds.MountAndBlade.GameLoadingState, TaleWorlds.MountAndBlade.InitialState, TaleWorlds.MountAndBlade.LobbyGameState, TaleWorlds.MountAndBlade.LobbyState, TaleWorlds.MountAndBlade.MissionState, TaleWorlds.MountAndBlade.ProfileSelectionState, TaleWorlds.MountAndBlade.UnspecifiedDedicatedServerState, and TaleWorlds.MountAndBlade.VideoPlaybackState.

Public Member Functions

bool RegisterListener (IGameStateListener listener)
 
bool UnregisterListener (IGameStateListener listener)
 
GetListenerOfType< T > ()
 
- Public Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
 MBObjectBase ()
 
 MBObjectBase (MBObjectBase other)
 
 MBObjectBase (string stringId)
 
void AfterInitialized ()
 
virtual void AfterRegister ()
 
virtual void Initialize ()
 
virtual void Deserialize (MBObjectManager objectManager, XmlNode node)
 
override int GetHashCode ()
 
virtual TextObject GetName ()
 
void PreAfterLoadInternal ()
 
void AfterLoadInternal ()
 
void OnRegistered ()
 
void OnUnregistered ()
 

Public Attributes

int Level
 

Static Public Attributes

static int NumberOfListenerActivations
 

Protected Member Functions

 GameState ()
 
virtual void OnInitialize ()
 
virtual void OnFinalize ()
 
virtual void OnActivate ()
 
virtual void OnDeactivate ()
 
- Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
virtual void OnBeforeLoad ()
 
virtual void PreAfterLoad ()
 
virtual void AfterLoad ()
 

Properties

GameState Predecessor [get]
 
bool IsActive [get]
 
IReadOnlyCollection< IGameStateListenerListeners [get]
 
GameStateManager GameStateManager [get]
 
virtual bool IsMusicMenuState [get]
 Whether or not if this state should be treated as a menu state for the music manager. More...
 
virtual bool IsMenuState [get]
 Whether or not if this state is a screen/menu state for GUI. More...
 
virtual bool IsMission [get]
 
bool Activated [get]
 
- Properties inherited from TaleWorlds.ObjectSystem.MBObjectBase
string StringId [get, set]
 
MBGUID Id [get, set]
 
bool IsInitialized [get]
 
bool IsReady [get, set]
 

Constructor & Destructor Documentation

◆ GameState()

TaleWorlds.Core.GameState.GameState ( )
protected

Member Function Documentation

◆ RegisterListener()

bool TaleWorlds.Core.GameState.RegisterListener ( IGameStateListener  listener)

◆ UnregisterListener()

bool TaleWorlds.Core.GameState.UnregisterListener ( IGameStateListener  listener)

◆ GetListenerOfType< T >()

T TaleWorlds.Core.GameState.GetListenerOfType< T > ( )

◆ OnInitialize()

◆ OnFinalize()

◆ OnActivate()

◆ OnDeactivate()

virtual void TaleWorlds.Core.GameState.OnDeactivate ( )
protectedvirtual

Member Data Documentation

◆ Level

int TaleWorlds.Core.GameState.Level

◆ NumberOfListenerActivations

int TaleWorlds.Core.GameState.NumberOfListenerActivations
static

Property Documentation

◆ Predecessor

GameState TaleWorlds.Core.GameState.Predecessor
get

◆ IsActive

bool TaleWorlds.Core.GameState.IsActive
get

◆ Listeners

IReadOnlyCollection<IGameStateListener> TaleWorlds.Core.GameState.Listeners
get

◆ GameStateManager

GameStateManager TaleWorlds.Core.GameState.GameStateManager
get

◆ IsMusicMenuState

virtual bool TaleWorlds.Core.GameState.IsMusicMenuState
get

◆ IsMenuState

virtual bool TaleWorlds.Core.GameState.IsMenuState
get

◆ IsMission

virtual bool TaleWorlds.Core.GameState.IsMission
get

◆ Activated

bool TaleWorlds.Core.GameState.Activated
get