M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.CampaignGameStarter Class Reference

Inherits TaleWorlds.Core.IGameStarter.

Public Member Functions

 CampaignGameStarter (GameMenuManager gameMenuManager, ConversationManager conversationManager, GameTextManager gameTextManager)
 
void UnregisterNonReadyObjects ()
 
void AddBehavior (CampaignBehaviorBase campaignBehavior)
 
void RemoveBehaviors< T > ()
 
bool RemoveBehavior< T > (T behavior)
 
void AddModel (GameModel model)
 
void AddGameMenu (string menuId, string menuText, OnInitDelegate initDelegate, GameOverlays.MenuOverlayType overlay=GameOverlays.MenuOverlayType.None, GameMenu.MenuFlags menuFlags=GameMenu.MenuFlags.None, object relatedObject=null)
 
void AddWaitGameMenu (string idString, string text, OnInitDelegate initDelegate, OnConditionDelegate condition, OnConsequenceDelegate consequence, OnTickDelegate tick, GameMenu.MenuAndOptionType type, GameOverlays.MenuOverlayType overlay=GameOverlays.MenuOverlayType.None, float targetWaitHours=0.0f, GameMenu.MenuFlags flags=GameMenu.MenuFlags.None, object relatedObject=null)
 
void AddGameMenuOption (string menuId, string optionId, string optionText, GameMenuOption.OnConditionDelegate condition, GameMenuOption.OnConsequenceDelegate consequence, bool isLeave=false, int index=-1, bool isRepeatable=false, object relatedObject=null)
 
GameMenu GetPresumedGameMenu (string stringId)
 
ConversationSentence AddPlayerLine (string id, string inputToken, string outputToken, string text, ConversationSentence.OnConditionDelegate conditionDelegate, ConversationSentence.OnConsequenceDelegate consequenceDelegate, int priority=ConversationSentence.DefaultPriority, ConversationSentence.OnClickableConditionDelegate clickableConditionDelegate=null, ConversationSentence.OnPersuasionOptionDelegate persuasionOptionDelegate=null)
 
ConversationSentence AddRepeatablePlayerLine (string id, string inputToken, string outputToken, string text, string continueListingRepeatedObjectsText, string continueListingOptionOutputToken, ConversationSentence.OnConditionDelegate conditionDelegate, ConversationSentence.OnConsequenceDelegate consequenceDelegate, int priority=ConversationSentence.DefaultPriority, ConversationSentence.OnClickableConditionDelegate clickableConditionDelegate=null)
 
ConversationSentence AddDialogLineWithVariation (string id, string inputToken, string outputToken, ConversationSentence.OnConditionDelegate conditionDelegate, ConversationSentence.OnConsequenceDelegate consequenceDelegate, int priority=ConversationSentence.DefaultPriority, string idleActionId="", string idleFaceAnimId="", string reactionId="", string reactionFaceAnimId="", ConversationSentence.OnClickableConditionDelegate clickableConditionDelegate=null)
 
ConversationSentence AddDialogLine (string id, string inputToken, string outputToken, string text, ConversationSentence.OnConditionDelegate conditionDelegate, ConversationSentence.OnConsequenceDelegate consequenceDelegate, int priority=ConversationSentence.DefaultPriority, ConversationSentence.OnClickableConditionDelegate clickableConditionDelegate=null)
 
ConversationSentence AddDialogLineMultiAgent (string id, string inputToken, string outputToken, TextObject text, ConversationSentence.OnConditionDelegate conditionDelegate, ConversationSentence.OnConsequenceDelegate consequenceDelegate, int agentIndex, int nextAgentIndex, int priority=ConversationSentence.DefaultPriority, ConversationSentence.OnClickableConditionDelegate clickableConditionDelegate=null)
 
void AddModel (GameModel gameModel)
 

Properties

ICollection< CampaignBehaviorBaseCampaignBehaviors [get]
 
IEnumerable< GameModelModels [get]
 
- Properties inherited from TaleWorlds.Core.IGameStarter
IEnumerable< GameModelModels [get]
 

Constructor & Destructor Documentation

◆ CampaignGameStarter()

TaleWorlds.CampaignSystem.CampaignGameStarter.CampaignGameStarter ( GameMenuManager  gameMenuManager,
ConversationManager  conversationManager,
GameTextManager  gameTextManager 
)

Member Function Documentation

◆ UnregisterNonReadyObjects()

void TaleWorlds.CampaignSystem.CampaignGameStarter.UnregisterNonReadyObjects ( )

◆ AddBehavior()

void TaleWorlds.CampaignSystem.CampaignGameStarter.AddBehavior ( CampaignBehaviorBase  campaignBehavior)

◆ RemoveBehaviors< T >()

void TaleWorlds.CampaignSystem.CampaignGameStarter.RemoveBehaviors< T > ( )
Type Constraints
T :CampaignBehaviorBase 

◆ RemoveBehavior< T >()

bool TaleWorlds.CampaignSystem.CampaignGameStarter.RemoveBehavior< T > ( behavior)
Type Constraints
T :CampaignBehaviorBase 

