M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
|
Conversation Manager class.
Classes | |
class | TaggedString |
Public Member Functions | |
int | CreateConversationSentenceIndex () |
ConversationManager () | |
Initializes a new instance of the ConversationManager class. | |
void | StartNew (int startingToken, bool setActionsInstantly) |
void | ProcessSentence (ConversationSentenceOption conversationSentenceOption) |
Process sentence and run its consequence method. | |
void | UpdateCurrentSentenceText () |
Update Current Sentence Text. | |
bool | IsConversationEnded () |
Is Conversation Ended. | |
void | ClearCurrentOptions () |
void | AddToCurrentOptions (TextObject text, String id, bool isClickable, TextObject hintText) |
void | GetPlayerSentenceOptions () |
Get Player Sentence Options. | |
int | GetStateIndex (string str) |
Get State Index. | |
void | DisableSentenceSort () |
void | EnableSentenceSort () |
void | AddDialogFlow (DialogFlow dialogFlow, object relatedObject=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) |
bool | IsAgentInConversation (IAgent agent) |
void | BeginConversation () |
void | EndConversation () |
void | DoOption (int optionIndex) |
void | DoOption (string optionID) |
void | DoConversationContinuedCallback () |
void | DoOptionContinue () |
void | ContinueConversation () |
void | SetupAndStartMissionConversation (IAgent agent, IAgent mainAgent, bool setActionsInstantly) |
void | SetupAndStartMissionConversationWithMultipleAgents (IEnumerable< IAgent > agents, IAgent mainAgent) |
void | SetupAndStartMapConversation (MobileParty party, IAgent agent, IAgent mainAgent) |
void | AddConversationAgents (IEnumerable< IAgent > agents, bool setActionsInstantly) |
bool | IsConversationAgent (IAgent agent) |
void | RemoveRelatedLines (object o) |
void | OnConversationDeactivate () |
void | OnConversationActivate () |
TextObject | FindMatchingTextOrNull (string id, CharacterObject character) |
IEnumerable< string > | GetApplicableTagNames (CharacterObject character) |
bool | IsTagApplicable (string tagId, CharacterObject character) |
void | OpenMapConversation (ConversationCharacterData playerCharacterData, ConversationCharacterData conversationPartnerData) |
void | GetPersuasionChanceValues (out float successValue, out float critSuccessValue, out float critFailValue) |
void | GetPersuasionChances (ConversationSentenceOption conversationSentenceOption, out float successChance, out float critSuccessChance, out float critFailChance, out float failChance) |
Static Public Member Functions | |
static void | StartPersuasion (float goalValue, float successValue, float failValue, float criticalSuccessValue, float criticalFailValue, float initialProgress=-1f, PersuasionDifficulty difficulty=PersuasionDifficulty.Medium) |
static void | EndPersuasion () |
static void | PersuasionCommitProgress (PersuasionOptionArgs persuasionOptionArgs) |
static void | Clear () |
static bool | GetPersuasionIsActive () |
static bool | GetPersuasionProgressSatisfied () |
static bool | GetPersuasionIsFailure () |
static float | GetPersuasionProgress () |
static float | GetPersuasionGoalValue () |
static IEnumerable< Tuple< PersuasionOptionArgs, PersuasionOptionResult > > | GetPersuasionChosenOptions () |
Public Attributes | |
int | ActiveToken |
Active Token index. | |
List< Tuple< string, CharacterObject > > | DetailedDebugLog = new List<Tuple<string, CharacterObject>>() |
Debug information text of the current sentence. | |
string | CurrentFaceAnimationRecord |
Face animation record of the current sentence. | |
int | LastSelectedButtonIndex |
string | LastSelectedDialog |
ConversationAnimationManager | ConversationAnimationManager |
bool | CurrentConversationIsFirst |
Properties | |
string | CurrentSentenceText [get] |
Text of the current sentence. | |
bool | IsConversationFlowActive [get] |
List< ConversationSentenceOption > | CurOptions [get, protected set] |
Gets or sets CurOptions. | |
IReadOnlyList< IAgent > | ConversationAgents [get] |
IAgent | OneToOneConversationAgent [get] |
IAgent | SpeakerAgent [get] |
IAgent | ListenerAgent [get] |
bool | IsConversationInProgress [get] |
Hero | OneToOneConversationHero [get] |
CharacterObject | OneToOneConversationCharacter [get] |
IEnumerable< CharacterObject > | ConversationCharacters [get] |
MobileParty | ConversationParty [get] |
bool | NeedsToActivateForMapConversation [get] |
IConversationStateHandler | Handler [get, set] |
Events | |
Action< ConversationSentence > | ConsequenceRunned |
Action< ConversationSentence > | ConditionRunned |
Action< ConversationSentence > | ClickableConditionRunned |
Action | ConversationSetup |
Action | ConversationBegin |
Action | ConversationEnd |
Action | ConversationEndOneShot |
Action | ConversationContinued |
TaleWorlds.CampaignSystem.Conversation.ConversationManager.ConversationManager | ( | ) |
int TaleWorlds.CampaignSystem.Conversation.ConversationManager.CreateConversationSentenceIndex | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.StartNew | ( | int | startingToken, |
bool | setActionsInstantly | ||
) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.ProcessSentence | ( | ConversationSentenceOption | conversationSentenceOption | ) |
conversationSentenceOption | The conversation sentence option. |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.UpdateCurrentSentenceText | ( | ) |
bool TaleWorlds.CampaignSystem.Conversation.ConversationManager.IsConversationEnded | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.ClearCurrentOptions | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.AddToCurrentOptions | ( | TextObject | text, |
String | id, | ||
bool | isClickable, | ||
TextObject | hintText | ||
) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.GetPlayerSentenceOptions | ( | ) |
int TaleWorlds.CampaignSystem.Conversation.ConversationManager.GetStateIndex | ( | string | str | ) |
str | The str. |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.DisableSentenceSort | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.EnableSentenceSort | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.AddDialogFlow | ( | DialogFlow | dialogFlow, |
object | relatedObject = null |
||
) |
ConversationSentence TaleWorlds.CampaignSystem.Conversation.ConversationManager.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 |
||
) |
bool TaleWorlds.CampaignSystem.Conversation.ConversationManager.IsAgentInConversation | ( | IAgent | agent | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.BeginConversation | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.EndConversation | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.DoOption | ( | int | optionIndex | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.DoOption | ( | string | optionID | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.DoConversationContinuedCallback | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.DoOptionContinue | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.ContinueConversation | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.SetupAndStartMissionConversation | ( | IAgent | agent, |
IAgent | mainAgent, | ||
bool | setActionsInstantly | ||
) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.SetupAndStartMissionConversationWithMultipleAgents | ( | IEnumerable< IAgent > | agents, |
IAgent | mainAgent | ||
) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.SetupAndStartMapConversation | ( | MobileParty | party, |
IAgent | agent, | ||
IAgent | mainAgent | ||
) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.AddConversationAgents | ( | IEnumerable< IAgent > | agents, |
bool | setActionsInstantly | ||
) |
bool TaleWorlds.CampaignSystem.Conversation.ConversationManager.IsConversationAgent | ( | IAgent | agent | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.RemoveRelatedLines | ( | object | o | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.OnConversationDeactivate | ( | ) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.OnConversationActivate | ( | ) |
TextObject TaleWorlds.CampaignSystem.Conversation.ConversationManager.FindMatchingTextOrNull | ( | string | id, |
CharacterObject | character | ||
) |
IEnumerable< string > TaleWorlds.CampaignSystem.Conversation.ConversationManager.GetApplicableTagNames | ( | CharacterObject | character | ) |
bool TaleWorlds.CampaignSystem.Conversation.ConversationManager.IsTagApplicable | ( | string | tagId, |
CharacterObject | character | ||
) |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.OpenMapConversation | ( | ConversationCharacterData | playerCharacterData, |
ConversationCharacterData | conversationPartnerData | ||
) |
|
static |
|
static |
|
static |
|
static |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.GetPersuasionChanceValues | ( | out float | successValue, |
out float | critSuccessValue, | ||
out float | critFailValue | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void TaleWorlds.CampaignSystem.Conversation.ConversationManager.GetPersuasionChances | ( | ConversationSentenceOption | conversationSentenceOption, |
out float | successChance, | ||
out float | critSuccessChance, | ||
out float | critFailChance, | ||
out float | failChance | ||
) |
int TaleWorlds.CampaignSystem.Conversation.ConversationManager.ActiveToken |
List<Tuple<string, CharacterObject> > TaleWorlds.CampaignSystem.Conversation.ConversationManager.DetailedDebugLog = new List<Tuple<string, CharacterObject>>() |
string TaleWorlds.CampaignSystem.Conversation.ConversationManager.CurrentFaceAnimationRecord |
int TaleWorlds.CampaignSystem.Conversation.ConversationManager.LastSelectedButtonIndex |
string TaleWorlds.CampaignSystem.Conversation.ConversationManager.LastSelectedDialog |
ConversationAnimationManager TaleWorlds.CampaignSystem.Conversation.ConversationManager.ConversationAnimationManager |
bool TaleWorlds.CampaignSystem.Conversation.ConversationManager.CurrentConversationIsFirst |
|
get |
|
get |
|
getprotected set |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
getset |
Action<ConversationSentence> TaleWorlds.CampaignSystem.Conversation.ConversationManager.ConsequenceRunned |
Action<ConversationSentence> TaleWorlds.CampaignSystem.Conversation.ConversationManager.ConditionRunned |
Action<ConversationSentence> TaleWorlds.CampaignSystem.Conversation.ConversationManager.ClickableConditionRunned |
Action TaleWorlds.CampaignSystem.Conversation.ConversationManager.ConversationSetup |
Action TaleWorlds.CampaignSystem.Conversation.ConversationManager.ConversationBegin |
Action TaleWorlds.CampaignSystem.Conversation.ConversationManager.ConversationEnd |
Action TaleWorlds.CampaignSystem.Conversation.ConversationManager.ConversationEndOneShot |
Action TaleWorlds.CampaignSystem.Conversation.ConversationManager.ConversationContinued |