Class PartyScreenLogic
- Namespace
- TaleWorlds.CampaignSystem.Party
- Assembly
- TaleWorlds.CampaignSystem.dll
public class PartyScreenLogic
- Inheritance
-
PartyScreenLogic
- Inherited Members
Constructors
PartyScreenLogic()
public PartyScreenLogic()
Fields
IsConsumablesChanges
public bool IsConsumablesChanges
Field Value
IsTroopTransferableDelegate
public IsTroopTransferableDelegate IsTroopTransferableDelegate
Field Value
MemberRosters
public TroopRoster[] MemberRosters
Field Value
PartyPresentationCancelButtonActivateDelegate
public PartyPresentationCancelButtonActivateDelegate PartyPresentationCancelButtonActivateDelegate
Field Value
PartyPresentationCancelButtonDelegate
public PartyPresentationCancelButtonDelegate PartyPresentationCancelButtonDelegate
Field Value
PartyPresentationDoneButtonConditionDelegate
public PartyPresentationDoneButtonConditionDelegate PartyPresentationDoneButtonConditionDelegate
Field Value
PartyPresentationDoneButtonDelegate
public PartyPresentationDoneButtonDelegate PartyPresentationDoneButtonDelegate
Field Value
PrisonerRosters
public TroopRoster[] PrisonerRosters
Field Value
UpdateDelegate
public PartyScreenLogic.PresentationUpdate UpdateDelegate
Field Value
Properties
AccompanyingTransferState
public PartyScreenLogic.TransferState AccompanyingTransferState { get; }
Property Value
ActiveMainPartySortType
public PartyScreenLogic.TroopSortType ActiveMainPartySortType { get; set; }
Property Value
ActiveOtherPartySortType
public PartyScreenLogic.TroopSortType ActiveOtherPartySortType { get; set; }
Property Value
CurrentData
public PartyScreenData CurrentData { get; }
Property Value
DoneReasonString
public string DoneReasonString { get; }
Property Value
Game
public Game Game { get; set; }
Property Value
Header
public TextObject Header { get; }
Property Value
IsMainPartySortAscending
public bool IsMainPartySortAscending { get; set; }
Property Value
IsOtherPartySortAscending
public bool IsOtherPartySortAscending { get; set; }
Property Value
IsTroopUpgradesDisabled
public bool IsTroopUpgradesDisabled { get; }
Property Value
LeftOwnerParty
public PartyBase LeftOwnerParty { get; }
Property Value
LeftPartyLeader
public CharacterObject LeftPartyLeader { get; }
Property Value
LeftPartyMembersSizeLimit
public int LeftPartyMembersSizeLimit { get; }
Property Value
LeftPartyName
public TextObject LeftPartyName { get; }
Property Value
LeftPartyPrisonersSizeLimit
public int LeftPartyPrisonersSizeLimit { get; }
Property Value
MemberTransferState
public PartyScreenLogic.TransferState MemberTransferState { get; }
Property Value
PrisonerTransferState
public PartyScreenLogic.TransferState PrisonerTransferState { get; }
Property Value
QuestModeWageDaysMultiplier
public int QuestModeWageDaysMultiplier { get; }
Property Value
RightOwnerParty
public PartyBase RightOwnerParty { get; }
Property Value
RightPartyLeader
public CharacterObject RightPartyLeader { get; }
Property Value
RightPartyMembersSizeLimit
public int RightPartyMembersSizeLimit { get; }
Property Value
RightPartyName
public TextObject RightPartyName { get; }
Property Value
RightPartyPrisonersSizeLimit
public int RightPartyPrisonersSizeLimit { get; }
Property Value
ShowProgressBar
public bool ShowProgressBar { get; }
Property Value
TransferHealthiesGetWoundedsFirst
public bool TransferHealthiesGetWoundedsFirst { get; }
Property Value
Methods
AddCommand(PartyCommand)
public void AddCommand(PartyScreenLogic.PartyCommand command)
Parameters
command
PartyScreenLogic.PartyCommand
DoneLogic(bool)
public bool DoneLogic(bool isForced)
Parameters
isForced
bool
Returns
ExecuteTroop(PartyCommand)
protected void ExecuteTroop(PartyScreenLogic.PartyCommand command)
Parameters
command
PartyScreenLogic.PartyCommand
GetActiveSortTypeForSide(PartyRosterSide)
public PartyScreenLogic.TroopSortType GetActiveSortTypeForSide(PartyScreenLogic.PartyRosterSide side)
Parameters
Returns
GetComparer(TroopSortType)
public PartyScreenLogic.TroopComparer GetComparer(PartyScreenLogic.TroopSortType sortType)
Parameters
sortType
PartyScreenLogic.TroopSortType
Returns
GetCurrentQuestCurrentCount()
public int GetCurrentQuestCurrentCount()
Returns
GetCurrentQuestRequiredCount()
public int GetCurrentQuestRequiredCount()
Returns
GetExecutableReasonText(CharacterObject, bool)
public string GetExecutableReasonText(CharacterObject character, bool isExecutable)
Parameters
character
CharacterObjectisExecutable
bool
Returns
GetIndexToInsertTroop(PartyRosterSide, TroopType, TroopRosterElement)
public int GetIndexToInsertTroop(PartyScreenLogic.PartyRosterSide side, PartyScreenLogic.TroopType type, TroopRosterElement troop)
Parameters
side
PartyScreenLogic.PartyRosterSidetype
PartyScreenLogic.TroopTypetroop
TroopRosterElement
Returns
GetIsAscendingSortForSide(PartyRosterSide)
public bool GetIsAscendingSortForSide(PartyScreenLogic.PartyRosterSide side)
Parameters
Returns
GetRecruitableReasonText(CharacterObject, bool, int, string, string)
public string GetRecruitableReasonText(CharacterObject character, bool isRecruitable, int troopCount, string fiveStackShortcutKeyText, string entireStackShortcutKeyText)
Parameters
character
CharacterObjectisRecruitable
booltroopCount
intfiveStackShortcutKeyText
stringentireStackShortcutKeyText
string
Returns
GetRoster(PartyRosterSide, TroopType)
public TroopRoster GetRoster(PartyScreenLogic.PartyRosterSide side, PartyScreenLogic.TroopType troopType)
Parameters
side
PartyScreenLogic.PartyRosterSidetroopType
PartyScreenLogic.TroopType
Returns
GetTroopRecruitableAmount(CharacterObject)
public int GetTroopRecruitableAmount(CharacterObject troop)
Parameters
troop
CharacterObject
Returns
HaveRightSideGainedTroops()
public bool HaveRightSideGainedTroops()
Returns
Initialize(PartyScreenLogicInitializationData)
public void Initialize(PartyScreenLogicInitializationData initializationData)
Parameters
initializationData
PartyScreenLogicInitializationData
IsCancelActive()
public bool IsCancelActive()
Returns
IsDoneActive()
public bool IsDoneActive()
Returns
IsExecutable(TroopType, CharacterObject, PartyRosterSide)
public bool IsExecutable(PartyScreenLogic.TroopType troopType, CharacterObject character, PartyScreenLogic.PartyRosterSide side)
Parameters
troopType
PartyScreenLogic.TroopTypecharacter
CharacterObjectside
PartyScreenLogic.PartyRosterSide
Returns
IsPrisonerRecruitable(TroopType, CharacterObject, PartyRosterSide)
public bool IsPrisonerRecruitable(PartyScreenLogic.TroopType troopType, CharacterObject character, PartyScreenLogic.PartyRosterSide side)
Parameters
troopType
PartyScreenLogic.TroopTypecharacter
CharacterObjectside
PartyScreenLogic.PartyRosterSide
Returns
IsThereAnyChanges()
public bool IsThereAnyChanges()
Returns
IsTroopRosterTransferable(TroopType)
public bool IsTroopRosterTransferable(PartyScreenLogic.TroopType troopType)
Parameters
troopType
PartyScreenLogic.TroopType
Returns
IsTroopTransferable(TroopType, CharacterObject, int)
public bool IsTroopTransferable(PartyScreenLogic.TroopType troopType, CharacterObject character, int side)
Parameters
troopType
PartyScreenLogic.TroopTypecharacter
CharacterObjectside
int
Returns
OnPartyScreenClosed(bool)
public void OnPartyScreenClosed(bool fromCancel)
Parameters
fromCancel
bool
RecruitPrisoner(PartyCommand)
protected void RecruitPrisoner(PartyScreenLogic.PartyCommand command)
Parameters
command
PartyScreenLogic.PartyCommand
RemoveZeroCounts()
public void RemoveZeroCounts()
Reset(bool)
public void Reset(bool fromCancel)
Parameters
fromCancel
bool
ResetToLastSavedPartyScreenData(bool)
public void ResetToLastSavedPartyScreenData(bool fromCancel)
Parameters
fromCancel
bool
SavePartyScreenData()
public void SavePartyScreenData()
ShiftTroop(PartyCommand)
protected void ShiftTroop(PartyScreenLogic.PartyCommand command)
Parameters
command
PartyScreenLogic.PartyCommand
SortTroops(PartyCommand)
protected void SortTroops(PartyScreenLogic.PartyCommand command)
Parameters
command
PartyScreenLogic.PartyCommand
TransferAllTroops(PartyCommand)
protected void TransferAllTroops(PartyScreenLogic.PartyCommand command)
Parameters
command
PartyScreenLogic.PartyCommand
TransferPartyLeaderTroop(PartyCommand)
protected void TransferPartyLeaderTroop(PartyScreenLogic.PartyCommand command)
Parameters
command
PartyScreenLogic.PartyCommand
TransferTroop(PartyCommand, bool)
protected void TransferTroop(PartyScreenLogic.PartyCommand command, bool invokeUpdate)
Parameters
command
PartyScreenLogic.PartyCommandinvokeUpdate
bool
TransferTroopToLeaderSlot(PartyCommand)
protected void TransferTroopToLeaderSlot(PartyScreenLogic.PartyCommand command)
Parameters
command
PartyScreenLogic.PartyCommand
UpgradeTroop(PartyCommand)
protected void UpgradeTroop(PartyScreenLogic.PartyCommand command)
Parameters
command
PartyScreenLogic.PartyCommand
ValidateCommand(PartyCommand)
public bool ValidateCommand(PartyScreenLogic.PartyCommand command)
Parameters
command
PartyScreenLogic.PartyCommand
Returns
Events
AfterReset
public event PartyScreenLogic.AfterResetDelegate AfterReset
Event Type
PartyGoldChange
public event PartyScreenLogic.PartyGoldDelegate PartyGoldChange
Event Type
PartyHorseChange
public event PartyScreenLogic.PartyHorseDelegate PartyHorseChange
Event Type
PartyInfluenceChange
public event PartyScreenLogic.PartyInfluenceDelegate PartyInfluenceChange
Event Type
PartyMoraleChange
public event PartyScreenLogic.PartyMoraleDelegate PartyMoraleChange
Event Type
PartyScreenClosedEvent
public event PartyScreenClosedDelegate PartyScreenClosedEvent
Event Type
Update
public event PartyScreenLogic.PresentationUpdate Update
Event Type
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).