◆ AddModel()

void TaleWorlds.CampaignSystem.CampaignGameStarter.AddModel ( GameModel  model)

◆ AddGameMenu()

void TaleWorlds.CampaignSystem.CampaignGameStarter.AddGameMenu ( string  menuId,
string  menuText,
OnInitDelegate  initDelegate,
GameOverlays::MenuOverlayType  overlay = GameOverlays::MenuOverlayType::None,
GameMenu::MenuFlags  menuFlags = GameMenu::MenuFlags::None,
object  relatedObject = null 
)

◆ AddWaitGameMenu()

void TaleWorlds.CampaignSystem.CampaignGameStarter.AddWaitGameMenu ( string  idString,
string  text,
OnInitDelegate  initDelegate,
OnConditionDelegate  condition,
OnConsequenceDelegate  consequence,
OnTickDelegate  tick,
GameMenu::MenuAndOptionType  type,
GameOverlays::MenuOverlayType  overlay = GameOverlays::MenuOverlayType::None,
float  targetWaitHours = 0::0f,
GameMenu::MenuFlags  flags = GameMenu::MenuFlags::None,
object  relatedObject = null 
)

◆ AddGameMenuOption()

void TaleWorlds.CampaignSystem.CampaignGameStarter.AddGameMenuOption ( string  menuId,
string  optionId,
string  optionText,
GameMenuOption::OnConditionDelegate  condition,
GameMenuOption::OnConsequenceDelegate  consequence,
bool  isLeave = false,
int  index = -1,
bool  isRepeatable = false,
object  relatedObject = null 
)

◆ GetPresumedGameMenu()

GameMenu TaleWorlds.CampaignSystem.CampaignGameStarter.GetPresumedGameMenu ( string  stringId)

◆ AddPlayerLine()

ConversationSentence TaleWorlds.CampaignSystem.CampaignGameStarter.AddPlayerLine ( string  id,
string  inputToken,
string  outputToken,
string  text,
ConversationSentence::OnConditionDelegate  conditionDelegate,
ConversationSentence::OnConsequenceDelegate  consequenceDelegate,
int  priority = ConversationSentence::DefaultPriority,
ConversationSentence::OnClickableConditionDelegate  clickableConditionDelegate = null,
ConversationSentence::OnPersuasionOptionDelegate  persuasionOptionDelegate = null 
)

◆ AddRepeatablePlayerLine()

ConversationSentence TaleWorlds.CampaignSystem.CampaignGameStarter.AddRepeatablePlayerLine ( string  id,
string  inputToken,
string  outputToken,
string  text,
string  continueListingRepeatedObjectsText,
string  continueListingOptionOutputToken,
ConversationSentence::OnConditionDelegate  conditionDelegate,
ConversationSentence::OnConsequenceDelegate  consequenceDelegate,
int  priority = ConversationSentence::DefaultPriority,
ConversationSentence::OnClickableConditionDelegate  clickableConditionDelegate = null 
)

◆ AddDialogLineWithVariation()

ConversationSentence TaleWorlds.CampaignSystem.CampaignGameStarter.AddDialogLineWithVariation ( string  id,
string  inputToken,
string  outputToken,
ConversationSentence::OnConditionDelegate  conditionDelegate,
ConversationSentence::OnConsequenceDelegate  consequenceDelegate,
int  priority = ConversationSentence::DefaultPriority,
string  idleActionId = "",
string  idleFaceAnimId = "",
string  reactionId = "",
string  reactionFaceAnimId = "",
ConversationSentence::OnClickableConditionDelegate  clickableConditionDelegate = null 
)

◆ AddDialogLine()

ConversationSentence TaleWorlds.CampaignSystem.CampaignGameStarter.AddDialogLine ( string  id,
string  inputToken,
string  outputToken,
string  text,
ConversationSentence::OnConditionDelegate  conditionDelegate,
ConversationSentence::OnConsequenceDelegate  consequenceDelegate,
int  priority = ConversationSentence::DefaultPriority,
ConversationSentence::OnClickableConditionDelegate  clickableConditionDelegate = null 
)

◆ AddDialogLineMultiAgent()

ConversationSentence TaleWorlds.CampaignSystem.CampaignGameStarter.AddDialogLineMultiAgent ( string  id,
string  inputToken,
string  outputToken,
TextObject  text,
ConversationSentence::OnConditionDelegate  conditionDelegate,
ConversationSentence::OnConsequenceDelegate  consequenceDelegate,
int  agentIndex,
int  nextAgentIndex,
int  priority = ConversationSentence::DefaultPriority,
ConversationSentence::OnClickableConditionDelegate  clickableConditionDelegate = null 
)

Property Documentation

◆ CampaignBehaviors

ICollection<CampaignBehaviorBase> TaleWorlds.CampaignSystem.CampaignGameStarter.CampaignBehaviors
get

◆ Models

IEnumerable<GameModel> TaleWorlds.CampaignSystem.CampaignGameStarter.Models
get