@@ -10,6 +10,8 @@ namespace Helpers
|
|
10
10
|
{
|
11
11
|
public static class CharacterHelper
|
12
12
|
{
|
13
|
+
public static extern DynamicBodyProperties GetDynamicBodyPropertiesBetweenMinMaxRange(CharacterObject character);
|
14
|
+
|
13
15
|
public static extern TextObject GetReputationDescription(CharacterObject character);
|
14
16
|
|
15
17
|
public static extern IFaceGeneratorCustomFilter GetFaceGeneratorFilter();
|
@@ -30,7 +32,9 @@ namespace Helpers
|
|
30
32
|
|
31
33
|
public static extern int GetCharacterTier(CharacterObject character);
|
32
34
|
|
33
|
-
|
35
|
+
public static extern bool SearchForFormationInTroopTree(CharacterObject baseTroop, FormationClass formation);
|
36
|
+
|
37
|
+
[IteratorStateMachine(typeof(_003CGetTroopTree_003Ed__15))]
|
34
38
|
public static extern IEnumerable<CharacterObject> GetTroopTree(CharacterObject baseTroop, float minTier = -1f, float maxTier = float.MaxValue);
|
35
39
|
|
36
40
|
public static extern void DeleteQuestCharacter(CharacterObject character, Settlement questSettlement);
|
@@ -1,6 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using TaleWorlds.CampaignSystem;
|
4
|
+
using TaleWorlds.CampaignSystem.Party;
|
4
5
|
using TaleWorlds.CampaignSystem.Settlements;
|
5
6
|
using TaleWorlds.Localization;
|
6
7
|
|
@@ -58,6 +59,8 @@ namespace Helpers
|
|
58
59
|
|
59
60
|
public static extern TextObject GenerateClanNameforPlayer();
|
60
61
|
|
62
|
+
public static extern float GetDistanceToClosestNonAllyFortificationOfFaction(IFaction faction);
|
63
|
+
|
61
64
|
public static extern Settlement FactionMidSettlement(IFaction faction);
|
62
65
|
|
63
66
|
public static extern List<IFaction> GetPossibleKingdomsToDeclareWar(Kingdom kingdom);
|
@@ -67,5 +70,17 @@ namespace Helpers
|
|
67
70
|
public static extern IEnumerable<Clan> GetAllyMinorFactions(CharacterObject otherCharacter);
|
68
71
|
|
69
72
|
public static extern Clan ChooseHeirClanForFiefs(Clan oldClan);
|
73
|
+
|
74
|
+
public static extern bool CanPlayerOfferMercenaryService(Kingdom offerKingdom, out List<IFaction> playerWars, out List<IFaction> warsOfFactionToJoin);
|
75
|
+
|
76
|
+
public static extern bool CanPlayerOfferVassalage(Kingdom offerKingdom, out List<IFaction> playerWars, out List<IFaction> warsOfFactionToJoin);
|
77
|
+
|
78
|
+
public static extern bool IsMainClanMemberAvailableForRecall(Hero hero, MobileParty targetParty, out TextObject explanation);
|
79
|
+
|
80
|
+
public static extern bool IsMainClanMemberAvailableForPartyLeaderChange(Hero hero, bool isSend, MobileParty targetParty, out TextObject explanation);
|
81
|
+
|
82
|
+
public static extern bool IsMainClanMemberAvailableForSendingSettlement(Hero hero, Settlement targetSettlement, out TextObject explanation);
|
83
|
+
|
84
|
+
public static extern bool IsMainClanMemberAvailableForSendingSettlementAsGovernor(Hero hero, Settlement settlementOfGovernor, out TextObject explanation);
|
70
85
|
}
|
71
86
|
}
|
@@ -48,14 +48,8 @@ namespace Helpers
|
|
48
48
|
|
49
49
|
public static extern void SetPropertiesToTextObject(this Settlement settlement, TextObject textObject, string tagName);
|
50
50
|
|
51
|
-
public static extern TextObject GetStringForClanRelationship(Hero referenceHero, Hero subject, bool accusative);
|
52
|
-
|
53
|
-
public static extern TextObject SetNPCRelationshipToNPCString(Hero speakerHero, Hero subject, bool accusative);
|
54
|
-
|
55
51
|
public static extern bool HeroCanRecruitFromHero(Hero buyerHero, Hero sellerHero, int index);
|
56
52
|
|
57
|
-
public static extern int MaximumIndexHeroCanRecruitFromHero(Hero buyerHero, Hero sellerHero, int useValueAsRelation = -101);
|
58
|
-
|
59
53
|
public static extern List<CharacterObject> GetVolunteerTroopsOfHeroForRecruitment(Hero hero);
|
60
54
|
|
61
55
|
public static extern Clan GetRandomClanForNotable(Hero notable);
|
@@ -13,5 +13,7 @@ namespace Helpers
|
|
13
13
|
public static extern bool PartyCanJoinSideOf(MobileParty mobileParty, PartyBase partyToJoin, PartyBase enemyParty);
|
14
14
|
|
15
15
|
public static extern void GetStrengthsRelativeToParty(BattleSideEnum partySide, MapEvent mapEvent, out float partySideStrength, out float opposingSideStrength);
|
16
|
+
|
17
|
+
public static extern void OnConversationEnd();
|
16
18
|
}
|
17
19
|
}
|
@@ -4,8 +4,6 @@ namespace Helpers
|
|
4
4
|
{
|
5
5
|
public static class MiscHelper
|
6
6
|
{
|
7
|
-
public static extern float GetGameProcess();
|
8
|
-
|
9
7
|
public static extern XmlDocument LoadXmlFile(string path);
|
10
8
|
|
11
9
|
public static extern string GenerateCampaignId(int length);
|
@@ -37,7 +37,7 @@ namespace Helpers
|
|
37
37
|
|
38
38
|
public static extern void PartyAddSharedXp(MobileParty party, float xpToDistribute);
|
39
39
|
|
40
|
-
public static extern Vec2 FindReachablePointAroundPosition(
|
40
|
+
public static extern Vec2 FindReachablePointAroundPosition(Vec2 centerPosition, float maxDistance, float minDistance = 0f);
|
41
41
|
|
42
42
|
public static extern void TryMatchPartySpeedWithItemWeight(MobileParty party, float targetPartySpeed, ItemObject itemToUse = null);
|
43
43
|
|
@@ -10,6 +10,8 @@ namespace Helpers
|
|
10
10
|
{
|
11
11
|
public static class SettlementHelper
|
12
12
|
{
|
13
|
+
public static extern string GetRandomStuff(bool isFemale);
|
14
|
+
|
13
15
|
public static extern Settlement FindNearestSettlement(Func<Settlement, bool> condition, IMapPoint toMapPoint = null);
|
14
16
|
|
15
17
|
public static extern Settlement FindNearestHideout(Func<Settlement, bool> condition = null, IMapPoint toMapPoint = null);
|
@@ -36,15 +38,15 @@ namespace Helpers
|
|
36
38
|
|
37
39
|
public static extern Settlement GetBestSettlementToSpawnAround(Hero hero);
|
38
40
|
|
39
|
-
[IteratorStateMachine(typeof(
|
41
|
+
[IteratorStateMachine(typeof(_003CGetAllHeroesOfSettlement_003Ed__19))]
|
40
42
|
public static extern IEnumerable<Hero> GetAllHeroesOfSettlement(Settlement settlement, bool includePrisoners);
|
41
43
|
|
42
|
-
public static extern int NumberOfVolunteersCanBeRecruitedFrom(Hero hero, Settlement settlement);
|
43
|
-
|
44
44
|
public static extern int NumberOfVolunteersCanBeRecruitedForGarrison(Settlement settlement);
|
45
45
|
|
46
46
|
public static extern bool IsThereAnyVolunteerCanBeRecruitedForGarrison(Settlement settlement);
|
47
47
|
|
48
48
|
public static extern bool IsGarrisonStarving(Settlement settlement);
|
49
|
+
|
50
|
+
public static extern void SpawnNotablesIfNeeded(Settlement settlement);
|
49
51
|
}
|
50
52
|
}
|
@@ -1,3 +1,7 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Collections.Generic;
|
3
|
+
using TaleWorlds.CampaignSystem;
|
4
|
+
using TaleWorlds.CampaignSystem.Party;
|
1
5
|
using TaleWorlds.CampaignSystem.Settlements;
|
2
6
|
|
3
7
|
namespace Helpers
|
@@ -5,5 +9,15 @@ namespace Helpers
|
|
5
9
|
public static class TownHelpers
|
6
10
|
{
|
7
11
|
public static extern (int, int) GetTownFoodAndMarketStocks(Town town);
|
12
|
+
|
13
|
+
public static extern bool IsThereAnyoneToMeetInTown(Settlement settlement);
|
14
|
+
|
15
|
+
public static extern List<Hero> GetHeroesToMeetInTown(Settlement settlement);
|
16
|
+
|
17
|
+
public static extern List<Hero> GetHeroesInSettlement(Settlement settlement, Predicate<Hero> predicate = null);
|
18
|
+
|
19
|
+
public static extern bool RequestAMeetingPartyCondition(MobileParty party);
|
20
|
+
|
21
|
+
public static extern bool RequestAMeetingHeroWithoutPartyCondition(Hero hero);
|
8
22
|
}
|
9
23
|
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using TaleWorlds.CampaignSystem;
|
2
|
-
|
3
|
-
namespace MountAndBlade.CampaignBehaviors
|
4
|
-
{
|
5
|
-
public interface IHeroCreationCampaignBehavior : ICampaignBehavior
|
6
|
-
{
|
7
|
-
void DeriveSkillsFromTraits(Hero hero, CharacterObject templateCharacter = null);
|
8
|
-
}
|
9
|
-
}
|
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Map;
|
4
4
|
using TaleWorlds.CampaignSystem.Party;
|
5
|
-
using TaleWorlds.
|
5
|
+
using TaleWorlds.CampaignSystem.Settlements;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
using TaleWorlds.Localization;
|
8
8
|
using TaleWorlds.SaveSystem;
|
@@ -16,7 +16,7 @@ namespace TaleWorlds.CampaignSystem
|
|
16
16
|
Unassigned,
|
17
17
|
PreGathering,
|
18
18
|
Gathering,
|
19
|
-
|
19
|
+
WaitingForArmyMembers,
|
20
20
|
TravellingToAssignment,
|
21
21
|
Besieging,
|
22
22
|
AssaultingTown,
|
@@ -48,7 +48,10 @@ namespace TaleWorlds.CampaignSystem
|
|
48
48
|
PlayerTakenPrisoner,
|
49
49
|
CannotElectNewLeader,
|
50
50
|
LeaderCannotArrivePointOnTime,
|
51
|
-
ArmyLeaderIsDead
|
51
|
+
ArmyLeaderIsDead,
|
52
|
+
FoodProblem,
|
53
|
+
NotEnoughTroop,
|
54
|
+
NoActiveWar
|
52
55
|
}
|
53
56
|
|
54
57
|
public enum ArmyLeaderThinkReason
|
@@ -71,12 +74,10 @@ namespace TaleWorlds.CampaignSystem
|
|
71
74
|
FromUnassignedToTravelling
|
72
75
|
}
|
73
76
|
|
74
|
-
public static readonly float LeastValueForCreatingArmy;
|
75
|
-
|
76
77
|
public MBReadOnlyList<MobileParty> Parties { [CompilerGenerated]
|
77
78
|
get; }
|
78
79
|
|
79
|
-
public IEnumerable<MobileParty> LeaderPartyAndAttachedParties { [IteratorStateMachine(typeof(
|
80
|
+
public IEnumerable<MobileParty> LeaderPartyAndAttachedParties { [IteratorStateMachine(typeof(_003Cget_LeaderPartyAndAttachedParties_003Ed__19))]
|
80
81
|
get; }
|
81
82
|
|
82
83
|
public TextObject EncyclopediaLinkWithName { get; }
|
@@ -101,20 +102,12 @@ namespace TaleWorlds.CampaignSystem
|
|
101
102
|
get; [CompilerGenerated]
|
102
103
|
set; }
|
103
104
|
|
104
|
-
|
105
|
-
public DeterministicRandom Random { [CompilerGenerated]
|
106
|
-
get; }
|
107
|
-
|
108
|
-
public float CohesionChange { get; }
|
105
|
+
public float DailyCohesionChange { get; }
|
109
106
|
|
110
|
-
public ExplainedNumber
|
107
|
+
public ExplainedNumber DailyCohesionChangeExplanation { get; }
|
111
108
|
|
112
109
|
public int CohesionThresholdForDispersion { get; }
|
113
110
|
|
114
|
-
[SaveableProperty(12)]
|
115
|
-
public IMapPoint NextAiBehaviorObject { [CompilerGenerated]
|
116
|
-
get; }
|
117
|
-
|
118
111
|
[SaveableProperty(13)]
|
119
112
|
public float Morale { [CompilerGenerated]
|
120
113
|
get; }
|
@@ -143,14 +136,10 @@ namespace TaleWorlds.CampaignSystem
|
|
143
136
|
|
144
137
|
public override extern string ToString();
|
145
138
|
|
146
|
-
public extern
|
147
|
-
|
148
|
-
public extern Army(Kingdom kingdom, MobileParty leaderParty, ArmyTypes armyType, IMapPoint aiBehavior = null, Hero armyOwner = null);
|
139
|
+
public extern Army(Kingdom kingdom, MobileParty leaderParty, ArmyTypes armyType);
|
149
140
|
|
150
141
|
public extern void UpdateName();
|
151
142
|
|
152
|
-
public extern void CalculateCohesionParameters(out float baseMaintanceCost, out int partySizeAdditionalCost, out int relationToLeaderAdditionalCost, out int enemyLordsAdditionalCost, out int armyMoraleAdditionalCost);
|
153
|
-
|
154
143
|
public extern void BoostCohesionWithInfluence(float cohesionToGain, int cost);
|
155
144
|
|
156
145
|
public extern void RecalculateArmyMorale();
|
@@ -161,7 +150,7 @@ namespace TaleWorlds.CampaignSystem
|
|
161
150
|
|
162
151
|
public extern TextObject GetBehaviorText(bool setWithLink = false);
|
163
152
|
|
164
|
-
public extern void Gather();
|
153
|
+
public extern void Gather(Settlement initialHostileSettlement);
|
165
154
|
|
166
155
|
public extern void ThinkAboutConcludingArmyGathering();
|
167
156
|
|
@@ -169,10 +158,6 @@ namespace TaleWorlds.CampaignSystem
|
|
169
158
|
|
170
159
|
public extern void FinishArmyObjective();
|
171
160
|
|
172
|
-
public extern void ResetNextBehaviorObject();
|
173
|
-
|
174
|
-
public extern bool ElectNewLeader();
|
175
|
-
|
176
161
|
public extern void DisperseArmy(ArmyDispersionReason reason = ArmyDispersionReason.Unknown);
|
177
162
|
|
178
163
|
public extern Vec2 GetRelativePositionForParty(MobileParty mobileParty, Vec2 armyFacing);
|
@@ -45,8 +45,14 @@ namespace TaleWorlds.CampaignSystem
|
|
45
45
|
Editor
|
46
46
|
}
|
47
47
|
|
48
|
+
public HashSet<IPartyVisual> _fadingPartiesSet;
|
49
|
+
|
50
|
+
public List<IPartyVisual> _fadingPartiesFlatten;
|
51
|
+
|
48
52
|
public const float ConfigTimeMultiplier = 0.25f;
|
49
53
|
|
54
|
+
public ITask CampaignLateAITickTask;
|
55
|
+
|
50
56
|
[SaveableField(2)]
|
51
57
|
public readonly CampaignOptions Options;
|
52
58
|
|
@@ -79,11 +85,11 @@ namespace TaleWorlds.CampaignSystem
|
|
79
85
|
[SaveableField(30)]
|
80
86
|
public int MainHeroIllDays;
|
81
87
|
|
88
|
+
public static bool InInsideRealTickParallel;
|
89
|
+
|
82
90
|
[SaveableField(65)]
|
83
91
|
public KingdomManager KingdomManager;
|
84
92
|
|
85
|
-
public PartyUpgrader _partyUpgrader;
|
86
|
-
|
87
93
|
public static float MapDiagonal { [CompilerGenerated]
|
88
94
|
get; }
|
89
95
|
|
@@ -102,13 +108,17 @@ namespace TaleWorlds.CampaignSystem
|
|
102
108
|
public static float MapMaximumHeight { [CompilerGenerated]
|
103
109
|
get; }
|
104
110
|
|
105
|
-
public static float
|
111
|
+
public static float AverageDistanceBetweenTwoFortifications { [CompilerGenerated]
|
106
112
|
get; }
|
107
113
|
|
108
114
|
public string NewGameVersion { get; }
|
109
115
|
|
110
116
|
public IReadOnlyList<string> PreviouslyUsedModules { get; }
|
111
117
|
|
118
|
+
[SaveableProperty(82)]
|
119
|
+
public string PlatformID { [CompilerGenerated]
|
120
|
+
get; }
|
121
|
+
|
112
122
|
[SaveableProperty(80)]
|
113
123
|
public string UniqueGameId { [CompilerGenerated]
|
114
124
|
get; }
|
@@ -169,6 +179,10 @@ namespace TaleWorlds.CampaignSystem
|
|
169
179
|
get; [CompilerGenerated]
|
170
180
|
set; }
|
171
181
|
|
182
|
+
public ISkillLevelingManager SkillLevelingManager { [CompilerGenerated]
|
183
|
+
get; [CompilerGenerated]
|
184
|
+
set; }
|
185
|
+
|
172
186
|
public ICampaignMapConversation CampaignMapConversationManager { [CompilerGenerated]
|
173
187
|
get; [CompilerGenerated]
|
174
188
|
set; }
|
@@ -186,16 +200,6 @@ namespace TaleWorlds.CampaignSystem
|
|
186
200
|
get; [CompilerGenerated]
|
187
201
|
set; }
|
188
202
|
|
189
|
-
public Monster HumanMonsterSettlement { get; }
|
190
|
-
|
191
|
-
public Monster HumanChildMonster { get; }
|
192
|
-
|
193
|
-
public Monster HumanMonsterSettlementSlow { get; }
|
194
|
-
|
195
|
-
public Monster HumanMonsterSettlementFast { get; }
|
196
|
-
|
197
|
-
public Monster HumanMonsterMap { get; }
|
198
|
-
|
199
203
|
[SaveableProperty(28)]
|
200
204
|
public MapStateData MapStateData { [CompilerGenerated]
|
201
205
|
get; }
|
@@ -215,6 +219,9 @@ namespace TaleWorlds.CampaignSystem
|
|
215
219
|
public DefaultIssueEffects DefaultIssueEffects { [CompilerGenerated]
|
216
220
|
get; }
|
217
221
|
|
222
|
+
public DefaultItems DefaultItems { [CompilerGenerated]
|
223
|
+
get; }
|
224
|
+
|
218
225
|
public DefaultSiegeStrategies DefaultSiegeStrategies { [CompilerGenerated]
|
219
226
|
get; }
|
220
227
|
|
@@ -260,6 +267,10 @@ namespace TaleWorlds.CampaignSystem
|
|
260
267
|
public CampaignGameMode GameMode { [CompilerGenerated]
|
261
268
|
get; }
|
262
269
|
|
270
|
+
[SaveableProperty(38)]
|
271
|
+
public float PlayerProgress { [CompilerGenerated]
|
272
|
+
get; }
|
273
|
+
|
263
274
|
public GameMenuManager GameMenuManager { [CompilerGenerated]
|
264
275
|
get; }
|
265
276
|
|
@@ -380,8 +391,6 @@ namespace TaleWorlds.CampaignSystem
|
|
380
391
|
public ConversationManager ConversationManager { [CompilerGenerated]
|
381
392
|
get; }
|
382
393
|
|
383
|
-
public PartyUpgrader PartyUpgrader { get; }
|
384
|
-
|
385
394
|
public IReadOnlyList<Track> DetectedTracks { get; }
|
386
395
|
|
387
396
|
public bool IsDay { get; }
|
@@ -394,18 +403,24 @@ namespace TaleWorlds.CampaignSystem
|
|
394
403
|
|
395
404
|
public override bool IsPartyWindowAccessibleAtMission { get; }
|
396
405
|
|
397
|
-
public extern int CreateGameMenuIndex();
|
398
|
-
|
399
406
|
public extern Campaign(CampaignGameMode gameMode);
|
400
407
|
|
401
408
|
public extern void InitializeMainParty();
|
402
409
|
|
410
|
+
public extern void RegisterFadingVisual(IPartyVisual visual);
|
411
|
+
|
412
|
+
public extern void DeRegisterFadingVisual(IPartyVisual visual);
|
413
|
+
|
414
|
+
public extern void WaitAsyncTasks();
|
415
|
+
|
403
416
|
public extern CampaignTimeControlMode GetSimplifiedTimeControlMode();
|
404
417
|
|
405
418
|
public extern void OnGameOver();
|
406
419
|
|
407
420
|
public extern void SetTimeSpeed(int speed);
|
408
421
|
|
422
|
+
public static extern void LateAITick();
|
423
|
+
|
409
424
|
public extern TComponent GetEntityComponent<TComponent>() where TComponent : CampaignEntityComponent;
|
410
425
|
|
411
426
|
public extern TComponent AddEntityComponent<TComponent>() where TComponent : CampaignEntityComponent, new();
|
@@ -430,8 +445,6 @@ namespace TaleWorlds.CampaignSystem
|
|
430
445
|
|
431
446
|
public extern void InitializeGamePlayReferences();
|
432
447
|
|
433
|
-
public extern void SetLoadingParameters(GameLoadingType gameLoadingType, int randomSeed);
|
434
|
-
|
435
448
|
public extern void SetLoadingParameters(GameLoadingType gameLoadingType);
|
436
449
|
|
437
450
|
public extern void AddCampaignEventReceiver(CampaignEventReceiver receiver);
|
@@ -450,7 +463,7 @@ namespace TaleWorlds.CampaignSystem
|
|
450
463
|
|
451
464
|
public extern void SetTimeControlModeLock(bool isLocked);
|
452
465
|
|
453
|
-
public extern void OnPlayerCharacterChanged();
|
466
|
+
public extern void OnPlayerCharacterChanged(out bool isMainPartyChanged);
|
454
467
|
|
455
468
|
public extern void SetPlayerFormationPreference(CharacterObject character, FormationClass formation);
|
456
469
|
|
@@ -51,12 +51,18 @@ namespace TaleWorlds.CampaignSystem
|
|
51
51
|
[CommandLineFunctionality.CommandLineArgumentFunction("set_hero_crafting_stamina", "campaign")]
|
52
52
|
public static extern string SetCraftingStamina(List<string> strings);
|
53
53
|
|
54
|
+
[CommandLineFunctionality.CommandLineArgumentFunction("set_hero_culture", "campaign")]
|
55
|
+
public static extern string SetHeroCulture(List<string> strings);
|
56
|
+
|
54
57
|
[CommandLineFunctionality.CommandLineArgumentFunction("get_lords_inside_settlement", "campaign")]
|
55
58
|
public static extern string GetLordsInsideSettlement(List<string> strings);
|
56
59
|
|
57
60
|
[CommandLineFunctionality.CommandLineArgumentFunction("find_alley_owners_with_more_than_one_alley", "campaign")]
|
58
61
|
public static extern string FindAlleyOwnersWithMoreThanOne(List<string> strings);
|
59
62
|
|
63
|
+
[CommandLineFunctionality.CommandLineArgumentFunction("change_hero_race", "campaign")]
|
64
|
+
public static extern string ChangeHeroRace(List<string> strings);
|
65
|
+
|
60
66
|
[CommandLineFunctionality.CommandLineArgumentFunction("make_hero_wounded", "campaign")]
|
61
67
|
public static extern string MakeHeroWounded(List<string> strings);
|
62
68
|
|
@@ -69,6 +75,9 @@ namespace TaleWorlds.CampaignSystem
|
|
69
75
|
[CommandLineFunctionality.CommandLineArgumentFunction("set_parties_visible", "campaign")]
|
70
76
|
public static extern string SetAllPartiesVisible(List<string> strings);
|
71
77
|
|
78
|
+
[CommandLineFunctionality.CommandLineArgumentFunction("set_settlements_visible", "campaign")]
|
79
|
+
public static extern string SetAllSettlementsVisible(List<string> strings);
|
80
|
+
|
72
81
|
[CommandLineFunctionality.CommandLineArgumentFunction("set_skill_main_hero", "campaign")]
|
73
82
|
public static extern string SetSkillMainHero(List<string> strings);
|
74
83
|
|
@@ -90,6 +99,9 @@ namespace TaleWorlds.CampaignSystem
|
|
90
99
|
[CommandLineFunctionality.CommandLineArgumentFunction("find_settlement", "campaign")]
|
91
100
|
public static extern string FindSettlement(List<string> strings);
|
92
101
|
|
102
|
+
[CommandLineFunctionality.CommandLineArgumentFunction("find_tournament", "campaign")]
|
103
|
+
public static extern string FindTournament(List<string> strings);
|
104
|
+
|
93
105
|
[CommandLineFunctionality.CommandLineArgumentFunction("set_loyalty_of_settlement", "campaign")]
|
94
106
|
public static extern string SetLoyaltyOfSettlement(List<string> strings);
|
95
107
|
|
@@ -177,6 +189,9 @@ namespace TaleWorlds.CampaignSystem
|
|
177
189
|
[CommandLineFunctionality.CommandLineArgumentFunction("show_prisoners", "campaign")]
|
178
190
|
public static extern string ShowPrisoners(List<string> strings);
|
179
191
|
|
192
|
+
[CommandLineFunctionality.CommandLineArgumentFunction("add_companions", "campaign")]
|
193
|
+
public static extern string AddCompanions(List<string> strings);
|
194
|
+
|
180
195
|
[CommandLineFunctionality.CommandLineArgumentFunction("add_companion", "campaign")]
|
181
196
|
public static extern string AddCompanion(List<string> strings);
|
182
197
|
|
@@ -255,8 +270,8 @@ namespace TaleWorlds.CampaignSystem
|
|
255
270
|
[CommandLineFunctionality.CommandLineArgumentFunction("get_criminal_ratings", "campaign")]
|
256
271
|
public static extern string GetCriminalRatings(List<string> strings);
|
257
272
|
|
258
|
-
[CommandLineFunctionality.CommandLineArgumentFunction("
|
259
|
-
public static extern string
|
273
|
+
[CommandLineFunctionality.CommandLineArgumentFunction("set_main_hero_age", "campaign")]
|
274
|
+
public static extern string SetMainHeroAge(List<string> strings);
|
260
275
|
|
261
276
|
[CommandLineFunctionality.CommandLineArgumentFunction("get_infested_hideout", "campaign")]
|
262
277
|
public static extern string GetInfestedHideout(List<string> strings);
|
@@ -317,12 +332,6 @@ namespace TaleWorlds.CampaignSystem
|
|
317
332
|
[CommandLineFunctionality.CommandLineArgumentFunction("conceive_child", "campaign")]
|
318
333
|
public static extern string MakePregnant(List<string> strings);
|
319
334
|
|
320
|
-
[CommandLineFunctionality.CommandLineArgumentFunction("make_peace_with_every_faction", "campaign")]
|
321
|
-
public static extern string MakePeaceWithEveryFaction(List<string> strings);
|
322
|
-
|
323
|
-
[CommandLineFunctionality.CommandLineArgumentFunction("change_clan_leader", "campaign")]
|
324
|
-
public static extern string ChangeClanLeaderCheat(List<string> strings);
|
325
|
-
|
326
335
|
[CommandLineFunctionality.CommandLineArgumentFunction("print_workshop_info", "campaign")]
|
327
336
|
public static extern string PrintWorkshopInfo(List<string> strings);
|
328
337
|
|
@@ -380,11 +389,16 @@ namespace TaleWorlds.CampaignSystem
|
|
380
389
|
[CommandLineFunctionality.CommandLineArgumentFunction("print_specific_issues", "campaign")]
|
381
390
|
public static extern string PrintSpecificIssues(List<string> strings);
|
382
391
|
|
392
|
+
[CommandLineFunctionality.CommandLineArgumentFunction("remove_militas_from_settlement", "campaign")]
|
393
|
+
public static extern string RemoveMilitiasFromSettlement(List<string> strings);
|
394
|
+
|
383
395
|
[CommandLineFunctionality.CommandLineArgumentFunction("cancel_quest", "campaign")]
|
384
396
|
public static extern string CancelQuestCheat(List<string> strings);
|
385
397
|
|
386
398
|
public static extern Hero GetHero(string heroName);
|
387
399
|
|
400
|
+
public static extern Clan GetClan(string clanName);
|
401
|
+
|
388
402
|
public static extern Hero GetClanLeader(string clanName);
|
389
403
|
|
390
404
|
public static extern Kingdom GetKingdom(string kingdomName);
|
@@ -1,24 +0,0 @@
|
|
1
|
-
using System.Collections.Generic;
|
2
|
-
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.SaveSystem;
|
4
|
-
|
5
|
-
namespace TaleWorlds.CampaignSystem
|
6
|
-
{
|
7
|
-
public class CampaignCookieBase
|
8
|
-
{
|
9
|
-
[SaveableField(0)]
|
10
|
-
public readonly CampaignObjectBase OwnerObject;
|
11
|
-
|
12
|
-
[SaveableProperty(1)]
|
13
|
-
public CampaignTime ExpirationTime { [CompilerGenerated]
|
14
|
-
get; }
|
15
|
-
|
16
|
-
protected extern CampaignCookieBase();
|
17
|
-
|
18
|
-
public extern CampaignCookieBase(CampaignObjectBase ownerObject);
|
19
|
-
|
20
|
-
public extern CampaignCookieBase(CampaignObjectBase ownerObject, CampaignTime duration);
|
21
|
-
|
22
|
-
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
23
|
-
}
|
24
|
-
}
|
@@ -33,7 +33,7 @@ namespace TaleWorlds.CampaignSystem
|
|
33
33
|
|
34
34
|
public override extern void OnCharacterCreationIsOver();
|
35
35
|
|
36
|
-
public override extern void OnHeroGainedSkill(Hero hero, SkillObject skill,
|
36
|
+
public override extern void OnHeroGainedSkill(Hero hero, SkillObject skill, int change = 1, bool shouldNotify = true);
|
37
37
|
|
38
38
|
public override extern void OnHeroWounded(Hero woundedHero);
|
39
39
|
|
@@ -115,7 +115,7 @@ namespace TaleWorlds.CampaignSystem
|
|
115
115
|
|
116
116
|
public override extern void OnRebelliousClanDisbandedAtSettlement(Settlement settlement, Clan rebelliousClan);
|
117
117
|
|
118
|
-
public override extern void OnItemsLooted(ItemRoster items);
|
118
|
+
public override extern void OnItemsLooted(MobileParty mobileParty, ItemRoster items);
|
119
119
|
|
120
120
|
public override extern void OnMobilePartyDestroyed(MobileParty mobileParty, PartyBase destroyerParty);
|
121
121
|
|
@@ -145,6 +145,8 @@ namespace TaleWorlds.CampaignSystem
|
|
145
145
|
|
146
146
|
public override extern void OnRenownGained(Hero hero, int gainedRenown, bool doNotNotify);
|
147
147
|
|
148
|
+
public override extern void OnCrimeRatingChanged(IFaction kingdom, float deltaCrimeAmount);
|
149
|
+
|
148
150
|
public override extern void OnNewCompanionAdded(Hero newCompanion);
|
149
151
|
|
150
152
|
public override extern void OnAfterMissionStarted(IMission iMission);
|
@@ -183,8 +185,16 @@ namespace TaleWorlds.CampaignSystem
|
|
183
185
|
|
184
186
|
public override extern void OnPeaceOfferCancelled(IFaction opponentFaction);
|
185
187
|
|
188
|
+
public override extern void OnMarriageOfferedToPlayer(Hero suitor, Hero maiden);
|
189
|
+
|
190
|
+
public override extern void OnMarriageOfferCanceled(Hero suitor, Hero maiden);
|
191
|
+
|
192
|
+
public override extern void OnVassalOrMercenaryServiceOfferedToPlayer(Kingdom offeredKingdom);
|
193
|
+
|
186
194
|
public override extern void OnCommonAreaStateChanged(CommonArea commonArea, CommonArea.AreaState oldState, CommonArea.AreaState newState);
|
187
195
|
|
196
|
+
public override extern void OnVassalOrMercenaryServiceOfferCanceled(Kingdom offeredKingdom);
|
197
|
+
|
188
198
|
public override extern void BeforeMissionOpened();
|
189
199
|
|
190
200
|
public override extern void OnPartyRemoved(PartyBase party);
|
@@ -279,8 +289,6 @@ namespace TaleWorlds.CampaignSystem
|
|
279
289
|
|
280
290
|
public override extern void OnCompanionRemoved(Hero companion, RemoveCompanionAction.RemoveCompanionDetail detail);
|
281
291
|
|
282
|
-
public override extern void ObjectRegisteredToVisualTracker();
|
283
|
-
|
284
292
|
public override extern void TrackDetected(Track track);
|
285
293
|
|
286
294
|
public override extern void TrackLost(Track track);
|
@@ -305,7 +313,7 @@ namespace TaleWorlds.CampaignSystem
|
|
305
313
|
|
306
314
|
public override extern void OnBeforePlayerCharacterChanged(Hero oldPlayer, Hero newPlayer);
|
307
315
|
|
308
|
-
public override extern void OnPlayerCharacterChanged(Hero oldPlayer, Hero newPlayer, MobileParty newPlayerParty);
|
316
|
+
public override extern void OnPlayerCharacterChanged(Hero oldPlayer, Hero newPlayer, MobileParty newPlayerParty, bool isMainPartyChanged);
|
309
317
|
|
310
318
|
public override extern void OnClanLeaderChanged(Hero oldLeader, Hero newLeader);
|
311
319
|
|
@@ -375,7 +383,7 @@ namespace TaleWorlds.CampaignSystem
|
|
375
383
|
|
376
384
|
public override extern void OnIssueOwnerChanged(IssueBase issue, Hero oldOwner);
|
377
385
|
|
378
|
-
public override extern void OnBeforeMainCharacterDied();
|
386
|
+
public override extern void OnBeforeMainCharacterDied(Hero victim, Hero killer, KillCharacterAction.KillCharacterActionDetail detail, bool showNotification = true);
|
379
387
|
|
380
388
|
public override extern void OnGameOver();
|
381
389
|
|
@@ -399,7 +407,7 @@ namespace TaleWorlds.CampaignSystem
|
|
399
407
|
|
400
408
|
public override extern void OnMainPartyPrisonerRecruited(FlattenedTroopRoster roster);
|
401
409
|
|
402
|
-
public override extern void
|
410
|
+
public override extern void OnPrisonerDonatedToSettlement(MobileParty donatingParty, FlattenedTroopRoster donatedPrisoners, Settlement donatedSettlement);
|
403
411
|
|
404
412
|
public override extern void OnEquipmentSmeltedByHero(Hero hero, EquipmentElement equipmentElement);
|
405
413
|
|
@@ -421,7 +429,11 @@ namespace TaleWorlds.CampaignSystem
|
|
421
429
|
|
422
430
|
public override extern void CraftingPartUnlocked(CraftingPiece craftingPiece);
|
423
431
|
|
424
|
-
public override extern void CollectLoots(MapEvent mapEvent, PartyBase winner, ItemRoster loot, ItemRoster rosterToReceiveLoots, ICollection<TroopRosterElement> lootedCasualties, float lootAmount);
|
432
|
+
public override extern void CollectLoots(MapEvent mapEvent, PartyBase winner, Dictionary<PartyBase, ItemRoster> loot, ItemRoster rosterToReceiveLoots, ICollection<TroopRosterElement> lootedCasualties, float lootAmount);
|
433
|
+
|
434
|
+
public override extern void OnHeroTeleportationRequested(Hero hero, Settlement targetSettlement, MobileParty targetParty, TeleportHeroAction.TeleportationDetail detail);
|
435
|
+
|
436
|
+
public override extern void OnPartyLeaderChangeOfferCanceled(MobileParty party);
|
425
437
|
|
426
438
|
public override extern void CanHeroLeadParty(Hero hero, ref bool result);
|
427
439
|
|
@@ -29,7 +29,7 @@ namespace TaleWorlds.CampaignSystem
|
|
29
29
|
|
30
30
|
public virtual extern void OnHeroLevelledUp(Hero hero, bool shouldNotify = true);
|
31
31
|
|
32
|
-
public virtual extern void OnHeroGainedSkill(Hero hero, SkillObject skill,
|
32
|
+
public virtual extern void OnHeroGainedSkill(Hero hero, SkillObject skill, int change = 1, bool shouldNotify = true);
|
33
33
|
|
34
34
|
public virtual extern void OnHeroCreated(Hero hero, bool isBornNaturally = false);
|
35
35
|
|
@@ -115,7 +115,7 @@ namespace TaleWorlds.CampaignSystem
|
|
115
115
|
|
116
116
|
public virtual extern void OnRebelliousClanDisbandedAtSettlement(Settlement settlement, Clan clan);
|
117
117
|
|
118
|
-
public virtual extern void OnItemsLooted(ItemRoster items);
|
118
|
+
public virtual extern void OnItemsLooted(MobileParty mobileParty, ItemRoster items);
|
119
119
|
|
120
120
|
public virtual extern void OnMobilePartyDestroyed(MobileParty mobileParty, PartyBase destroyerParty);
|
121
121
|
|
@@ -145,6 +145,8 @@ namespace TaleWorlds.CampaignSystem
|
|
145
145
|
|
146
146
|
public virtual extern void OnRenownGained(Hero hero, int gainedRenown, bool doNotNotify);
|
147
147
|
|
148
|
+
public virtual extern void OnCrimeRatingChanged(IFaction kingdom, float deltaCrimeAmount);
|
149
|
+
|
148
150
|
public virtual extern void OnNewCompanionAdded(Hero newCompanion);
|
149
151
|
|
150
152
|
public virtual extern void OnAfterMissionStarted(IMission iMission);
|
@@ -175,6 +177,14 @@ namespace TaleWorlds.CampaignSystem
|
|
175
177
|
|
176
178
|
public virtual extern void OnPeaceOfferCancelled(IFaction opponentFaction);
|
177
179
|
|
180
|
+
public virtual extern void OnMarriageOfferedToPlayer(Hero suitor, Hero maiden);
|
181
|
+
|
182
|
+
public virtual extern void OnMarriageOfferCanceled(Hero suitor, Hero maiden);
|
183
|
+
|
184
|
+
public virtual extern void OnVassalOrMercenaryServiceOfferedToPlayer(Kingdom offeredKingdom);
|
185
|
+
|
186
|
+
public virtual extern void OnVassalOrMercenaryServiceOfferCanceled(Kingdom offeredKingdom);
|
187
|
+
|
178
188
|
public virtual extern void OnPlayerBoardGameOver(Hero opposingHero, BoardGameHelper.BoardGameState state);
|
179
189
|
|
180
190
|
public virtual extern void OnCommonAreaStateChanged(CommonArea commonArea, CommonArea.AreaState oldState, CommonArea.AreaState newState);
|
@@ -283,8 +293,6 @@ namespace TaleWorlds.CampaignSystem
|
|
283
293
|
|
284
294
|
public virtual extern void OnCompanionRemoved(Hero companion, RemoveCompanionAction.RemoveCompanionDetail detail);
|
285
295
|
|
286
|
-
public virtual extern void ObjectRegisteredToVisualTracker();
|
287
|
-
|
288
296
|
public virtual extern void TrackDetected(Track track);
|
289
297
|
|
290
298
|
public virtual extern void TrackLost(Track track);
|
@@ -309,7 +317,7 @@ namespace TaleWorlds.CampaignSystem
|
|
309
317
|
|
310
318
|
public virtual extern void OnBeforePlayerCharacterChanged(Hero oldPlayer, Hero newPlayer);
|
311
319
|
|
312
|
-
public virtual extern void OnPlayerCharacterChanged(Hero oldPlayer, Hero newPlayer, MobileParty newMainParty);
|
320
|
+
public virtual extern void OnPlayerCharacterChanged(Hero oldPlayer, Hero newPlayer, MobileParty newMainParty, bool isMainPartyChanged);
|
313
321
|
|
314
322
|
public virtual extern void OnClanLeaderChanged(Hero oldLeader, Hero newLeader);
|
315
323
|
|
@@ -383,7 +391,7 @@ namespace TaleWorlds.CampaignSystem
|
|
383
391
|
|
384
392
|
public virtual extern void ForceVolunteersCompleted(BattleSideEnum winnerSide, MapEvent mapEvent);
|
385
393
|
|
386
|
-
public virtual extern void OnBeforeMainCharacterDied();
|
394
|
+
public virtual extern void OnBeforeMainCharacterDied(Hero victim, Hero killer, KillCharacterAction.KillCharacterActionDetail detail, bool showNotification = true);
|
387
395
|
|
388
396
|
public virtual extern void OnGameOver();
|
389
397
|
|
@@ -411,7 +419,7 @@ namespace TaleWorlds.CampaignSystem
|
|
411
419
|
|
412
420
|
public virtual extern void OnMainPartyPrisonerRecruited(FlattenedTroopRoster roster);
|
413
421
|
|
414
|
-
public virtual extern void
|
422
|
+
public virtual extern void OnPrisonerDonatedToSettlement(MobileParty donatingParty, FlattenedTroopRoster donatedPrisoners, Settlement donatedSettlement);
|
415
423
|
|
416
424
|
public virtual extern void CanMoveToSettlement(Hero hero, ref bool result);
|
417
425
|
|
@@ -429,7 +437,11 @@ namespace TaleWorlds.CampaignSystem
|
|
429
437
|
|
430
438
|
public virtual extern void CanHeroMarry(Hero hero, ref bool result);
|
431
439
|
|
432
|
-
public virtual extern void
|
440
|
+
public virtual extern void OnHeroTeleportationRequested(Hero hero, Settlement targetSettlement, MobileParty targetParty, TeleportHeroAction.TeleportationDetail detail);
|
441
|
+
|
442
|
+
public virtual extern void OnPartyLeaderChangeOfferCanceled(MobileParty party);
|
443
|
+
|
444
|
+
public virtual extern void CollectLoots(MapEvent mapEvent, PartyBase party, Dictionary<PartyBase, ItemRoster> loot, ItemRoster rosterToReceiveLoot, ICollection<TroopRosterElement> lootedCasualties, float lootAmount);
|
433
445
|
|
434
446
|
public virtual extern void CanHeroLeadParty(Hero hero, ref bool result);
|
435
447
|
|
@@ -31,7 +31,7 @@ namespace TaleWorlds.CampaignSystem
|
|
31
31
|
|
32
32
|
public static IMbEvent<Hero, bool> HeroLevelledUp { get; }
|
33
33
|
|
34
|
-
public static IMbEvent<Hero, SkillObject,
|
34
|
+
public static IMbEvent<Hero, SkillObject, int, bool> HeroGainedSkill { get; }
|
35
35
|
|
36
36
|
public static IMbEvent OnCharacterCreationIsOverEvent { get; }
|
37
37
|
|
@@ -113,7 +113,7 @@ namespace TaleWorlds.CampaignSystem
|
|
113
113
|
|
114
114
|
public static IMbEvent<Settlement, Clan> RebelliousClanDisbandedAtSettlement { get; }
|
115
115
|
|
116
|
-
public static IMbEvent<ItemRoster> ItemsLooted { get; }
|
116
|
+
public static IMbEvent<MobileParty, ItemRoster> ItemsLooted { get; }
|
117
117
|
|
118
118
|
public static IMbEvent<MobileParty, PartyBase> MobilePartyDestroyed { get; }
|
119
119
|
|
@@ -133,7 +133,7 @@ namespace TaleWorlds.CampaignSystem
|
|
133
133
|
|
134
134
|
public static IMbEvent<Hero, Hero> CharacterDefeated { get; }
|
135
135
|
|
136
|
-
public static IMbEvent<Kingdom, Clan>
|
136
|
+
public static IMbEvent<Kingdom, Clan> RulingClanChanged { get; }
|
137
137
|
|
138
138
|
public static IMbEvent<PartyBase, Hero> HeroPrisonerTaken { get; }
|
139
139
|
|
@@ -145,6 +145,8 @@ namespace TaleWorlds.CampaignSystem
|
|
145
145
|
|
146
146
|
public static IMbEvent<Hero, int, bool> RenownGained { get; }
|
147
147
|
|
148
|
+
public static IMbEvent<IFaction, float> CrimeRatingChanged { get; }
|
149
|
+
|
148
150
|
public static IMbEvent<Hero> NewCompanionAdded { get; }
|
149
151
|
|
150
152
|
public static IMbEvent<IMission> AfterMissionStarted { get; }
|
@@ -187,6 +189,14 @@ namespace TaleWorlds.CampaignSystem
|
|
187
189
|
|
188
190
|
public static IMbEvent<IFaction> OnPeaceOfferCancelledEvent { get; }
|
189
191
|
|
192
|
+
public static IMbEvent<Hero, Hero> OnMarriageOfferedToPlayerEvent { get; }
|
193
|
+
|
194
|
+
public static IMbEvent<Hero, Hero> OnMarriageOfferCanceledEvent { get; }
|
195
|
+
|
196
|
+
public static IMbEvent<Kingdom> OnVassalOrMercenaryServiceOfferedToPlayerEvent { get; }
|
197
|
+
|
198
|
+
public static IMbEvent<Kingdom> OnVassalOrMercenaryServiceOfferCanceledEvent { get; }
|
199
|
+
|
190
200
|
public static IMbEvent<IMission> OnMissionStartedEvent { get; }
|
191
201
|
|
192
202
|
public static IMbEvent<CommonArea, CommonArea.AreaState, CommonArea.AreaState> OnCommonAreaStateChangedEvent { get; }
|
@@ -257,7 +267,7 @@ namespace TaleWorlds.CampaignSystem
|
|
257
267
|
|
258
268
|
public static IMbEvent<MobileParty> OnPartyArrivedArmyEvent { get; }
|
259
269
|
|
260
|
-
public static IMbEvent<MobileParty>
|
270
|
+
public static IMbEvent<MobileParty> PartyRemovedFromArmyEvent { get; }
|
261
271
|
|
262
272
|
public static IMbEvent<Hero, Army.ArmyLeaderThinkReason> OnArmyLeaderThinkEvent { get; }
|
263
273
|
|
@@ -285,8 +295,6 @@ namespace TaleWorlds.CampaignSystem
|
|
285
295
|
|
286
296
|
public static IMbEvent<PartyBase> PartyVisibilityChangedEvent { get; }
|
287
297
|
|
288
|
-
public static IMbEvent ObjectRegisteredToVisualTrackerEvent { get; }
|
289
|
-
|
290
298
|
public static IMbEvent<Track> TrackDetectedEvent { get; }
|
291
299
|
|
292
300
|
public static IMbEvent<Track> TrackLostEvent { get; }
|
@@ -311,7 +319,7 @@ namespace TaleWorlds.CampaignSystem
|
|
311
319
|
|
312
320
|
public static IMbEvent<Hero, Hero> OnBeforePlayerCharacterChangedEvent { get; }
|
313
321
|
|
314
|
-
public static IMbEvent<Hero, Hero, MobileParty> OnPlayerCharacterChangedEvent { get; }
|
322
|
+
public static IMbEvent<Hero, Hero, MobileParty, bool> OnPlayerCharacterChangedEvent { get; }
|
315
323
|
|
316
324
|
public static IMbEvent<Hero, Hero> OnClanLeaderChangedEvent { get; }
|
317
325
|
|
@@ -375,7 +383,7 @@ namespace TaleWorlds.CampaignSystem
|
|
375
383
|
|
376
384
|
public static IMbEvent<MobileParty> OnPartyConsumedFoodEvent { get; }
|
377
385
|
|
378
|
-
public static IMbEvent OnBeforeMainCharacterDiedEvent { get; }
|
386
|
+
public static IMbEvent<Hero, Hero, KillCharacterAction.KillCharacterActionDetail, bool> OnBeforeMainCharacterDiedEvent { get; }
|
379
387
|
|
380
388
|
public static IMbEvent<IssueBase> OnNewIssueCreatedEvent { get; }
|
381
389
|
|
@@ -415,7 +423,7 @@ namespace TaleWorlds.CampaignSystem
|
|
415
423
|
|
416
424
|
public static IMbEvent<FlattenedTroopRoster> OnMainPartyPrisonerRecruitedEvent { get; }
|
417
425
|
|
418
|
-
public static IMbEvent<
|
426
|
+
public static IMbEvent<MobileParty, FlattenedTroopRoster, Settlement> OnPrisonerDonatedToSettlementEvent { get; }
|
419
427
|
|
420
428
|
public static IMbEvent<Hero, EquipmentElement> OnEquipmentSmeltedByHeroEvent { get; }
|
421
429
|
|
@@ -425,7 +433,11 @@ namespace TaleWorlds.CampaignSystem
|
|
425
433
|
|
426
434
|
public static IMbEvent<Hero, HeroGetsBusyReasons> OnHeroGetsBusyEvent { get; }
|
427
435
|
|
428
|
-
public static IMbEvent<MapEvent, PartyBase,
|
436
|
+
public static IMbEvent<MapEvent, PartyBase, Dictionary<PartyBase, ItemRoster>, ItemRoster, ICollection<TroopRosterElement>, float> CollectLootsEvent { get; }
|
437
|
+
|
438
|
+
public static IMbEvent<Hero, Settlement, MobileParty, TeleportHeroAction.TeleportationDetail> OnHeroTeleportationRequestedEvent { get; }
|
439
|
+
|
440
|
+
public static IMbEvent<MobileParty> OnPartyLeaderChangeOfferCanceledEvent { get; }
|
429
441
|
|
430
442
|
public static ReferenceIMBEvent<Hero, bool> CanHeroLeadPartyEvent { get; }
|
431
443
|
|
@@ -451,7 +463,7 @@ namespace TaleWorlds.CampaignSystem
|
|
451
463
|
|
452
464
|
public override extern void OnHeroLevelledUp(Hero hero, bool shouldNotify = true);
|
453
465
|
|
454
|
-
public override extern void OnHeroGainedSkill(Hero hero, SkillObject skill,
|
466
|
+
public override extern void OnHeroGainedSkill(Hero hero, SkillObject skill, int change = 1, bool shouldNotify = true);
|
455
467
|
|
456
468
|
public override extern void OnCharacterCreationIsOver();
|
457
469
|
|
@@ -533,7 +545,7 @@ namespace TaleWorlds.CampaignSystem
|
|
533
545
|
|
534
546
|
public override extern void OnRebelliousClanDisbandedAtSettlement(Settlement settlement, Clan clan);
|
535
547
|
|
536
|
-
public override extern void OnItemsLooted(ItemRoster items);
|
548
|
+
public override extern void OnItemsLooted(MobileParty mobileParty, ItemRoster items);
|
537
549
|
|
538
550
|
public override extern void OnMobilePartyDestroyed(MobileParty mobileParty, PartyBase destroyerParty);
|
539
551
|
|
@@ -565,6 +577,8 @@ namespace TaleWorlds.CampaignSystem
|
|
565
577
|
|
566
578
|
public override extern void OnRenownGained(Hero hero, int gainedRenown, bool doNotNotify);
|
567
579
|
|
580
|
+
public override extern void OnCrimeRatingChanged(IFaction kingdom, float deltaCrimeAmount);
|
581
|
+
|
568
582
|
public override extern void OnNewCompanionAdded(Hero newCompanion);
|
569
583
|
|
570
584
|
public override extern void OnAfterMissionStarted(IMission iMission);
|
@@ -607,6 +621,14 @@ namespace TaleWorlds.CampaignSystem
|
|
607
621
|
|
608
622
|
public override extern void OnPeaceOfferCancelled(IFaction opponentFaction);
|
609
623
|
|
624
|
+
public override extern void OnMarriageOfferedToPlayer(Hero suitor, Hero maiden);
|
625
|
+
|
626
|
+
public override extern void OnMarriageOfferCanceled(Hero suitor, Hero maiden);
|
627
|
+
|
628
|
+
public override extern void OnVassalOrMercenaryServiceOfferedToPlayer(Kingdom offeredKingdom);
|
629
|
+
|
630
|
+
public override extern void OnVassalOrMercenaryServiceOfferCanceled(Kingdom offeredKingdom);
|
631
|
+
|
610
632
|
public override extern void OnMissionStarted(IMission mission);
|
611
633
|
|
612
634
|
public override extern void OnCommonAreaStateChanged(CommonArea commonArea, CommonArea.AreaState oldState, CommonArea.AreaState newState);
|
@@ -701,8 +723,6 @@ namespace TaleWorlds.CampaignSystem
|
|
701
723
|
|
702
724
|
public override extern void OnPartyVisibilityChanged(PartyBase party);
|
703
725
|
|
704
|
-
public override extern void ObjectRegisteredToVisualTracker();
|
705
|
-
|
706
726
|
public override extern void TrackDetected(Track track);
|
707
727
|
|
708
728
|
public override extern void TrackLost(Track track);
|
@@ -727,7 +747,7 @@ namespace TaleWorlds.CampaignSystem
|
|
727
747
|
|
728
748
|
public override extern void OnBeforePlayerCharacterChanged(Hero oldPlayer, Hero newPlayer);
|
729
749
|
|
730
|
-
public override extern void OnPlayerCharacterChanged(Hero oldPlayer, Hero newPlayer, MobileParty newMainParty);
|
750
|
+
public override extern void OnPlayerCharacterChanged(Hero oldPlayer, Hero newPlayer, MobileParty newMainParty, bool isMainPartyChanged);
|
731
751
|
|
732
752
|
public override extern void OnClanLeaderChanged(Hero oldLeader, Hero newLeader);
|
733
753
|
|
@@ -791,7 +811,7 @@ namespace TaleWorlds.CampaignSystem
|
|
791
811
|
|
792
812
|
public override extern void OnPartyConsumedFood(MobileParty party);
|
793
813
|
|
794
|
-
public override extern void OnBeforeMainCharacterDied();
|
814
|
+
public override extern void OnBeforeMainCharacterDied(Hero victim, Hero killer, KillCharacterAction.KillCharacterActionDetail detail, bool showNotification = true);
|
795
815
|
|
796
816
|
public override extern void OnNewIssueCreated(IssueBase issue);
|
797
817
|
|
@@ -831,7 +851,7 @@ namespace TaleWorlds.CampaignSystem
|
|
831
851
|
|
832
852
|
public override extern void OnMainPartyPrisonerRecruited(FlattenedTroopRoster roster);
|
833
853
|
|
834
|
-
public override extern void
|
854
|
+
public override extern void OnPrisonerDonatedToSettlement(MobileParty donatingParty, FlattenedTroopRoster donatedPrisoners, Settlement donatedSettlement);
|
835
855
|
|
836
856
|
public override extern void OnEquipmentSmeltedByHero(Hero hero, EquipmentElement smeltedEquipmentElement);
|
837
857
|
|
@@ -841,7 +861,11 @@ namespace TaleWorlds.CampaignSystem
|
|
841
861
|
|
842
862
|
public override extern void OnHeroGetsBusy(Hero hero, HeroGetsBusyReasons heroGetsBusyReason);
|
843
863
|
|
844
|
-
public override extern void CollectLoots(MapEvent mapEvent, PartyBase party, ItemRoster loot, ItemRoster rosterToReceiveLoot, ICollection<TroopRosterElement> lootedCasualties, float lootAmount);
|
864
|
+
public override extern void CollectLoots(MapEvent mapEvent, PartyBase party, Dictionary<PartyBase, ItemRoster> loot, ItemRoster rosterToReceiveLoot, ICollection<TroopRosterElement> lootedCasualties, float lootAmount);
|
865
|
+
|
866
|
+
public override extern void OnHeroTeleportationRequested(Hero hero, Settlement targetSettlement, MobileParty targetParty, TeleportHeroAction.TeleportationDetail detail);
|
867
|
+
|
868
|
+
public override extern void OnPartyLeaderChangeOfferCanceled(MobileParty party);
|
845
869
|
|
846
870
|
public override extern void CanHeroLeadParty(Hero hero, ref bool result);
|
847
871
|
|
@@ -26,16 +26,14 @@ namespace TaleWorlds.CampaignSystem
|
|
26
26
|
|
27
27
|
public extern void AddModel(GameModel model);
|
28
28
|
|
29
|
-
public extern void LoadGameTexts(string xmlPath);
|
30
|
-
|
31
|
-
public extern void LoadGameMenus(Type typeOfGameMenusCallbacks, string xmlPath);
|
32
|
-
|
33
29
|
public extern void AddGameMenu(string menuId, string menuText, OnInitDelegate initDelegate, GameOverlays.MenuOverlayType overlay = GameOverlays.MenuOverlayType.None, GameMenu.MenuFlags menuFlags = GameMenu.MenuFlags.None, object relatedObject = null);
|
34
30
|
|
35
31
|
public extern 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 = 0f, GameMenu.MenuFlags flags = GameMenu.MenuFlags.None, object relatedObject = null);
|
36
32
|
|
37
33
|
public extern void AddGameMenuOption(string menuId, string optionId, string optionText, GameMenuOption.OnConditionDelegate condition, GameMenuOption.OnConsequenceDelegate consequence, bool isLeave = false, int index = -1, bool isRepeatable = false);
|
38
34
|
|
35
|
+
public extern GameMenu GetPresumedGameMenu(string stringId);
|
36
|
+
|
39
37
|
public extern void LoadConversations(Type typeOfConversationCallbacks, string xmlPath);
|
40
38
|
|
41
39
|
public extern ConversationSentence AddPlayerLine(string id, string inputToken, string outputToken, string text, ConversationSentence.OnConditionDelegate conditionDelegate, ConversationSentence.OnConsequenceDelegate consequenceDelegate, int priority = 100, ConversationSentence.OnClickableConditionDelegate clickableConditionDelegate = null, ConversationSentence.OnPersuasionOptionDelegate persuasionOptionDelegate = null);
|
@@ -54,8 +54,6 @@ namespace TaleWorlds.CampaignSystem
|
|
54
54
|
|
55
55
|
public static extern IMission OpenConversatonTestMission(string scene);
|
56
56
|
|
57
|
-
public static extern IMission OpenSneakIntoTownFightMission(string scene, Location location, int townUpgradeLevel);
|
58
|
-
|
59
57
|
public static extern IMission OpenSneakMission(string scene);
|
60
58
|
}
|
61
59
|
}
|
@@ -5,14 +5,6 @@ namespace TaleWorlds.CampaignSystem
|
|
5
5
|
{
|
6
6
|
public class CampaignObjectBase : MBObjectBase
|
7
7
|
{
|
8
|
-
public extern void AddCookie<T>() where T : CampaignCookieBase, new();
|
9
|
-
|
10
|
-
public extern void AddCookie<T>(CampaignTime duration) where T : CampaignCookieBase, new();
|
11
|
-
|
12
|
-
public extern T GetCookie<T>() where T : CampaignCookieBase;
|
13
|
-
|
14
|
-
public extern void CheckCookieExpiration();
|
15
|
-
|
16
8
|
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
17
9
|
|
18
10
|
public extern CampaignObjectBase();
|
@@ -31,6 +31,8 @@ namespace TaleWorlds.CampaignSystem
|
|
31
31
|
|
32
32
|
public static Difficulty ClanMemberDeathChance { get; set; }
|
33
33
|
|
34
|
+
public static Difficulty BattleDeath { get; set; }
|
35
|
+
|
34
36
|
public static bool IsSiegeTestBuild { get; set; }
|
35
37
|
|
36
38
|
public extern CampaignOptions();
|
@@ -13,8 +13,6 @@ namespace TaleWorlds.CampaignSystem
|
|
13
13
|
{
|
14
14
|
public sealed class CharacterObject : BasicCharacterObject, ICharacterData
|
15
15
|
{
|
16
|
-
public const int MaxCharacterTier = 6;
|
17
|
-
|
18
16
|
public override TextObject Name { get; }
|
19
17
|
|
20
18
|
public string EncyclopediaLink { get; }
|
@@ -116,7 +114,7 @@ namespace TaleWorlds.CampaignSystem
|
|
116
114
|
|
117
115
|
public extern CharacterObject();
|
118
116
|
|
119
|
-
public static extern CharacterObject CreateFrom(CharacterObject character
|
117
|
+
public static extern CharacterObject CreateFrom(CharacterObject character);
|
120
118
|
|
121
119
|
public override extern void AfterRegister();
|
122
120
|
|
@@ -124,7 +122,7 @@ namespace TaleWorlds.CampaignSystem
|
|
124
122
|
|
125
123
|
public override extern BodyProperties GetBodyPropertiesMax();
|
126
124
|
|
127
|
-
public override extern void UpdatePlayerCharacterBodyProperties(BodyProperties properties, bool isFemale);
|
125
|
+
public override extern void UpdatePlayerCharacterBodyProperties(BodyProperties properties, int race, bool isFemale);
|
128
126
|
|
129
127
|
public extern Occupation GetDefaultOccupation();
|
130
128
|
|
@@ -156,6 +154,8 @@ namespace TaleWorlds.CampaignSystem
|
|
156
154
|
|
157
155
|
public extern float GetHorseArmorSum(bool civilianEquipment = false);
|
158
156
|
|
157
|
+
public extern float GetTotalArmorSum(bool civilianEquipment = false);
|
158
|
+
|
159
159
|
public override extern BodyProperties GetBodyProperties(Equipment equipment, int seed = -1);
|
160
160
|
|
161
161
|
public extern void SetTransferableInPartyScreen(bool isTransferable);
|
@@ -24,8 +24,7 @@ namespace TaleWorlds.CampaignSystem
|
|
24
24
|
|
25
25
|
[SaveableProperty(52)]
|
26
26
|
public TextObject InformalName { [CompilerGenerated]
|
27
|
-
get;
|
28
|
-
set; }
|
27
|
+
get; }
|
29
28
|
|
30
29
|
public TextObject FullName { get; }
|
31
30
|
|
@@ -50,6 +49,11 @@ namespace TaleWorlds.CampaignSystem
|
|
50
49
|
public TextObject EncyclopediaText { [CompilerGenerated]
|
51
50
|
get; }
|
52
51
|
|
52
|
+
[SaveableProperty(140)]
|
53
|
+
public bool IsNoble { [CompilerGenerated]
|
54
|
+
get; [CompilerGenerated]
|
55
|
+
set; }
|
56
|
+
|
53
57
|
public bool IsEliminated { get; }
|
54
58
|
|
55
59
|
public IList<CharacterObject> MinorFactionCharacterTemplates { get; }
|
@@ -69,7 +73,7 @@ namespace TaleWorlds.CampaignSystem
|
|
69
73
|
|
70
74
|
public Kingdom Kingdom { get; set; }
|
71
75
|
|
72
|
-
public IEnumerable<CharacterObject> DungeonPrisonersOfClan { [IteratorStateMachine(typeof(
|
76
|
+
public IEnumerable<CharacterObject> DungeonPrisonersOfClan { [IteratorStateMachine(typeof(_003Cget_DungeonPrisonersOfClan_003Ed__121))]
|
73
77
|
get; }
|
74
78
|
|
75
79
|
public IReadOnlyList<Hero> SupporterNotables { get; }
|
@@ -207,6 +211,8 @@ namespace TaleWorlds.CampaignSystem
|
|
207
211
|
|
208
212
|
public int CompanionLimit { get; }
|
209
213
|
|
214
|
+
public float DistanceToClosestNonAllyFortification { get; }
|
215
|
+
|
210
216
|
public int CommanderLimit { get; }
|
211
217
|
|
212
218
|
public Settlement FactionMidSettlement { get; }
|
@@ -217,10 +223,10 @@ namespace TaleWorlds.CampaignSystem
|
|
217
223
|
|
218
224
|
public static MBReadOnlyList<Clan> All { get; }
|
219
225
|
|
220
|
-
public static IEnumerable<Clan> NonBanditFactions { [IteratorStateMachine(typeof(
|
226
|
+
public static IEnumerable<Clan> NonBanditFactions { [IteratorStateMachine(typeof(_003Cget_NonBanditFactions_003Ed__325))]
|
221
227
|
get; }
|
222
228
|
|
223
|
-
public static IEnumerable<Clan> BanditFactions { [IteratorStateMachine(typeof(
|
229
|
+
public static IEnumerable<Clan> BanditFactions { [IteratorStateMachine(typeof(_003Cget_BanditFactions_003Ed__328))]
|
224
230
|
get; }
|
225
231
|
|
226
232
|
public IFaction MapFaction { get; }
|
@@ -234,7 +240,9 @@ namespace TaleWorlds.CampaignSystem
|
|
234
240
|
|
235
241
|
public int TributeWallet { get; set; }
|
236
242
|
|
237
|
-
public extern void ChangeClanName(TextObject name);
|
243
|
+
public extern void ChangeClanName(TextObject name, TextObject informalName);
|
244
|
+
|
245
|
+
public extern void ValidateSettlementsAndVillagesCache();
|
238
246
|
|
239
247
|
public static extern Clan CreateClan(string stringID);
|
240
248
|
|
@@ -252,11 +260,7 @@ namespace TaleWorlds.CampaignSystem
|
|
252
260
|
|
253
261
|
public extern bool IsAtWarWith(IFaction other);
|
254
262
|
|
255
|
-
public extern float
|
256
|
-
|
257
|
-
public extern void StartMercenaryService();
|
258
|
-
|
259
|
-
public extern void EndMercenaryService(bool isByLeavingKingdom);
|
263
|
+
public extern float CalculateTotalSettlementBaseValue();
|
260
264
|
|
261
265
|
public override extern void Deserialize(MBObjectManager objectManager, XmlNode node);
|
262
266
|
|
@@ -266,10 +270,18 @@ namespace TaleWorlds.CampaignSystem
|
|
266
270
|
|
267
271
|
public extern void UpdateHomeSettlement(Settlement updatedSettlement);
|
268
272
|
|
273
|
+
public extern void StartMercenaryService();
|
274
|
+
|
269
275
|
public static extern Clan FindFirst(Predicate<Clan> predicate);
|
270
276
|
|
277
|
+
public extern void EndMercenaryService(bool isByLeavingKingdom);
|
278
|
+
|
271
279
|
public static extern IEnumerable<Clan> FindAll(Predicate<Clan> predicate);
|
272
280
|
|
281
|
+
public extern float CalculateTotalSettlementValueForFaction(Kingdom kingdom);
|
282
|
+
|
283
|
+
public extern void CollectSettlementsAndVillagesToCache();
|
284
|
+
|
273
285
|
public extern void AddRenown(float value, bool shouldNotify = true);
|
274
286
|
|
275
287
|
public extern void ResetClanRenown();
|
@@ -204,6 +204,12 @@ namespace TaleWorlds.CampaignSystem
|
|
204
204
|
public CharacterObject GearDummy { [CompilerGenerated]
|
205
205
|
get; }
|
206
206
|
|
207
|
+
public MBEquipmentRoster DefaultBattleEquipmentRoster { [CompilerGenerated]
|
208
|
+
get; }
|
209
|
+
|
210
|
+
public MBEquipmentRoster DefaultCivilianEquipmentRoster { [CompilerGenerated]
|
211
|
+
get; }
|
212
|
+
|
207
213
|
public CharacterObject BanditChief { [CompilerGenerated]
|
208
214
|
get; }
|
209
215
|
|
@@ -264,9 +270,6 @@ namespace TaleWorlds.CampaignSystem
|
|
264
270
|
public IReadOnlyList<int> PossibleClanBannerIconsIDs { [CompilerGenerated]
|
265
271
|
get; }
|
266
272
|
|
267
|
-
public IReadOnlyList<CharacterObject> ChildCharacterTemplates { [CompilerGenerated]
|
268
|
-
get; }
|
269
|
-
|
270
273
|
public IReadOnlyList<CharacterObject> NotableAndWandererTemplates { [CompilerGenerated]
|
271
274
|
get; }
|
272
275
|
|
@@ -0,0 +1,37 @@
|
|
1
|
+
using TaleWorlds.Core;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem
|
4
|
+
{
|
5
|
+
public class DefaultItems
|
6
|
+
{
|
7
|
+
public static ItemObject Grain { get; }
|
8
|
+
|
9
|
+
public static ItemObject Meat { get; }
|
10
|
+
|
11
|
+
public static ItemObject Hides { get; }
|
12
|
+
|
13
|
+
public static ItemObject Tools { get; }
|
14
|
+
|
15
|
+
public static ItemObject IronOre { get; }
|
16
|
+
|
17
|
+
public static ItemObject HardWood { get; }
|
18
|
+
|
19
|
+
public static ItemObject Charcoal { get; }
|
20
|
+
|
21
|
+
public static ItemObject IronIngot1 { get; }
|
22
|
+
|
23
|
+
public static ItemObject IronIngot2 { get; }
|
24
|
+
|
25
|
+
public static ItemObject IronIngot3 { get; }
|
26
|
+
|
27
|
+
public static ItemObject IronIngot4 { get; }
|
28
|
+
|
29
|
+
public static ItemObject IronIngot5 { get; }
|
30
|
+
|
31
|
+
public static ItemObject IronIngot6 { get; }
|
32
|
+
|
33
|
+
public static ItemObject Trash { get; }
|
34
|
+
|
35
|
+
public extern DefaultItems();
|
36
|
+
}
|
37
|
+
}
|
@@ -40,10 +40,16 @@ namespace TaleWorlds.CampaignSystem
|
|
40
40
|
|
41
41
|
public static SkillEffect HorseWeaponSpeedPenalty { get; }
|
42
42
|
|
43
|
+
public static SkillEffect DismountResistance { get; }
|
44
|
+
|
43
45
|
public static SkillEffect AthleticsSpeedFactor { get; }
|
44
46
|
|
45
47
|
public static SkillEffect AthleticsWeightFactor { get; }
|
46
48
|
|
49
|
+
public static SkillEffect KnockBackResistance { get; }
|
50
|
+
|
51
|
+
public static SkillEffect KnockDownResistance { get; }
|
52
|
+
|
47
53
|
public static SkillEffect SmithingLevel { get; }
|
48
54
|
|
49
55
|
public static SkillEffect TacticsAdvantage { get; }
|
@@ -1,15 +0,0 @@
|
|
1
|
-
using System.Collections.Generic;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem
|
4
|
-
{
|
5
|
-
public class DoNotAttackMainPartyCookie : CampaignCookieBase
|
6
|
-
{
|
7
|
-
public extern DoNotAttackMainPartyCookie();
|
8
|
-
|
9
|
-
public extern DoNotAttackMainPartyCookie(CampaignObjectBase ownerObject);
|
10
|
-
|
11
|
-
public extern DoNotAttackMainPartyCookie(CampaignObjectBase ownerObject, CampaignTime expirationTime);
|
12
|
-
|
13
|
-
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
14
|
-
}
|
15
|
-
}
|
@@ -23,15 +23,10 @@ namespace TaleWorlds.CampaignSystem
|
|
23
23
|
|
24
24
|
public static extern bool IsNeutralWithFaction(IFaction faction1, IFaction faction2);
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
[IteratorStateMachine(typeof(_003CGetStanceLinksOf_003Ed__22))]
|
29
|
-
public static extern IEnumerable<StanceLink> GetStanceLinksOf(IFaction faction);
|
30
|
-
|
31
|
-
[IteratorStateMachine(typeof(_003CGetEnemyFactions_003Ed__23))]
|
26
|
+
[IteratorStateMachine(typeof(_003CGetEnemyFactions_003Ed__21))]
|
32
27
|
public static extern IEnumerable<IFaction> GetEnemyFactions(IFaction faction);
|
33
28
|
|
34
|
-
[IteratorStateMachine(typeof(
|
29
|
+
[IteratorStateMachine(typeof(_003CGetEnemyKingdoms_003Ed__22))]
|
35
30
|
public static extern IEnumerable<Kingdom> GetEnemyKingdoms(Kingdom faction);
|
36
31
|
|
37
32
|
public static extern int GetRelationBetweenClans(Clan clan1, Clan clan2);
|
@@ -13,6 +13,9 @@ namespace TaleWorlds.CampaignSystem
|
|
13
13
|
public MapVisibilityListener MapVisibilityListener { [CompilerGenerated]
|
14
14
|
get; }
|
15
15
|
|
16
|
+
public MapFogOfWarModel MapFogOfWarModel { [CompilerGenerated]
|
17
|
+
get; }
|
18
|
+
|
16
19
|
public PartySpeedModel PartySpeedCalculatingModel { [CompilerGenerated]
|
17
20
|
get; }
|
18
21
|
|
@@ -106,7 +109,7 @@ namespace TaleWorlds.CampaignSystem
|
|
106
109
|
public VillageProductionCalculatorModel VillageProductionCalculatorModel { [CompilerGenerated]
|
107
110
|
get; }
|
108
111
|
|
109
|
-
public
|
112
|
+
public VolunteerModel VolunteerModel { [CompilerGenerated]
|
110
113
|
get; }
|
111
114
|
|
112
115
|
public RomanceModel RomanceModel { [CompilerGenerated]
|
@@ -205,6 +208,9 @@ namespace TaleWorlds.CampaignSystem
|
|
205
208
|
public AgeModel AgeModel { [CompilerGenerated]
|
206
209
|
get; }
|
207
210
|
|
211
|
+
public PlayerProgressionModel PlayerProgressionModel { [CompilerGenerated]
|
212
|
+
get; }
|
213
|
+
|
208
214
|
public DailyTroopXpBonusModel DailyTroopXpBonusModel { [CompilerGenerated]
|
209
215
|
get; }
|
210
216
|
|
@@ -292,6 +298,15 @@ namespace TaleWorlds.CampaignSystem
|
|
292
298
|
public BannerItemRewardModel BannerItemRewardModel { [CompilerGenerated]
|
293
299
|
get; }
|
294
300
|
|
301
|
+
public DelayedTeleportationModel DelayedTeleportationModel { [CompilerGenerated]
|
302
|
+
get; }
|
303
|
+
|
304
|
+
public TroopSupplierProbabilityModel TroopSupplierProbabilityModel { [CompilerGenerated]
|
305
|
+
get; }
|
306
|
+
|
307
|
+
public CutsceneSelectionModel CutsceneSelectionModel { [CompilerGenerated]
|
308
|
+
get; }
|
309
|
+
|
295
310
|
public extern GameModels(IEnumerable<GameModel> inputComponents);
|
296
311
|
}
|
297
312
|
}
|
@@ -18,7 +18,7 @@ using TaleWorlds.SaveSystem;
|
|
18
18
|
|
19
19
|
namespace TaleWorlds.CampaignSystem
|
20
20
|
{
|
21
|
-
public sealed class Hero : MBObjectBase, ITrackableCampaignObject, ITrackableBase
|
21
|
+
public sealed class Hero : MBObjectBase, ITrackableCampaignObject, ITrackableBase, IRandomOwner
|
22
22
|
{
|
23
23
|
public struct HeroLastSeenInformation
|
24
24
|
{
|
@@ -42,7 +42,8 @@ namespace TaleWorlds.CampaignSystem
|
|
42
42
|
Prisoner,
|
43
43
|
Released,
|
44
44
|
Dead,
|
45
|
-
Disabled
|
45
|
+
Disabled,
|
46
|
+
Traveling
|
46
47
|
}
|
47
48
|
|
48
49
|
public const int RelationLimit = 100;
|
@@ -74,8 +75,6 @@ namespace TaleWorlds.CampaignSystem
|
|
74
75
|
|
75
76
|
public const int HeroWoundedHealthLevel = 20;
|
76
77
|
|
77
|
-
public bool IsMercenary;
|
78
|
-
|
79
78
|
[SaveableField(420)]
|
80
79
|
public int SpcDaysInLocation;
|
81
80
|
|
@@ -85,15 +84,6 @@ namespace TaleWorlds.CampaignSystem
|
|
85
84
|
[SaveableField(590)]
|
86
85
|
public List<ItemObject> SpecialItems;
|
87
86
|
|
88
|
-
[SaveableField(660)]
|
89
|
-
public int RandomValue;
|
90
|
-
|
91
|
-
[SaveableField(670)]
|
92
|
-
public int RandomValueDeterministic;
|
93
|
-
|
94
|
-
[SaveableField(680)]
|
95
|
-
public int RandomValueRarelyChanging;
|
96
|
-
|
97
87
|
public MBReadOnlyList<Hero> ExSpouses;
|
98
88
|
|
99
89
|
[SaveableField(760)]
|
@@ -147,13 +137,13 @@ namespace TaleWorlds.CampaignSystem
|
|
147
137
|
get; [CompilerGenerated]
|
148
138
|
set; }
|
149
139
|
|
150
|
-
|
151
|
-
|
152
|
-
[SaveableProperty(310)]
|
153
|
-
public bool IsNoble { [CompilerGenerated]
|
140
|
+
[SaveableProperty(800)]
|
141
|
+
public FormationClass PreferredUpgradeFormation { [CompilerGenerated]
|
154
142
|
get; [CompilerGenerated]
|
155
143
|
set; }
|
156
144
|
|
145
|
+
public CharacterStates HeroState { get; }
|
146
|
+
|
157
147
|
[SaveableProperty(320)]
|
158
148
|
public bool IsMinorFactionHero { [CompilerGenerated]
|
159
149
|
get; [CompilerGenerated]
|
@@ -164,11 +154,11 @@ namespace TaleWorlds.CampaignSystem
|
|
164
154
|
|
165
155
|
public bool CanBeCompanion { get; }
|
166
156
|
|
167
|
-
public bool
|
157
|
+
public bool IsNoncombatant { get; }
|
168
158
|
|
169
159
|
public Clan CompanionOf { get; set; }
|
170
160
|
|
171
|
-
public IEnumerable<Hero> CompanionsInParty { [IteratorStateMachine(typeof(
|
161
|
+
public IEnumerable<Hero> CompanionsInParty { [IteratorStateMachine(typeof(_003Cget_CompanionsInParty_003Ed__165))]
|
172
162
|
get; }
|
173
163
|
|
174
164
|
[SaveableProperty(780)]
|
@@ -191,6 +181,8 @@ namespace TaleWorlds.CampaignSystem
|
|
191
181
|
|
192
182
|
public bool IsDisabled { get; }
|
193
183
|
|
184
|
+
public bool IsTraveling { get; }
|
185
|
+
|
194
186
|
public bool IsAlive { get; }
|
195
187
|
|
196
188
|
[SaveableProperty(400)]
|
@@ -239,7 +231,7 @@ namespace TaleWorlds.CampaignSystem
|
|
239
231
|
|
240
232
|
public bool IsNotable { get; }
|
241
233
|
|
242
|
-
public bool
|
234
|
+
public bool IsLord { get; }
|
243
235
|
|
244
236
|
public int MaxHitPoints { get; }
|
245
237
|
|
@@ -303,16 +295,17 @@ namespace TaleWorlds.CampaignSystem
|
|
303
295
|
|
304
296
|
public int Gold { get; set; }
|
305
297
|
|
306
|
-
[SaveableProperty(
|
307
|
-
public
|
308
|
-
get;
|
309
|
-
set; }
|
298
|
+
[SaveableProperty(660)]
|
299
|
+
public int RandomValue { [CompilerGenerated]
|
300
|
+
get; }
|
310
301
|
|
311
302
|
[SaveableProperty(790)]
|
312
303
|
public EquipmentElement BannerItem { [CompilerGenerated]
|
313
304
|
get; [CompilerGenerated]
|
314
305
|
set; }
|
315
306
|
|
307
|
+
public float ProbabilityOfDeath { get; }
|
308
|
+
|
316
309
|
public Hero Father { get; set; }
|
317
310
|
|
318
311
|
public Hero Mother { get; set; }
|
@@ -321,7 +314,7 @@ namespace TaleWorlds.CampaignSystem
|
|
321
314
|
|
322
315
|
public List<Hero> Children { get; }
|
323
316
|
|
324
|
-
public IEnumerable<Hero> Siblings { [IteratorStateMachine(typeof(
|
317
|
+
public IEnumerable<Hero> Siblings { [IteratorStateMachine(typeof(_003Cget_Siblings_003Ed__365))]
|
325
318
|
get; }
|
326
319
|
|
327
320
|
public IHeroDeveloper HeroDeveloper { get; }
|
@@ -378,7 +371,7 @@ namespace TaleWorlds.CampaignSystem
|
|
378
371
|
|
379
372
|
public extern void ClearAttributes();
|
380
373
|
|
381
|
-
public extern void
|
374
|
+
public extern void SetTraitLevel(TraitObject trait, int value);
|
382
375
|
|
383
376
|
public extern int GetTraitLevel(TraitObject trait);
|
384
377
|
|
@@ -408,7 +401,7 @@ namespace TaleWorlds.CampaignSystem
|
|
408
401
|
|
409
402
|
public extern bool CanLeadParty();
|
410
403
|
|
411
|
-
public static extern
|
404
|
+
public static extern TextObject SetHeroEncyclopediaTextAndLinks(Hero o);
|
412
405
|
|
413
406
|
public extern bool CanHeroEquipmentBeChanged();
|
414
407
|
|
@@ -16,7 +16,7 @@ namespace TaleWorlds.CampaignSystem
|
|
16
16
|
|
17
17
|
void ClearBehaviors();
|
18
18
|
|
19
|
-
void
|
19
|
+
void LoadBehaviorData();
|
20
20
|
|
21
21
|
void InitializeCampaignBehaviors(IEnumerable<CampaignBehaviorBase> inputComponents);
|
22
22
|
}
|
@@ -41,8 +41,6 @@ namespace TaleWorlds.CampaignSystem
|
|
41
41
|
|
42
42
|
IMission OpenMeetingMission(string scene, CharacterObject character);
|
43
43
|
|
44
|
-
IMission OpenSneakIntoTownFightMission(string scene, Location location, int townUpgradeLevel);
|
45
|
-
|
46
44
|
IMission OpenSneakMission(string scene);
|
47
45
|
|
48
46
|
IMission OpenEquipmentTestMission(string scene);
|
@@ -76,6 +76,8 @@ namespace TaleWorlds.CampaignSystem
|
|
76
76
|
|
77
77
|
Settlement FactionMidSettlement { get; }
|
78
78
|
|
79
|
+
float DistanceToClosestNonAllyFortification { get; }
|
80
|
+
|
79
81
|
IEnumerable<StanceLink> Stances { get; }
|
80
82
|
|
81
83
|
int TributeWallet { get; set; }
|
@@ -0,0 +1,7 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem
|
2
|
+
{
|
3
|
+
public interface IRandomOwner
|
4
|
+
{
|
5
|
+
int RandomValue { get; }
|
6
|
+
}
|
7
|
+
}
|
@@ -2,7 +2,6 @@ using System.Collections.Generic;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using System.Xml;
|
4
4
|
using TaleWorlds.CampaignSystem.Election;
|
5
|
-
using TaleWorlds.CampaignSystem.Map;
|
6
5
|
using TaleWorlds.CampaignSystem.Party;
|
7
6
|
using TaleWorlds.CampaignSystem.Party.PartyComponents;
|
8
7
|
using TaleWorlds.CampaignSystem.Settlements;
|
@@ -141,6 +140,8 @@ namespace TaleWorlds.CampaignSystem
|
|
141
140
|
|
142
141
|
public float TotalStrength { get; }
|
143
142
|
|
143
|
+
public float DistanceToClosestNonAllyFortification { get; }
|
144
|
+
|
144
145
|
public IList<PolicyObject> ActivePolicies { get; }
|
145
146
|
|
146
147
|
public static MBReadOnlyList<Kingdom> All { get; }
|
@@ -151,8 +152,6 @@ namespace TaleWorlds.CampaignSystem
|
|
151
152
|
|
152
153
|
public bool IsEliminated { get; }
|
153
154
|
|
154
|
-
public Hero Ruler { get; }
|
155
|
-
|
156
155
|
[SaveableProperty(41)]
|
157
156
|
public CampaignTime LastMercenaryOfferTime { [CompilerGenerated]
|
158
157
|
get; [CompilerGenerated]
|
@@ -167,7 +166,7 @@ namespace TaleWorlds.CampaignSystem
|
|
167
166
|
|
168
167
|
public float Aggressiveness { get; }
|
169
168
|
|
170
|
-
public IEnumerable<MobileParty> AllParties { [IteratorStateMachine(typeof(
|
169
|
+
public IEnumerable<MobileParty> AllParties { [IteratorStateMachine(typeof(_003Cget_AllParties_003Ed__224))]
|
171
170
|
get; }
|
172
171
|
|
173
172
|
public Settlement FactionMidSettlement { get; }
|
@@ -184,6 +183,8 @@ namespace TaleWorlds.CampaignSystem
|
|
184
183
|
|
185
184
|
public extern void RemoveDecision(KingdomDecision kingdomDecision);
|
186
185
|
|
186
|
+
public extern void ValidateSettlementsCache();
|
187
|
+
|
187
188
|
public override extern string ToString();
|
188
189
|
|
189
190
|
public extern bool IsAtWarWith(IFaction other);
|
@@ -200,11 +201,7 @@ namespace TaleWorlds.CampaignSystem
|
|
200
201
|
|
201
202
|
public extern bool HasPolicy(PolicyObject policy);
|
202
203
|
|
203
|
-
public extern void CreateArmy(Hero armyLeader,
|
204
|
-
|
205
|
-
public extern bool HasDefenderArmyForTown(Settlement siegedSettlement);
|
206
|
-
|
207
|
-
public extern bool HasDefenderArmyThatHasntArrivedYet(Settlement besiegedSettlement, Army otherThanThis = null);
|
204
|
+
public extern void CreateArmy(Hero armyLeader, Settlement targetSettlement, Army.ArmyTypes selectedArmyType);
|
208
205
|
|
209
206
|
public extern void OnKingdomDecisionConcluded();
|
210
207
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
using System.Collections.Generic;
|
1
2
|
using TaleWorlds.CampaignSystem.Settlements;
|
2
3
|
using TaleWorlds.Localization;
|
3
4
|
|
@@ -9,16 +10,16 @@ namespace TaleWorlds.CampaignSystem
|
|
9
10
|
|
10
11
|
public extern NameGenerator();
|
11
12
|
|
12
|
-
public extern void GenerateHeroNameAndHeroFullName(Hero hero, out TextObject firstName, out TextObject fullName, bool useDeterministicValues = true
|
13
|
+
public extern void GenerateHeroNameAndHeroFullName(Hero hero, out TextObject firstName, out TextObject fullName, bool useDeterministicValues = true);
|
13
14
|
|
14
|
-
public extern TextObject GenerateHeroFirstName(Hero hero
|
15
|
+
public extern TextObject GenerateHeroFirstName(Hero hero);
|
15
16
|
|
16
17
|
public extern TextObject GenerateFirstNameForPlayer(CultureObject culture, bool isFemale);
|
17
18
|
|
18
19
|
public extern TextObject GenerateClanName(CultureObject culture, Settlement clanOriginSettlement);
|
19
20
|
|
20
|
-
public extern TextObject
|
21
|
+
public extern IReadOnlyList<TextObject> GetNameListForCulture(CultureObject npcCulture, bool isFemale);
|
21
22
|
|
22
|
-
public extern void AddName(
|
23
|
+
public extern void AddName(TextObject name);
|
23
24
|
}
|
24
25
|
}
|
@@ -3,6 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using TaleWorlds.CampaignSystem.Actions;
|
4
4
|
using TaleWorlds.CampaignSystem.GameMenus;
|
5
5
|
using TaleWorlds.CampaignSystem.Overlay;
|
6
|
+
using TaleWorlds.CampaignSystem.Settlements.Locations;
|
6
7
|
using TaleWorlds.Library;
|
7
8
|
using TaleWorlds.Localization;
|
8
9
|
using TaleWorlds.ObjectSystem;
|
@@ -104,6 +105,8 @@ namespace TaleWorlds.CampaignSystem
|
|
104
105
|
|
105
106
|
protected extern void UpdateQuestTaskStage(JournalLog questLog, int currentProgress);
|
106
107
|
|
108
|
+
public virtual extern bool IsLocationMarked(Location location);
|
109
|
+
|
107
110
|
public virtual extern int GetCurrentProgress();
|
108
111
|
|
109
112
|
public virtual extern int GetMaxProgress();
|
@@ -51,12 +51,11 @@ namespace TaleWorlds.CampaignSystem
|
|
51
51
|
|
52
52
|
public override extern void DailyTick();
|
53
53
|
|
54
|
-
|
55
|
-
public extern IEnumerable<GameMenuOption.IssueQuestFlags> CheckQuestForMenuLocations(List<Location> currentLocations);
|
54
|
+
public extern GameMenuOption.IssueQuestFlags CheckQuestForMenuLocations(List<Location> currentLocations);
|
56
55
|
|
57
56
|
public extern void OnQuestFinalized(QuestBase quest);
|
58
57
|
|
59
|
-
public override extern void OnPlayerCharacterChanged(Hero oldPlayer, Hero newPlayer, MobileParty newPlayerParty);
|
58
|
+
public override extern void OnPlayerCharacterChanged(Hero oldPlayer, Hero newPlayer, MobileParty newPlayerParty, bool isMainPartyChanged);
|
60
59
|
|
61
60
|
public override extern void OnHeroKilled(Hero victim, Hero killer, KillCharacterAction.KillCharacterActionDetail detail, bool showNotification = true);
|
62
61
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem
|
2
|
+
{
|
3
|
+
public static class RandomOwnerExtensions
|
4
|
+
{
|
5
|
+
public static extern int RandomIntWithSeed(this IRandomOwner obj, uint seed);
|
6
|
+
|
7
|
+
public static extern int RandomIntWithSeed(this IRandomOwner obj, uint seed, int max);
|
8
|
+
|
9
|
+
public static extern int RandomIntWithSeed(this IRandomOwner obj, uint seed, int min, int max);
|
10
|
+
|
11
|
+
public static extern float RandomFloatWithSeed(this IRandomOwner obj, uint seed);
|
12
|
+
|
13
|
+
public static extern float RandomFloatWithSeed(this IRandomOwner obj, uint seed, float max);
|
14
|
+
|
15
|
+
public static extern float RandomFloatWithSeed(this IRandomOwner obj, uint seed, float min, float max);
|
16
|
+
|
17
|
+
public static extern int RandomInt(this IRandomOwner obj);
|
18
|
+
|
19
|
+
public static extern int RandomInt(this IRandomOwner obj, int max);
|
20
|
+
|
21
|
+
public static extern int RandomInt(this IRandomOwner obj, int min, int max);
|
22
|
+
|
23
|
+
public static extern float RandomFloat(this IRandomOwner obj);
|
24
|
+
|
25
|
+
public static extern float RandomFloat(this IRandomOwner obj, float max);
|
26
|
+
|
27
|
+
public static extern float RandomFloat(this IRandomOwner obj, float min, float max);
|
28
|
+
}
|
29
|
+
}
|
@@ -28,22 +28,18 @@ namespace TaleWorlds.CampaignSystem
|
|
28
28
|
|
29
29
|
public extern void Initialize(CampaignGameStarter gameStarter);
|
30
30
|
|
31
|
-
public extern SandBoxManager();
|
32
|
-
|
33
31
|
public extern void OnCampaignStart(CampaignGameStarter gameInitializer, GameManagerBase gameManager, bool isSavedCampaign);
|
34
32
|
|
35
33
|
public extern void InitializeSandboxXMLs(bool isSavedCampaign);
|
36
34
|
|
37
35
|
public extern void InitializeCharactersAfterLoad(bool isSavedCampaign);
|
38
36
|
|
39
|
-
public extern void OnGameLoaded(object gameInitializer);
|
40
|
-
|
41
|
-
public extern void OnNewGameCreated(object gameInitializer);
|
42
|
-
|
43
37
|
protected override extern void OnTick(float dt);
|
44
38
|
|
45
39
|
public override extern void OnBeforeSave();
|
46
40
|
|
47
41
|
public override extern void OnAfterSave();
|
42
|
+
|
43
|
+
public extern SandBoxManager();
|
48
44
|
}
|
49
45
|
}
|
@@ -10,6 +10,10 @@ namespace TaleWorlds.CampaignSystem
|
|
10
10
|
public MBReadOnlyList<TrackedObject> TrackedObjects { [CompilerGenerated]
|
11
11
|
get; }
|
12
12
|
|
13
|
+
[CachedData]
|
14
|
+
public int TrackedObjectsVersion { [CompilerGenerated]
|
15
|
+
get; }
|
16
|
+
|
13
17
|
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
14
18
|
|
15
19
|
public extern VisualTrackerManager();
|
@@ -20,10 +24,6 @@ namespace TaleWorlds.CampaignSystem
|
|
20
24
|
|
21
25
|
public extern bool CheckTracked(BasicCharacterObject agentCharacter);
|
22
26
|
|
23
|
-
public extern void RemoveTrackedObject(ITrackableBase obj);
|
24
|
-
|
25
|
-
public extern void ForceRemoveTrackedObject(ITrackableBase obj);
|
26
|
-
|
27
|
-
public extern void ResetTracker();
|
27
|
+
public extern void RemoveTrackedObject(ITrackableBase obj, bool forceRemove = false);
|
28
28
|
}
|
29
29
|
}
|
@@ -6,6 +6,6 @@ namespace TaleWorlds.CampaignSystem.Actions
|
|
6
6
|
{
|
7
7
|
public static extern void Apply(Town fortification, Hero governor);
|
8
8
|
|
9
|
-
public static extern void
|
9
|
+
public static extern void RemoveGovernorOf(Hero governor);
|
10
10
|
}
|
11
11
|
}
|
@@ -6,6 +6,7 @@ namespace TaleWorlds.CampaignSystem.Actions
|
|
6
6
|
{
|
7
7
|
JoinAsMercenary,
|
8
8
|
JoinKingdom,
|
9
|
+
JoinKingdomByDefection,
|
9
10
|
LeaveKingdom,
|
10
11
|
LeaveWithRebellion,
|
11
12
|
LeaveAsMercenary,
|
@@ -26,6 +27,8 @@ namespace TaleWorlds.CampaignSystem.Actions
|
|
26
27
|
|
27
28
|
public static extern void ApplyByJoinToKingdom(Clan clan, Kingdom newKingdom, bool showNotification = true);
|
28
29
|
|
30
|
+
public static extern void ApplyByJoinToKingdomByDefection(Clan clan, Kingdom newKingdom, bool showNotification = true);
|
31
|
+
|
29
32
|
public static extern void ApplyByCreateKingdom(Clan clan, Kingdom newKingdom, bool showNotification = true);
|
30
33
|
|
31
34
|
public static extern void ApplyByLeaveKingdom(Clan clan, bool showNotification = true);
|
@@ -5,5 +5,7 @@ namespace TaleWorlds.CampaignSystem.Actions
|
|
5
5
|
public static extern void Apply(Clan destroyedClan);
|
6
6
|
|
7
7
|
public static extern void ApplyByFailedRebellion(Clan failedRebellionClan);
|
8
|
+
|
9
|
+
public static extern void ApplyByClanLeaderDeath(Clan destroyedClan);
|
8
10
|
}
|
9
11
|
}
|
@@ -3,5 +3,7 @@ namespace TaleWorlds.CampaignSystem.Actions
|
|
3
3
|
public static class DestroyKingdomAction
|
4
4
|
{
|
5
5
|
public static extern void Apply(Kingdom destroyedKingdom);
|
6
|
+
|
7
|
+
public static extern void ApplyByKingdomLeaderDeath(Kingdom destroyedKingdom);
|
6
8
|
}
|
7
9
|
}
|
@@ -4,7 +4,7 @@ namespace TaleWorlds.CampaignSystem.Actions
|
|
4
4
|
{
|
5
5
|
public static class DisbandPartyAction
|
6
6
|
{
|
7
|
-
public static extern void
|
7
|
+
public static extern void StartDisband(MobileParty disbandParty);
|
8
8
|
|
9
9
|
public static extern void CancelDisband(MobileParty disbandParty);
|
10
10
|
}
|
@@ -4,20 +4,18 @@ namespace TaleWorlds.CampaignSystem.Actions
|
|
4
4
|
{
|
5
5
|
public static class EndCaptivityAction
|
6
6
|
{
|
7
|
-
public static extern void ApplyByReleasedByPlayerAfterBattle(Hero character, Hero captor, Hero facilitator);
|
8
|
-
|
9
7
|
public static extern void ApplyByReleasedAfterBattle(Hero character);
|
10
8
|
|
11
9
|
public static extern void ApplyByRansom(Hero character, Hero facilitator);
|
12
10
|
|
13
|
-
public static extern void
|
14
|
-
|
15
|
-
public static extern void ApplyByReleasing(Hero character, Hero facilitator = null);
|
11
|
+
public static extern void ApplyByPeace(Hero character, Hero facilitator = null);
|
16
12
|
|
17
13
|
public static extern void ApplyByEscape(Hero character, Hero facilitator = null);
|
18
14
|
|
19
15
|
public static extern void ApplyByDeath(Hero character);
|
20
16
|
|
21
|
-
public static extern void
|
17
|
+
public static extern void ApplyByReleasedByChoice(FlattenedTroopRoster troopRoster);
|
18
|
+
|
19
|
+
public static extern void ApplyByReleasedByChoice(Hero character, Hero facilitator = null);
|
22
20
|
}
|
23
21
|
}
|
@@ -3,12 +3,10 @@ namespace TaleWorlds.CampaignSystem.Actions
|
|
3
3
|
public enum EndCaptivityDetail
|
4
4
|
{
|
5
5
|
Ransom,
|
6
|
-
EscapeFromLootedParty,
|
7
|
-
RemovedParty,
|
8
6
|
ReleasedAfterPeace,
|
9
7
|
ReleasedAfterBattle,
|
10
|
-
ReleasedFromPartyScreen,
|
11
8
|
ReleasedAfterEscape,
|
9
|
+
ReleasedByChoice,
|
12
10
|
Death
|
13
11
|
}
|
14
12
|
}
|
@@ -10,13 +10,9 @@ namespace TaleWorlds.CampaignSystem.Actions
|
|
10
10
|
|
11
11
|
public static extern void ApplyForDefault(Hero hero, float value);
|
12
12
|
|
13
|
-
public static extern void ApplyForClanSupport(Hero hero);
|
14
|
-
|
15
13
|
public static extern void ApplyForJoiningFaction(Hero hero, float value);
|
16
14
|
|
17
|
-
public static extern void ApplyForDonatePrisoners(
|
18
|
-
|
19
|
-
public static extern void ApplyForBeingAtArmy(MobileParty side1Party, float value);
|
15
|
+
public static extern void ApplyForDonatePrisoners(MobileParty donatingParty, float value);
|
20
16
|
|
21
17
|
public static extern void ApplyForRaidingEnemyVillage(MobileParty side1Party, float value);
|
22
18
|
|
@@ -1,7 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.CampaignSystem.Actions
|
2
|
-
{
|
3
|
-
public static class GiveGoldToClanAction
|
4
|
-
{
|
5
|
-
public static extern void ApplyFromHeroToClan(Hero giverHero, Clan clan, int amount);
|
6
|
-
}
|
7
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.CampaignSystem.Actions
|
2
|
-
{
|
3
|
-
public static class ScatterCompanionAction
|
4
|
-
{
|
5
|
-
public static extern void ApplyInPrison(Hero companion);
|
6
|
-
|
7
|
-
public static extern void ApplyFire(Hero companion);
|
8
|
-
}
|
9
|
-
}
|
@@ -1,11 +1,33 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Party;
|
1
2
|
using TaleWorlds.CampaignSystem.Settlements;
|
2
3
|
|
3
4
|
namespace TaleWorlds.CampaignSystem.Actions
|
4
5
|
{
|
5
6
|
public static class TeleportHeroAction
|
6
7
|
{
|
7
|
-
public
|
8
|
+
public enum TeleportationDetail
|
9
|
+
{
|
10
|
+
ImmediateTeleportToSettlement,
|
11
|
+
ImmediateTeleportToParty,
|
12
|
+
ImmediateTeleportToPartyAsPartyLeader,
|
13
|
+
DelayedTeleportToSettlement,
|
14
|
+
DelayedTeleportToParty,
|
15
|
+
DelayedTeleportToSettlementAsGovernor,
|
16
|
+
DelayedTeleportToPartyAsPartyLeader
|
17
|
+
}
|
8
18
|
|
9
|
-
public static extern void
|
19
|
+
public static extern void ApplyImmediateTeleportToSettlement(Hero heroToBeMoved, Settlement targetSettlement);
|
20
|
+
|
21
|
+
public static extern void ApplyImmediateTeleportToParty(Hero heroToBeMoved, MobileParty party);
|
22
|
+
|
23
|
+
public static extern void ApplyImmediateTeleportToPartyAsPartyLeader(Hero heroToBeMoved, MobileParty party);
|
24
|
+
|
25
|
+
public static extern void ApplyDelayedTeleportToSettlement(Hero heroToBeMoved, Settlement targetSettlement);
|
26
|
+
|
27
|
+
public static extern void ApplyDelayedTeleportToParty(Hero heroToBeMoved, MobileParty party);
|
28
|
+
|
29
|
+
public static extern void ApplyDelayedTeleportToSettlementAsGovernor(Hero heroToBeMoved, Settlement targetSettlement);
|
30
|
+
|
31
|
+
public static extern void ApplyDelayedTeleportToPartyAsPartyLeader(Hero heroToBeMoved, MobileParty party);
|
10
32
|
}
|
11
33
|
}
|
@@ -2,7 +2,7 @@ using TaleWorlds.CampaignSystem.Party;
|
|
2
2
|
|
3
3
|
namespace TaleWorlds.CampaignSystem.Actions
|
4
4
|
{
|
5
|
-
public static class
|
5
|
+
public static class TransferPrisonerAction
|
6
6
|
{
|
7
7
|
public static extern void Apply(CharacterObject prisonerTroop, PartyBase prisonerOwnerParty, PartyBase newParty);
|
8
8
|
}
|
@@ -8,11 +8,13 @@ namespace TaleWorlds.CampaignSystem.BarterSystem.Barterables
|
|
8
8
|
{
|
9
9
|
public readonly Kingdom TargetKingdom;
|
10
10
|
|
11
|
+
public readonly bool IsDefecting;
|
12
|
+
|
11
13
|
public override string StringID { get; }
|
12
14
|
|
13
15
|
public override TextObject Name { get; }
|
14
16
|
|
15
|
-
public extern JoinKingdomAsClanBarterable(Hero owner, Kingdom targetKingdom);
|
17
|
+
public extern JoinKingdomAsClanBarterable(Hero owner, Kingdom targetKingdom, bool isDefecting = false);
|
16
18
|
|
17
19
|
public override extern int GetUnitValueForFaction(IFaction factionForEvaluation);
|
18
20
|
|
@@ -1,6 +1,3 @@
|
|
1
|
-
using System.Collections.Generic;
|
2
|
-
using TaleWorlds.Library;
|
3
|
-
|
4
1
|
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
5
2
|
{
|
6
3
|
public class AgingCampaignBehavior : CampaignBehaviorBase
|
@@ -9,9 +6,6 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
9
6
|
|
10
7
|
public override extern void SyncData(IDataStore dataStore);
|
11
8
|
|
12
|
-
[CommandLineFunctionality.CommandLineArgumentFunction("change_main_hero_age", "campaign")]
|
13
|
-
public static extern string ChangeMainHeroAgeCheat(List<string> strings);
|
14
|
-
|
15
9
|
public extern AgingCampaignBehavior();
|
16
10
|
}
|
17
11
|
}
|
@@ -10,7 +10,7 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
10
10
|
|
11
11
|
public extern void RegisterEvents();
|
12
12
|
|
13
|
-
public extern void
|
13
|
+
public extern void LoadBehaviorData();
|
14
14
|
|
15
15
|
public extern T GetBehavior<T>();
|
16
16
|
|
@@ -1,23 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
2
|
-
{
|
3
|
-
public class ChildManagementCampaignBehavior : CampaignBehaviorBase
|
4
|
-
{
|
5
|
-
public override extern void RegisterEvents();
|
6
|
-
|
7
|
-
public extern void OnSessionLaunched(CampaignGameStarter campaignGameStarter);
|
8
|
-
|
9
|
-
public static extern bool child_dialogue_regular_start_on_condition();
|
10
|
-
|
11
|
-
public static extern bool child_dialogue_prisoner_start_on_condition();
|
12
|
-
|
13
|
-
public static extern bool is_conversation_hero_child_of_player();
|
14
|
-
|
15
|
-
public static extern bool child_relocation_on_condition(int settlementIndex);
|
16
|
-
|
17
|
-
public static extern void child_relocation_on_consequence(int settlementIndex);
|
18
|
-
|
19
|
-
public override extern void SyncData(IDataStore dataStore);
|
20
|
-
|
21
|
-
public extern ChildManagementCampaignBehavior();
|
22
|
-
}
|
23
|
-
}
|
@@ -43,13 +43,11 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
43
43
|
public static bool WeaponTypeDebugEnabled { [CompilerGenerated]
|
44
44
|
get; }
|
45
45
|
|
46
|
-
public extern CraftingCampaignBehavior();
|
47
|
-
|
48
46
|
public override extern void SyncData(IDataStore dataStore);
|
49
47
|
|
50
48
|
public override extern void RegisterEvents();
|
51
49
|
|
52
|
-
public extern bool IsOpened(CraftingPiece craftingPiece);
|
50
|
+
public extern bool IsOpened(CraftingPiece craftingPiece, CraftingTemplate craftingTemplate);
|
53
51
|
|
54
52
|
public extern void InitializeCraftingElements();
|
55
53
|
|
@@ -77,10 +75,14 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
77
75
|
|
78
76
|
public extern CraftingOrder CreateRandomQuestOrderForHero(Hero orderOwner, string questId);
|
79
77
|
|
80
|
-
public extern CraftingOrder CreateQuestOrderForHero(Hero orderOwner, string questId, float orderDifficulty = -1f, WeaponDesign weaponDesign = null,
|
78
|
+
public extern CraftingOrder CreateQuestOrderForHero(Hero orderOwner, string questId, float orderDifficulty = -1f, WeaponDesign weaponDesign = null, CraftingTemplate craftingTemplate = null);
|
81
79
|
|
82
80
|
public extern void GetOrderResult(CraftingOrder craftingOrder, ItemObject craftedItem, out bool isSucceed, out TextObject orderRemark, out TextObject orderResult, out int finalReward);
|
83
81
|
|
84
82
|
public extern void CompleteOrder(Town town, CraftingOrder craftingOrder, ItemObject craftedItem, Hero completerHero);
|
83
|
+
|
84
|
+
public static extern string UnlockCraftingPieces(List<string> strings);
|
85
|
+
|
86
|
+
public extern CraftingCampaignBehavior();
|
85
87
|
}
|
86
88
|
}
|
@@ -1,9 +1,13 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Party;
|
2
|
+
|
1
3
|
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
2
4
|
{
|
3
|
-
public class DisbandPartyCampaignBehavior : CampaignBehaviorBase
|
5
|
+
public class DisbandPartyCampaignBehavior : CampaignBehaviorBase, IDisbandPartyCampaignBehavior, ICampaignBehavior
|
4
6
|
{
|
5
7
|
public override extern void RegisterEvents();
|
6
8
|
|
9
|
+
public extern bool IsPartyWaitingForDisband(MobileParty party);
|
10
|
+
|
7
11
|
public override extern void SyncData(IDataStore dataStore);
|
8
12
|
|
9
13
|
public extern DisbandPartyCampaignBehavior();
|
@@ -18,15 +18,15 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
18
18
|
|
19
19
|
public readonly string PrefabId;
|
20
20
|
|
21
|
-
public readonly
|
21
|
+
public readonly bool UseOffHand;
|
22
22
|
|
23
23
|
public static readonly EducationCharacterProperties Default;
|
24
24
|
|
25
25
|
public static readonly EducationCharacterProperties Invalid;
|
26
26
|
|
27
|
-
public extern EducationCharacterProperties(CharacterObject character, Equipment equipment, string actionId, string prefabId,
|
27
|
+
public extern EducationCharacterProperties(CharacterObject character, Equipment equipment, string actionId, string prefabId, bool useOffHand);
|
28
28
|
|
29
|
-
public extern EducationCharacterProperties(string actionId, string prefabId,
|
29
|
+
public extern EducationCharacterProperties(string actionId, string prefabId, bool useOffHand);
|
30
30
|
|
31
31
|
public extern EducationCharacterProperties(string actionId);
|
32
32
|
|
@@ -39,6 +39,8 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
39
39
|
public override extern bool Equals(object obj);
|
40
40
|
|
41
41
|
public override extern int GetHashCode();
|
42
|
+
|
43
|
+
public extern sbyte GetUsedHandBoneIndex();
|
42
44
|
}
|
43
45
|
|
44
46
|
public override extern void RegisterEvents();
|
@@ -1,3 +1,5 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.GameMenus;
|
2
|
+
|
1
3
|
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
2
4
|
{
|
3
5
|
public class EncounterGameMenuBehavior : CampaignBehaviorBase
|
@@ -6,6 +8,32 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
6
8
|
|
7
9
|
public override extern void RegisterEvents();
|
8
10
|
|
11
|
+
public static extern void game_menu_captivity_taken_prisoner_cheat_on_consequence(MenuCallbackArgs args);
|
12
|
+
|
13
|
+
public static extern bool game_menu_captivity_castle_taken_prisoner_cont_on_condition(MenuCallbackArgs args);
|
14
|
+
|
15
|
+
public static extern void menu_sneak_into_town_succeeded_continue_on_consequence(MenuCallbackArgs args);
|
16
|
+
|
17
|
+
public static extern bool menu_sneak_into_town_succeeded_continue_on_condition(MenuCallbackArgs args);
|
18
|
+
|
19
|
+
public static extern void game_menu_sneak_into_town_caught_on_init(MenuCallbackArgs args);
|
20
|
+
|
21
|
+
public static extern void mno_sneak_caught_surrender_on_consequence(MenuCallbackArgs args);
|
22
|
+
|
23
|
+
public static extern bool mno_sneak_caught_surrender_on_condition(MenuCallbackArgs args);
|
24
|
+
|
25
|
+
public static extern bool game_menu_captivity_taken_prisoner_cheat_on_condition(MenuCallbackArgs args);
|
26
|
+
|
27
|
+
public static extern void game_menu_captivity_castle_taken_prisoner_cont_on_consequence(MenuCallbackArgs args);
|
28
|
+
|
29
|
+
public static extern void game_request_entry_to_castle_approved_continue_on_consequence(MenuCallbackArgs args);
|
30
|
+
|
31
|
+
public static extern bool game_request_entry_to_castle_approved_continue_on_condition(MenuCallbackArgs args);
|
32
|
+
|
33
|
+
public static extern void game_request_entry_to_castle_rejected_continue_on_consequence(MenuCallbackArgs args);
|
34
|
+
|
35
|
+
public static extern void menu_castle_entry_denied_on_init(MenuCallbackArgs args);
|
36
|
+
|
9
37
|
public extern EncounterGameMenuBehavior();
|
10
38
|
}
|
11
39
|
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
using MountAndBlade.CampaignBehaviors;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
4
|
-
{
|
5
|
-
public class HeroCreationCampaignBehavior : CampaignBehaviorBase, IHeroCreationCampaignBehavior, ICampaignBehavior
|
6
|
-
{
|
7
|
-
public override extern void RegisterEvents();
|
8
|
-
|
9
|
-
public override extern void SyncData(IDataStore dataStore);
|
10
|
-
|
11
|
-
public extern void DeriveSkillsFromTraits(Hero hero, CharacterObject templateCharacter = null);
|
12
|
-
|
13
|
-
public extern HeroCreationCampaignBehavior();
|
14
|
-
}
|
15
|
-
}
|
@@ -34,7 +34,7 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
34
34
|
|
35
35
|
ItemObject CreateCraftedWeaponInCraftingOrderMode(Hero crafterHero, CraftingOrder craftingOrder, WeaponDesign weaponDesign, int modifierTier, Crafting.OverrideData overrideData);
|
36
36
|
|
37
|
-
bool IsOpened(CraftingPiece craftingPiece);
|
37
|
+
bool IsOpened(CraftingPiece craftingPiece, CraftingTemplate craftingTemplate);
|
38
38
|
|
39
39
|
void InitializeCraftingElements();
|
40
40
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Party;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
4
|
+
{
|
5
|
+
public interface IDisbandPartyCampaignBehavior : ICampaignBehavior
|
6
|
+
{
|
7
|
+
bool IsPartyWaitingForDisband(MobileParty party);
|
8
|
+
}
|
9
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Map;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
4
|
+
{
|
5
|
+
public interface ITeleportationCampaignBehavior : ICampaignBehavior
|
6
|
+
{
|
7
|
+
bool GetTargetOfTeleportingHero(Hero teleportingHero, out bool isGovernor, out bool isPartyLeader, out IMapPoint target);
|
8
|
+
}
|
9
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
2
|
+
{
|
3
|
+
public class InitialChildGenerationCampaignBehavior : CampaignBehaviorBase
|
4
|
+
{
|
5
|
+
public override extern void RegisterEvents();
|
6
|
+
|
7
|
+
public override extern void SyncData(IDataStore dataStore);
|
8
|
+
|
9
|
+
public extern InitialChildGenerationCampaignBehavior();
|
10
|
+
}
|
11
|
+
}
|
@@ -34,8 +34,8 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
34
34
|
|
35
35
|
public override extern void SyncData(IDataStore dataStore);
|
36
36
|
|
37
|
-
public extern OrderOfBattleFormationData GetFormationDataAtIndex(int formationIndex);
|
37
|
+
public extern OrderOfBattleFormationData GetFormationDataAtIndex(int formationIndex, bool isSiegeBattle);
|
38
38
|
|
39
|
-
public extern void SetFormationInfos(List<OrderOfBattleFormationData> formationInfos);
|
39
|
+
public extern void SetFormationInfos(List<OrderOfBattleFormationData> formationInfos, bool isSiegeBattle);
|
40
40
|
}
|
41
41
|
}
|
@@ -1,6 +1,3 @@
|
|
1
|
-
using TaleWorlds.CampaignSystem.Party;
|
2
|
-
using TaleWorlds.CampaignSystem.Settlements;
|
3
|
-
|
4
1
|
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
5
2
|
{
|
6
3
|
public class PartiesSellPrisonerCampaignBehavior : CampaignBehaviorBase
|
@@ -9,8 +6,6 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
9
6
|
|
10
7
|
public override extern void SyncData(IDataStore dataStore);
|
11
8
|
|
12
|
-
public extern void OnSettlementEntered(MobileParty mobileParty, Settlement settlement, Hero hero);
|
13
|
-
|
14
9
|
public extern PartiesSellPrisonerCampaignBehavior();
|
15
10
|
}
|
16
11
|
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Party;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
4
|
+
{
|
5
|
+
public class PartyUpgraderCampaignBehavior : CampaignBehaviorBase
|
6
|
+
{
|
7
|
+
public override extern void RegisterEvents();
|
8
|
+
|
9
|
+
public extern void DailyTickParty(MobileParty party);
|
10
|
+
|
11
|
+
public override extern void SyncData(IDataStore dataStore);
|
12
|
+
|
13
|
+
public extern void UpgradeReadyTroops(PartyBase party);
|
14
|
+
|
15
|
+
public extern PartyUpgraderCampaignBehavior();
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
2
|
+
{
|
3
|
+
public class PerkResetCampaignBehavior : CampaignBehaviorBase
|
4
|
+
{
|
5
|
+
public int PerkResetCost { get; }
|
6
|
+
|
7
|
+
public bool HasEnoughSkillValueForReset { get; }
|
8
|
+
|
9
|
+
public override extern void RegisterEvents();
|
10
|
+
|
11
|
+
public override extern void SyncData(IDataStore dataStore);
|
12
|
+
|
13
|
+
public extern void OnSessionLaunched(CampaignGameStarter campaignGameStarter);
|
14
|
+
|
15
|
+
protected extern void AddDialogs(CampaignGameStarter campaignGameStarter);
|
16
|
+
|
17
|
+
public extern PerkResetCampaignBehavior();
|
18
|
+
}
|
19
|
+
}
|
@@ -68,8 +68,6 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
68
68
|
[GameMenuInitializationHandler("village_loot_no_resist")]
|
69
69
|
[GameMenuInitializationHandler("village_take_food_confirm")]
|
70
70
|
[GameMenuInitializationHandler("village_press_into_service_confirm")]
|
71
|
-
[GameMenuInitializationHandler("village_loot_defeat")]
|
72
|
-
[GameMenuInitializationHandler("village_loot_continue")]
|
73
71
|
[GameMenuInitializationHandler("menu_press_into_service_success")]
|
74
72
|
[GameMenuInitializationHandler("menu_village_take_food_success")]
|
75
73
|
public static extern void game_menu_village_menu_on_init(MenuCallbackArgs args);
|
@@ -10,6 +10,6 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
10
10
|
|
11
11
|
public override extern void SyncData(IDataStore dataStore);
|
12
12
|
|
13
|
-
public extern void HourlyTickSettlement(Settlement
|
13
|
+
public extern void HourlyTickSettlement(Settlement settlement);
|
14
14
|
}
|
15
15
|
}
|
@@ -1,6 +1,3 @@
|
|
1
|
-
using TaleWorlds.CampaignSystem.Actions;
|
2
|
-
using TaleWorlds.CampaignSystem.Settlements;
|
3
|
-
|
4
1
|
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
5
2
|
{
|
6
3
|
public class SettlementVariablesBehavior : CampaignBehaviorBase
|
@@ -9,14 +6,6 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
9
6
|
|
10
7
|
public override extern void SyncData(IDataStore dataStore);
|
11
8
|
|
12
|
-
public extern void DailyTickSettlement(Settlement settlement);
|
13
|
-
|
14
|
-
public extern void OnNewGameCreatedPartialFollowUpEnd(CampaignGameStarter starter);
|
15
|
-
|
16
|
-
public extern void OnClanChangedKingdom(Clan clan, Kingdom oldKingdom, Kingdom newKingdom, ChangeKingdomAction.ChangeKingdomActionDetail detail, bool showNotification);
|
17
|
-
|
18
|
-
public extern void OnSettlementOwnerChanged(Settlement settlement, bool openToClaim, Hero newOwner, Hero oldOwner, Hero capturerHero, ChangeOwnerOfSettlementAction.ChangeOwnerOfSettlementDetail detail);
|
19
|
-
|
20
9
|
public extern SettlementVariablesBehavior();
|
21
10
|
}
|
22
11
|
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Map;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
4
|
+
{
|
5
|
+
public class TeleportationCampaignBehavior : CampaignBehaviorBase, ITeleportationCampaignBehavior, ICampaignBehavior
|
6
|
+
{
|
7
|
+
public class TeleportationCampaignBehaviorTypeDefiner : SaveableCampaignBehaviorTypeDefiner
|
8
|
+
{
|
9
|
+
public extern TeleportationCampaignBehaviorTypeDefiner();
|
10
|
+
|
11
|
+
protected override extern void DefineClassTypes();
|
12
|
+
|
13
|
+
protected override extern void DefineContainerDefinitions();
|
14
|
+
}
|
15
|
+
|
16
|
+
public override extern void RegisterEvents();
|
17
|
+
|
18
|
+
public override extern void SyncData(IDataStore dataStore);
|
19
|
+
|
20
|
+
public extern bool GetTargetOfTeleportingHero(Hero teleportingHero, out bool isGovernor, out bool isPartyLeader, out IMapPoint target);
|
21
|
+
|
22
|
+
public extern TeleportationCampaignBehavior();
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
2
|
+
{
|
3
|
+
public class VassalAndMercenaryOfferCampaignBehavior : CampaignBehaviorBase
|
4
|
+
{
|
5
|
+
public override extern void RegisterEvents();
|
6
|
+
|
7
|
+
public override extern void SyncData(IDataStore dataStore);
|
8
|
+
|
9
|
+
public extern VassalAndMercenaryOfferCampaignBehavior();
|
10
|
+
}
|
11
|
+
}
|
@@ -2,18 +2,12 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
2
2
|
{
|
3
3
|
public class VillageGoodProductionCampaignBehavior : CampaignBehaviorBase
|
4
4
|
{
|
5
|
-
public const int StandardItemAdditionUsedInUpdatePriceIndexes = 1;
|
6
|
-
|
7
|
-
public const float PowerValueUsedInUpdatePriceIndexes = 0.45f;
|
8
|
-
|
9
5
|
public const float DistributingItemsAtWorldConstant = 1.5f;
|
10
6
|
|
11
7
|
public override extern void RegisterEvents();
|
12
8
|
|
13
9
|
public override extern void SyncData(IDataStore dataStore);
|
14
10
|
|
15
|
-
public extern void OnNewGameCreated(CampaignGameStarter campaignGameStarter);
|
16
|
-
|
17
11
|
public extern VillageGoodProductionCampaignBehavior();
|
18
12
|
}
|
19
13
|
}
|
@@ -6,8 +6,6 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors
|
|
6
6
|
|
7
7
|
public override extern void SyncData(IDataStore dataStore);
|
8
8
|
|
9
|
-
public extern void DailyTick();
|
10
|
-
|
11
9
|
public extern VillageHealCampaignBehavior();
|
12
10
|
}
|
13
11
|
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.CampaignSystem.CampaignBehaviors.AiBehaviors
|
2
|
-
{
|
3
|
-
public class AiJoinNearbyMapEventBehavior : CampaignBehaviorBase
|
4
|
-
{
|
5
|
-
public override extern void RegisterEvents();
|
6
|
-
|
7
|
-
public override extern void SyncData(IDataStore dataStore);
|
8
|
-
|
9
|
-
public extern AiJoinNearbyMapEventBehavior();
|
10
|
-
}
|
11
|
-
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.Party;
|
2
|
+
using TaleWorlds.CampaignSystem.Settlements;
|
2
3
|
|
3
4
|
namespace TaleWorlds.CampaignSystem.CampaignBehaviors.AiBehaviors
|
4
5
|
{
|
@@ -10,6 +11,8 @@ namespace TaleWorlds.CampaignSystem.CampaignBehaviors.AiBehaviors
|
|
10
11
|
|
11
12
|
public extern void AiHourlyTick(MobileParty mobileParty, PartyThinkParams p);
|
12
13
|
|
14
|
+
public static extern int ApproximateNumberOfVolunteersCanBeRecruitedFromSettlement(Hero hero, Settlement settlement);
|
15
|
+
|
13
16
|
public extern AiVisitSettlementBehavior();
|
14
17
|
}
|
15
18
|
}
|
@@ -23,9 +23,10 @@ namespace TaleWorlds.CampaignSystem.CharacterCreationContent
|
|
23
23
|
public sbyte PrefabBoneUsage { [CompilerGenerated]
|
24
24
|
get; }
|
25
25
|
|
26
|
-
public
|
26
|
+
public IReadOnlyList<FaceGenChar> FaceGenChars { get; }
|
27
27
|
|
28
|
-
public
|
28
|
+
public FaceGenMount FaceGenMount { [CompilerGenerated]
|
29
|
+
get; }
|
29
30
|
|
30
31
|
public bool CharsEquipmentNeedsRefresh { [CompilerGenerated]
|
31
32
|
get; }
|
@@ -46,7 +47,7 @@ namespace TaleWorlds.CampaignSystem.CharacterCreationContent
|
|
46
47
|
|
47
48
|
public extern void ChangeFaceGenChars(List<FaceGenChar> newChars);
|
48
49
|
|
49
|
-
public extern void
|
50
|
+
public extern void SetFaceGenMount(FaceGenMount newMount);
|
50
51
|
|
51
52
|
public extern void ClearFaceGenMounts();
|
52
53
|
|
@@ -62,7 +63,7 @@ namespace TaleWorlds.CampaignSystem.CharacterCreationContent
|
|
62
63
|
|
63
64
|
public extern void ChangeCharsAnimation(List<string> actionList);
|
64
65
|
|
65
|
-
public extern void ChangeMountsAnimation(
|
66
|
+
public extern void ChangeMountsAnimation(string action);
|
66
67
|
|
67
68
|
public extern CharacterCreation();
|
68
69
|
|
@@ -8,6 +8,9 @@ namespace TaleWorlds.CampaignSystem.CharacterCreationContent
|
|
8
8
|
public BodyProperties BodyProperties { [CompilerGenerated]
|
9
9
|
get; }
|
10
10
|
|
11
|
+
public int Race { [CompilerGenerated]
|
12
|
+
get; }
|
13
|
+
|
11
14
|
public Equipment Equipment { [CompilerGenerated]
|
12
15
|
get; }
|
13
16
|
|
@@ -18,6 +21,6 @@ namespace TaleWorlds.CampaignSystem.CharacterCreationContent
|
|
18
21
|
get; [CompilerGenerated]
|
19
22
|
set; }
|
20
23
|
|
21
|
-
public extern FaceGenChar(BodyProperties bodyProperties, Equipment equipment, bool isFemale, string actionName = "act_inventory_idle_start");
|
24
|
+
public extern FaceGenChar(BodyProperties bodyProperties, int race, Equipment equipment, bool isFemale, string actionName = "act_inventory_idle_start");
|
22
25
|
}
|
23
26
|
}
|
@@ -13,6 +13,8 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
13
13
|
|
14
14
|
public extern CharacterPerks(CharacterPerks perks);
|
15
15
|
|
16
|
+
public extern void ClearChangedPerks(Hero owner);
|
17
|
+
|
16
18
|
public override extern void Deserialize(MBObjectManager objectManager, XmlNode node);
|
17
19
|
}
|
18
20
|
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Actions;
|
2
|
+
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
3
|
+
using TaleWorlds.CampaignSystem.Conversation.Persuasion;
|
4
|
+
using TaleWorlds.CampaignSystem.Party;
|
5
|
+
using TaleWorlds.CampaignSystem.Roster;
|
6
|
+
using TaleWorlds.CampaignSystem.Settlements;
|
7
|
+
using TaleWorlds.Core;
|
8
|
+
|
9
|
+
namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
10
|
+
{
|
11
|
+
public class DefaultSkillLevelingManager : ISkillLevelingManager
|
12
|
+
{
|
13
|
+
public extern void OnCombatHit(CharacterObject affectorCharacter, CharacterObject affectedCharacter, CharacterObject captain, Hero commander, float speedBonusFromMovement, float shotDifficulty, WeaponComponentData affectorWeapon, float hitPointRatio, CombatXpModel.MissionTypeEnum missionType, bool isAffectorMounted, bool isTeamKill, bool isAffectorUnderCommand, float damageAmount, bool isFatal, bool isSiegeEngineHit, bool isHorseCharge);
|
14
|
+
|
15
|
+
public extern void OnSiegeEngineDestroyed(MobileParty party, SiegeEngineType destroyedSiegeEngine);
|
16
|
+
|
17
|
+
public extern void OnSimulationCombatKill(CharacterObject affectorCharacter, CharacterObject affectedCharacter, PartyBase affectorParty, PartyBase commanderParty);
|
18
|
+
|
19
|
+
public extern void OnTradeProfitMade(PartyBase party, int tradeProfit);
|
20
|
+
|
21
|
+
public extern void OnTradeProfitMade(Hero hero, int tradeProfit);
|
22
|
+
|
23
|
+
public extern void OnSettlementProjectFinished(Settlement settlement);
|
24
|
+
|
25
|
+
public extern void OnSettlementGoverned(Hero governor, Settlement settlement);
|
26
|
+
|
27
|
+
public extern void OnInfluenceSpent(Hero hero, float amountSpent);
|
28
|
+
|
29
|
+
public extern void OnGainRelation(Hero hero, Hero gainedRelationWith, float relationChange, ChangeRelationAction.ChangeRelationDetail detail = ChangeRelationAction.ChangeRelationDetail.Default);
|
30
|
+
|
31
|
+
public extern void OnTroopRecruited(Hero hero, int amount, int tier);
|
32
|
+
|
33
|
+
public extern void OnBribeGiven(int amount);
|
34
|
+
|
35
|
+
public extern void OnBanditsRecruited(MobileParty mobileParty, CharacterObject bandit, int count);
|
36
|
+
|
37
|
+
public extern void OnMainHeroReleasedFromCaptivity(float captivityTime);
|
38
|
+
|
39
|
+
public extern void OnMainHeroTortured();
|
40
|
+
|
41
|
+
public extern void OnMainHeroDisguised(bool isNotCaught);
|
42
|
+
|
43
|
+
public extern void OnRaid(MobileParty attackerParty, ItemRoster lootedItems);
|
44
|
+
|
45
|
+
public extern void OnLoot(MobileParty attackerParty, MobileParty forcedParty, ItemRoster lootedItems, bool attacked);
|
46
|
+
|
47
|
+
public extern void OnPrisonerSell(MobileParty mobileParty, float count);
|
48
|
+
|
49
|
+
public extern void OnSurgeryApplied(MobileParty party, bool surgerySuccess, int troopTier);
|
50
|
+
|
51
|
+
public extern void OnTacticsUsed(MobileParty party, float xp);
|
52
|
+
|
53
|
+
public extern void OnHideoutSpotted(MobileParty party, PartyBase spottedParty);
|
54
|
+
|
55
|
+
public extern void OnTrackDetected(Track track, float detectionDifficulty);
|
56
|
+
|
57
|
+
public extern void OnTravelOnFoot(Hero hero, float speed);
|
58
|
+
|
59
|
+
public extern void OnTravelOnHorse(Hero hero, float speed);
|
60
|
+
|
61
|
+
public extern void OnHeroHealedWhileWaiting(MobileParty mobileParty, int healingAmount);
|
62
|
+
|
63
|
+
public extern void OnRegularTroopHealedWhileWaiting(MobileParty mobileParty, int healedTroopCount, float averageTier);
|
64
|
+
|
65
|
+
public extern void OnLeadingArmy(MobileParty mobileParty);
|
66
|
+
|
67
|
+
public extern void OnSieging(MobileParty mobileParty);
|
68
|
+
|
69
|
+
public extern void OnSiegeEngineBuilt(MobileParty mobileParty, SiegeEngineType siegeEngine);
|
70
|
+
|
71
|
+
public extern void OnUpgradeTroops(PartyBase party, CharacterObject troop, CharacterObject upgrade, int numberOfTroops);
|
72
|
+
|
73
|
+
public extern void OnPersuasionSucceeded(Hero targetHero, SkillObject skill, PersuasionDifficulty difficulty, int argumentDifficultyBonusCoefficient);
|
74
|
+
|
75
|
+
public extern void OnPrisonBreakEnd(Hero prisonerHero, bool isSucceeded);
|
76
|
+
|
77
|
+
public extern void OnWallBreached(MobileParty party);
|
78
|
+
|
79
|
+
public extern void OnForceVolunteers(MobileParty attackerParty, PartyBase forcedParty);
|
80
|
+
|
81
|
+
public extern void OnForceSupplies(MobileParty attackerParty, ItemRoster lootedItems, bool attacked);
|
82
|
+
|
83
|
+
public extern void OnAIPartiesTravel(Hero hero, bool isCaravanParty, TerrainType currentTerrainType);
|
84
|
+
|
85
|
+
public extern void OnTraverseTerrain(MobileParty mobileParty, TerrainType currentTerrainType);
|
86
|
+
|
87
|
+
public extern void OnBattleEnd(PartyBase party, FlattenedTroopRoster flattenedTroopRoster);
|
88
|
+
|
89
|
+
public extern void OnFoodConsumed(MobileParty mobileParty, bool wasStarving);
|
90
|
+
|
91
|
+
public extern DefaultSkillLevelingManager();
|
92
|
+
}
|
93
|
+
}
|
@@ -23,18 +23,12 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
23
23
|
public Hero Hero { [CompilerGenerated]
|
24
24
|
get; }
|
25
25
|
|
26
|
-
public int NumberOfOpenedPerks { get; }
|
27
|
-
|
28
26
|
public int TotalXp { get; }
|
29
27
|
|
30
28
|
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
31
29
|
|
32
30
|
public extern int GetSkillXpProgress(SkillObject skill);
|
33
31
|
|
34
|
-
public extern PerkObject GetOpenedPerk(int i);
|
35
|
-
|
36
|
-
public extern void ClearChangedPerks();
|
37
|
-
|
38
32
|
public extern void ClearUnspentPoints();
|
39
33
|
|
40
34
|
public extern void ClearHero();
|
@@ -43,7 +37,7 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
43
37
|
|
44
38
|
public extern void ChangeSkillLevel(SkillObject skill, int changeAmount, bool shouldNotify = true);
|
45
39
|
|
46
|
-
public extern void
|
40
|
+
public extern void DeriveSkillsFromTraits(bool isByNaturalGrowth = false, CharacterObject template = null);
|
47
41
|
|
48
42
|
public extern void SetInitialSkillLevel(SkillObject skill, int newSkillValue);
|
49
43
|
|
@@ -51,22 +45,26 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
51
45
|
|
52
46
|
public extern float GetFocusFactor(SkillObject skill);
|
53
47
|
|
54
|
-
public extern bool CheckOpenedPerks(SkillObject skill);
|
55
|
-
|
56
48
|
extern void IHeroDeveloper.AfterLoad();
|
57
49
|
|
58
50
|
public extern void SetInitialLevel(int level);
|
59
51
|
|
60
52
|
public extern void CheckInitialLevel();
|
61
53
|
|
54
|
+
public extern IReadOnlyList<PerkObject> GetOneAvailablePerkForEachPerkPair();
|
55
|
+
|
62
56
|
public extern void AddPerk(PerkObject perk);
|
63
57
|
|
64
58
|
public extern int GetXpRequiredForLevel(int level);
|
65
59
|
|
60
|
+
public extern void RemoveAttribute(CharacterAttribute attrib, int changeAmount);
|
61
|
+
|
66
62
|
public extern void AddAttribute(CharacterAttribute attrib, int changeAmount, bool checkUnspentPoints = true);
|
67
63
|
|
68
64
|
public extern void AddFocus(SkillObject skill, int changeAmount, bool checkUnspentFocusPoints = true);
|
69
65
|
|
66
|
+
public extern void RemoveFocus(SkillObject skill, int changeAmount);
|
67
|
+
|
70
68
|
public extern bool CanAddFocusToSkill(SkillObject skill);
|
71
69
|
|
72
70
|
public extern int GetRequiredFocusPointsToAddFocus(SkillObject skill);
|
@@ -1,11 +1,10 @@
|
|
1
|
+
using System.Collections.Generic;
|
1
2
|
using TaleWorlds.Core;
|
2
3
|
|
3
4
|
namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
4
5
|
{
|
5
6
|
public interface IHeroDeveloper
|
6
7
|
{
|
7
|
-
int NumberOfOpenedPerks { get; }
|
8
|
-
|
9
8
|
int UnspentFocusPoints { get; set; }
|
10
9
|
|
11
10
|
int UnspentAttributePoints { get; set; }
|
@@ -24,6 +23,10 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
24
23
|
|
25
24
|
void AddFocus(SkillObject skill, int changeAmount, bool checkUnspentFocusPoints = true);
|
26
25
|
|
26
|
+
void RemoveFocus(SkillObject skill, int changeAmount);
|
27
|
+
|
28
|
+
void DeriveSkillsFromTraits(bool isByNaturalGrowth = false, CharacterObject template = null);
|
29
|
+
|
27
30
|
void SetInitialSkillLevel(SkillObject skill, int newSkillValue);
|
28
31
|
|
29
32
|
void InitializeSkillXp(SkillObject skill);
|
@@ -36,24 +39,22 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
36
39
|
|
37
40
|
void AddAttribute(CharacterAttribute attribute, int changeAmount, bool checkUnspentPoints = true);
|
38
41
|
|
42
|
+
void RemoveAttribute(CharacterAttribute attrib, int changeAmount);
|
43
|
+
|
39
44
|
void ChangeSkillLevel(SkillObject skill, int changeAmount, bool shouldNotify = true);
|
40
45
|
|
41
46
|
int GetFocus(SkillObject skill);
|
42
47
|
|
43
|
-
void ClearChangedPerks();
|
44
|
-
|
45
|
-
bool CheckOpenedPerks(SkillObject skill);
|
46
|
-
|
47
48
|
bool CanAddFocusToSkill(SkillObject skill);
|
48
49
|
|
49
|
-
PerkObject GetOpenedPerk(int i);
|
50
|
-
|
51
50
|
void AfterLoad();
|
52
51
|
|
53
52
|
int GetTotalSkillPoints();
|
54
53
|
|
55
54
|
int GetXpRequiredForLevel(int level);
|
56
55
|
|
56
|
+
IReadOnlyList<PerkObject> GetOneAvailablePerkForEachPerkPair();
|
57
|
+
|
57
58
|
int GetRequiredFocusPointsToAddFocus(SkillObject skill);
|
58
59
|
|
59
60
|
int GetSkillXpProgress(SkillObject skill);
|
@@ -0,0 +1,91 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Actions;
|
2
|
+
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
3
|
+
using TaleWorlds.CampaignSystem.Conversation.Persuasion;
|
4
|
+
using TaleWorlds.CampaignSystem.Party;
|
5
|
+
using TaleWorlds.CampaignSystem.Roster;
|
6
|
+
using TaleWorlds.CampaignSystem.Settlements;
|
7
|
+
using TaleWorlds.Core;
|
8
|
+
|
9
|
+
namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
10
|
+
{
|
11
|
+
public interface ISkillLevelingManager
|
12
|
+
{
|
13
|
+
void OnCombatHit(CharacterObject affectorCharacter, CharacterObject affectedCharacter, CharacterObject captain, Hero commander, float speedBonusFromMovement, float shotDifficulty, WeaponComponentData affectorWeapon, float hitPointRatio, CombatXpModel.MissionTypeEnum missionType, bool isAffectorMounted, bool isTeamKill, bool isAffectorUnderCommand, float damageAmount, bool isFatal, bool isSiegeEngineHit, bool isHorseCharge);
|
14
|
+
|
15
|
+
void OnSiegeEngineDestroyed(MobileParty party, SiegeEngineType destroyedSiegeEngine);
|
16
|
+
|
17
|
+
void OnSimulationCombatKill(CharacterObject affectorCharacter, CharacterObject affectedCharacter, PartyBase affectorParty, PartyBase commanderParty);
|
18
|
+
|
19
|
+
void OnTradeProfitMade(PartyBase party, int tradeProfit);
|
20
|
+
|
21
|
+
void OnTradeProfitMade(Hero hero, int tradeProfit);
|
22
|
+
|
23
|
+
void OnSettlementProjectFinished(Settlement settlement);
|
24
|
+
|
25
|
+
void OnSettlementGoverned(Hero governor, Settlement settlement);
|
26
|
+
|
27
|
+
void OnInfluenceSpent(Hero hero, float amountSpent);
|
28
|
+
|
29
|
+
void OnGainRelation(Hero hero, Hero gainedRelationWith, float relationChange, ChangeRelationAction.ChangeRelationDetail detail = ChangeRelationAction.ChangeRelationDetail.Default);
|
30
|
+
|
31
|
+
void OnTroopRecruited(Hero hero, int amount, int tier);
|
32
|
+
|
33
|
+
void OnBribeGiven(int amount);
|
34
|
+
|
35
|
+
void OnBanditsRecruited(MobileParty mobileParty, CharacterObject bandit, int count);
|
36
|
+
|
37
|
+
void OnMainHeroReleasedFromCaptivity(float captivityTime);
|
38
|
+
|
39
|
+
void OnMainHeroTortured();
|
40
|
+
|
41
|
+
void OnMainHeroDisguised(bool isNotCaught);
|
42
|
+
|
43
|
+
void OnRaid(MobileParty attackerParty, ItemRoster lootedItems);
|
44
|
+
|
45
|
+
void OnLoot(MobileParty attackerParty, MobileParty forcedParty, ItemRoster lootedItems, bool attacked);
|
46
|
+
|
47
|
+
void OnPrisonerSell(MobileParty mobileParty, float count);
|
48
|
+
|
49
|
+
void OnSurgeryApplied(MobileParty party, bool surgerySuccess, int troopTier);
|
50
|
+
|
51
|
+
void OnTacticsUsed(MobileParty party, float xp);
|
52
|
+
|
53
|
+
void OnHideoutSpotted(MobileParty party, PartyBase spottedParty);
|
54
|
+
|
55
|
+
void OnTrackDetected(Track track, float detectionDifficulty);
|
56
|
+
|
57
|
+
void OnTravelOnFoot(Hero hero, float speed);
|
58
|
+
|
59
|
+
void OnTravelOnHorse(Hero hero, float speed);
|
60
|
+
|
61
|
+
void OnHeroHealedWhileWaiting(MobileParty mobileParty, int healingAmount);
|
62
|
+
|
63
|
+
void OnRegularTroopHealedWhileWaiting(MobileParty mobileParty, int healedTroopCount, float averageTier);
|
64
|
+
|
65
|
+
void OnLeadingArmy(MobileParty mobileParty);
|
66
|
+
|
67
|
+
void OnSieging(MobileParty mobileParty);
|
68
|
+
|
69
|
+
void OnSiegeEngineBuilt(MobileParty mobileParty, SiegeEngineType siegeEngine);
|
70
|
+
|
71
|
+
void OnUpgradeTroops(PartyBase party, CharacterObject troop, CharacterObject upgrade, int numberOfTroops);
|
72
|
+
|
73
|
+
void OnPersuasionSucceeded(Hero targetHero, SkillObject skill, PersuasionDifficulty difficulty, int argumentDifficultyBonusCoefficient);
|
74
|
+
|
75
|
+
void OnPrisonBreakEnd(Hero prisonerHero, bool isSucceeded);
|
76
|
+
|
77
|
+
void OnWallBreached(MobileParty party);
|
78
|
+
|
79
|
+
void OnForceVolunteers(MobileParty attackerParty, PartyBase forcedParty);
|
80
|
+
|
81
|
+
void OnForceSupplies(MobileParty attackerParty, ItemRoster lootedItems, bool attacked);
|
82
|
+
|
83
|
+
void OnAIPartiesTravel(Hero hero, bool isCaravanParty, TerrainType currentTerrainType);
|
84
|
+
|
85
|
+
void OnTraverseTerrain(MobileParty mobileParty, TerrainType currentTerrainType);
|
86
|
+
|
87
|
+
void OnBattleEnd(PartyBase party, FlattenedTroopRoster flattenedTroopRoster);
|
88
|
+
|
89
|
+
void OnFoodConsumed(MobileParty mobileParty, bool wasStarving);
|
90
|
+
}
|
91
|
+
}
|
@@ -2,6 +2,7 @@ using TaleWorlds.CampaignSystem.Actions;
|
|
2
2
|
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
3
3
|
using TaleWorlds.CampaignSystem.Conversation.Persuasion;
|
4
4
|
using TaleWorlds.CampaignSystem.Party;
|
5
|
+
using TaleWorlds.CampaignSystem.Roster;
|
5
6
|
using TaleWorlds.CampaignSystem.Settlements;
|
6
7
|
using TaleWorlds.Core;
|
7
8
|
|
@@ -9,11 +10,11 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
9
10
|
{
|
10
11
|
public static class SkillLevelingManager
|
11
12
|
{
|
12
|
-
public static extern void OnCombatHit(CharacterObject affectorCharacter, CharacterObject affectedCharacter, CharacterObject captain, Hero commander, float speedBonusFromMovement, float shotDifficulty, WeaponComponentData affectorWeapon, float hitPointRatio, CombatXpModel.MissionTypeEnum missionType, bool isAffectorMounted, bool isTeamKill, bool isAffectorUnderCommand, float damageAmount, bool isFatal, bool isSiegeEngineHit);
|
13
|
+
public static extern void OnCombatHit(CharacterObject affectorCharacter, CharacterObject affectedCharacter, CharacterObject captain, Hero commander, float speedBonusFromMovement, float shotDifficulty, WeaponComponentData affectorWeapon, float hitPointRatio, CombatXpModel.MissionTypeEnum missionType, bool isAffectorMounted, bool isTeamKill, bool isAffectorUnderCommand, float damageAmount, bool isFatal, bool isSiegeEngineHit, bool isHorseCharge);
|
13
14
|
|
14
|
-
public static extern void
|
15
|
+
public static extern void OnSiegeEngineDestroyed(MobileParty party, SiegeEngineType destroyedSiegeEngine);
|
15
16
|
|
16
|
-
public static extern void
|
17
|
+
public static extern void OnWallBreached(MobileParty party);
|
17
18
|
|
18
19
|
public static extern void OnSimulationCombatKill(CharacterObject affectorCharacter, CharacterObject affectedCharacter, PartyBase affectorParty, PartyBase commanderParty);
|
19
20
|
|
@@ -21,8 +22,6 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
21
22
|
|
22
23
|
public static extern void OnTradeProfitMade(Hero hero, int tradeProfit);
|
23
24
|
|
24
|
-
public static extern void OnBarterAccepted(Hero hero1, Hero hero2);
|
25
|
-
|
26
25
|
public static extern void OnSettlementProjectFinished(Settlement settlement);
|
27
26
|
|
28
27
|
public static extern void OnSettlementGoverned(Hero governor, Settlement settlement);
|
@@ -35,8 +34,6 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
35
34
|
|
36
35
|
public static extern void OnBribeGiven(int amount);
|
37
36
|
|
38
|
-
public static extern void OnLeadingBandits(MobileParty mobileParty, int banditCount);
|
39
|
-
|
40
37
|
public static extern void OnBanditsRecruited(MobileParty mobileParty, CharacterObject bandit, int count);
|
41
38
|
|
42
39
|
public static extern void OnMainHeroReleasedFromCaptivity(float captivityTime);
|
@@ -45,21 +42,17 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
45
42
|
|
46
43
|
public static extern void OnMainHeroDisguised(bool isNotCaught);
|
47
44
|
|
48
|
-
public static extern void
|
45
|
+
public static extern void OnRaid(MobileParty attackerParty, ItemRoster lootedItems);
|
49
46
|
|
50
|
-
public static extern void
|
47
|
+
public static extern void OnLoot(MobileParty attackerParty, MobileParty forcedParty, ItemRoster lootedItems, bool attacked);
|
51
48
|
|
52
|
-
public static extern void
|
49
|
+
public static extern void OnForceVolunteers(MobileParty attackerParty, PartyBase forcedParty);
|
53
50
|
|
54
|
-
public static extern void
|
51
|
+
public static extern void OnForceSupplies(MobileParty attackerParty, ItemRoster lootedItems, bool attacked);
|
55
52
|
|
56
53
|
public static extern void OnPrisonerSell(MobileParty mobileParty, float count);
|
57
54
|
|
58
|
-
public static extern void OnSurgeryApplied(MobileParty party,
|
59
|
-
|
60
|
-
public static extern void OnPartyQuartermasterSkillExercised(MobileParty party, SkillObject skill, float skillXp);
|
61
|
-
|
62
|
-
public static extern void OnPartyEngineerSkillExercised(MobileParty party, SkillObject skill, float skillXp);
|
55
|
+
public static extern void OnSurgeryApplied(MobileParty party, bool surgerySuccess, int troopTier);
|
63
56
|
|
64
57
|
public static extern void OnTacticsUsed(MobileParty party, float xp);
|
65
58
|
|
@@ -71,13 +64,13 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
71
64
|
|
72
65
|
public static extern void OnTravelOnHorse(Hero hero, float speed);
|
73
66
|
|
74
|
-
public static extern void
|
67
|
+
public static extern void OnAIPartiesTravel(Hero hero, bool isCaravanParty, TerrainType currentTerrainType);
|
75
68
|
|
76
|
-
public static extern void
|
69
|
+
public static extern void OnTraverseTerrain(MobileParty mobileParty, TerrainType currentTerrainType);
|
77
70
|
|
78
|
-
public static extern void
|
71
|
+
public static extern void OnHeroHealedWhileWaiting(MobileParty mobileParty, int healingAmount);
|
79
72
|
|
80
|
-
public static extern void
|
73
|
+
public static extern void OnRegularTroopHealedWhileWaiting(MobileParty mobileParty, int healedTroopCount, float averageTier);
|
81
74
|
|
82
75
|
public static extern void OnLeadingArmy(MobileParty mobileParty);
|
83
76
|
|
@@ -85,12 +78,14 @@ namespace TaleWorlds.CampaignSystem.CharacterDevelopment
|
|
85
78
|
|
86
79
|
public static extern void OnSiegeEngineBuilt(MobileParty mobileParty, SiegeEngineType siegeEngine);
|
87
80
|
|
88
|
-
public static extern void
|
81
|
+
public static extern void OnUpgradeTroops(PartyBase party, CharacterObject troop, CharacterObject upgrade, int numberOfTroops);
|
89
82
|
|
90
|
-
public static extern void
|
83
|
+
public static extern void OnBattleEnd(PartyBase party, FlattenedTroopRoster flattenedTroopRoster);
|
91
84
|
|
92
85
|
public static extern void OnPersuasionSucceeded(Hero targetHero, SkillObject skill, PersuasionDifficulty difficulty, int argumentDifficultyBonusCoefficient);
|
93
86
|
|
94
87
|
public static extern void OnPrisonBreakEnd(Hero prisonerHero, bool isSucceeded);
|
88
|
+
|
89
|
+
public static extern void OnFoodConsumed(MobileParty mobileParty, bool wasStarving);
|
95
90
|
}
|
96
91
|
}
|
@@ -16,6 +16,10 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
16
16
|
|
17
17
|
public abstract int MaxAge { get; }
|
18
18
|
|
19
|
+
public abstract void GetAgeLimitForLocation(CharacterObject character, out int minimumAge, out int maximumAge, string additionalTags = "");
|
20
|
+
|
21
|
+
public abstract float GetSkillScalingModifierForAge(Hero hero, SkillObject skill, bool isByNaturalGrowth);
|
22
|
+
|
19
23
|
protected extern AgeModel();
|
20
24
|
}
|
21
25
|
}
|
@@ -26,7 +26,7 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
26
26
|
|
27
27
|
public abstract int GetPartyRelation(Hero hero);
|
28
28
|
|
29
|
-
public abstract ExplainedNumber
|
29
|
+
public abstract ExplainedNumber CalculateDailyCohesionChange(Army army, bool includeDescriptions = false);
|
30
30
|
|
31
31
|
public abstract int CalculateNewCohesion(Army army, PartyBase newParty, int calculatedCohesion, int sign);
|
32
32
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Collections.Generic;
|
1
3
|
using TaleWorlds.CampaignSystem.CharacterDevelopment;
|
2
4
|
using TaleWorlds.Core;
|
3
5
|
using TaleWorlds.Localization;
|
@@ -14,23 +16,19 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
14
16
|
|
15
17
|
public abstract int FocusPointsAtStart { get; }
|
16
18
|
|
17
|
-
public abstract int FocusPointCostToOpenSkill { get; }
|
18
|
-
|
19
19
|
public abstract int AttributePointsAtStart { get; }
|
20
20
|
|
21
21
|
public abstract int LevelsPerAttributePoint { get; }
|
22
22
|
|
23
|
+
public abstract List<Tuple<SkillObject, int>> GetSkillsDerivedFromTraits(Hero hero, CharacterObject templateCharacter = null, bool isByNaturalGrowth = false);
|
24
|
+
|
23
25
|
public abstract int SkillsRequiredForLevel(int level);
|
24
26
|
|
25
27
|
public abstract int GetMaxSkillPoint();
|
26
28
|
|
27
29
|
public abstract int GetXpRequiredForSkillLevel(int skillLevel);
|
28
30
|
|
29
|
-
public abstract
|
30
|
-
|
31
|
-
public abstract void GetInitialSkillXpForCharacter(Hero hero, SkillObject skill, out int initialSkillXp);
|
32
|
-
|
33
|
-
public abstract int GetDevelopmentPointNeededToChangeTrait(float traitValue);
|
31
|
+
public abstract int GetSkillLevelChange(Hero hero, SkillObject skill, float skillXp);
|
34
32
|
|
35
33
|
public abstract int GetXpAmountForSkillLevelChange(Hero hero, SkillObject skill, int skillLevelChange);
|
36
34
|
|
@@ -5,6 +5,8 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
5
5
|
{
|
6
6
|
public abstract class ClanPoliticsModel : GameModel
|
7
7
|
{
|
8
|
+
public abstract int EmissaryRelationBonusForMainClan { get; }
|
9
|
+
|
8
10
|
public abstract ExplainedNumber CalculateInfluenceChange(Clan clan, bool includeDescriptions = false);
|
9
11
|
|
10
12
|
public abstract float CalculateSupportForPolicyInClan(Clan clan, PolicyObject policy);
|
@@ -15,17 +15,6 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
15
15
|
Execution = 0x8u
|
16
16
|
}
|
17
17
|
|
18
|
-
public enum CrimeType
|
19
|
-
{
|
20
|
-
Murder,
|
21
|
-
KnockUnconcious,
|
22
|
-
AttackCaravan,
|
23
|
-
AttackVillagerParty,
|
24
|
-
GrandTheft,
|
25
|
-
Smuggling,
|
26
|
-
RaidVillage
|
27
|
-
}
|
28
|
-
|
29
18
|
public abstract float GetMaxCrimeRating();
|
30
19
|
|
31
20
|
public abstract float GetMinAcceptableCrimeRating(IFaction faction);
|
@@ -42,8 +31,6 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
42
31
|
|
43
32
|
public abstract ExplainedNumber GetDailyCrimeRatingChange(IFaction faction, bool includeDescriptions = false);
|
44
33
|
|
45
|
-
public abstract float GetCrimeRatingOf(CrimeType crime, params object[] additionalArgs);
|
46
|
-
|
47
34
|
protected extern CrimeModel();
|
48
35
|
}
|
49
36
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using TaleWorlds.Core;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
4
|
+
{
|
5
|
+
public abstract class CutsceneSelectionModel : GameModel
|
6
|
+
{
|
7
|
+
public abstract SceneNotificationData GetKingdomDestroyedSceneNotification(Kingdom kingdom);
|
8
|
+
|
9
|
+
protected extern CutsceneSelectionModel();
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Party;
|
2
|
+
using TaleWorlds.Core;
|
3
|
+
|
4
|
+
namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
5
|
+
{
|
6
|
+
public abstract class DelayedTeleportationModel : GameModel
|
7
|
+
{
|
8
|
+
public abstract float DefaultTeleportationSpeed { get; }
|
9
|
+
|
10
|
+
public abstract ExplainedNumber GetTeleportationDelayAsHours(Hero teleportingHero, PartyBase target);
|
11
|
+
|
12
|
+
protected extern DelayedTeleportationModel();
|
13
|
+
}
|
14
|
+
}
|
@@ -19,8 +19,6 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
19
19
|
|
20
20
|
public abstract float GetStrengthThresholdForNonMutualWarsToBeIgnoredToJoinKingdom(Kingdom kingdomToJoin);
|
21
21
|
|
22
|
-
public abstract int GetCharacterSergeantScore(Hero hero);
|
23
|
-
|
24
22
|
public abstract float GetRelationIncreaseFactor(Hero hero1, Hero hero2, float relationValue);
|
25
23
|
|
26
24
|
public abstract int GetInfluenceAwardForSettlementCapturer(Settlement settlement);
|
@@ -89,7 +87,7 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
89
87
|
|
90
88
|
public abstract int GetRelationChangeAfterClanLeaderIsDead(Hero deadLeader, Hero relationHero);
|
91
89
|
|
92
|
-
public abstract int GetRelationChangeAfterVotingInSettlementOwnerPreliminaryDecision(bool hasHeroVotedAgainstOwner);
|
90
|
+
public abstract int GetRelationChangeAfterVotingInSettlementOwnerPreliminaryDecision(Hero supporter, bool hasHeroVotedAgainstOwner);
|
93
91
|
|
94
92
|
public abstract float GetClanStrength(Clan clan);
|
95
93
|
|
@@ -1,4 +1,8 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
1
3
|
using TaleWorlds.CampaignSystem.Party;
|
4
|
+
using TaleWorlds.CampaignSystem.Settlements;
|
5
|
+
using TaleWorlds.CampaignSystem.Siege;
|
2
6
|
using TaleWorlds.Core;
|
3
7
|
|
4
8
|
namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
@@ -17,6 +21,14 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
17
21
|
|
18
22
|
public abstract bool IsEncounterExemptFromHostileActions(PartyBase side1, PartyBase side2);
|
19
23
|
|
24
|
+
public abstract Hero GetLeaderOfSiegeEvent(SiegeEvent siegeEvent, BattleSideEnum side);
|
25
|
+
|
26
|
+
public abstract Hero GetLeaderOfMapEvent(MapEvent mapEvent, BattleSideEnum side);
|
27
|
+
|
28
|
+
public abstract int GetCharacterSergeantScore(Hero hero);
|
29
|
+
|
30
|
+
public abstract IEnumerable<PartyBase> GetDefenderPartiesOfSettlement(Settlement settlement, MapEvent.BattleTypes mapEventType);
|
31
|
+
|
20
32
|
protected extern EncounterModel();
|
21
33
|
}
|
22
34
|
}
|
@@ -6,6 +6,8 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
6
6
|
{
|
7
7
|
public abstract class IssueModel : GameModel
|
8
8
|
{
|
9
|
+
public abstract int IssueOwnerCoolDownInDays { get; }
|
10
|
+
|
9
11
|
public abstract float GetIssueDifficultyMultiplier();
|
10
12
|
|
11
13
|
public abstract void GetIssueEffectsOfSettlement(IssueEffect issueEffect, Settlement settlement, ref ExplainedNumber explainedNumber);
|
@@ -26,6 +26,8 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
26
26
|
|
27
27
|
public abstract bool GetDistance(IMapPoint fromMapPoint, in Vec2 toPoint, float maximumDistance, out float distance);
|
28
28
|
|
29
|
+
public abstract Settlement GetClosestSettlementForNavigationMesh(PathFaceRecord face);
|
30
|
+
|
29
31
|
protected extern MapDistanceModel();
|
30
32
|
}
|
31
33
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Settlements;
|
2
|
+
using TaleWorlds.Core;
|
3
|
+
using TaleWorlds.Localization;
|
4
|
+
|
5
|
+
namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
6
|
+
{
|
7
|
+
public abstract class MapFogOfWarModel : GameModel
|
8
|
+
{
|
9
|
+
public abstract bool GetCanPlayerSeeSettlementValues(Settlement settlement, out TextObject disabledReasonText);
|
10
|
+
|
11
|
+
protected extern MapFogOfWarModel();
|
12
|
+
}
|
13
|
+
}
|
@@ -17,6 +17,12 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
17
17
|
|
18
18
|
public abstract bool IsSuitableForMarriage(Hero hero);
|
19
19
|
|
20
|
+
public abstract bool IsClanSuitableForMarriage(Clan clan);
|
21
|
+
|
22
|
+
public abstract float NpcCoupleMarriageChance(Hero firstHero, Hero secondHero);
|
23
|
+
|
24
|
+
public abstract bool ShouldNpcMarriageBetweenClansBeAllowed(Clan consideringClan, Clan targetClan);
|
25
|
+
|
20
26
|
public abstract List<Hero> GetAdultChildrenSuitableForMarriage(Hero hero);
|
21
27
|
|
22
28
|
protected extern MarriageModel();
|
@@ -7,7 +7,9 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
7
7
|
{
|
8
8
|
public abstract int NumberOfMenOnMapToEatOneFood { get; }
|
9
9
|
|
10
|
-
public abstract ExplainedNumber
|
10
|
+
public abstract ExplainedNumber CalculateDailyBaseFoodConsumptionf(MobileParty party, bool includeDescription = false);
|
11
|
+
|
12
|
+
public abstract ExplainedNumber CalculateDailyFoodConsumptionf(MobileParty party, ExplainedNumber baseConsumption);
|
11
13
|
|
12
14
|
public abstract bool DoesPartyConsumeFood(MobileParty mobileParty);
|
13
15
|
|
@@ -6,10 +6,6 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
6
6
|
{
|
7
7
|
public abstract class PartyFoodBuyingModel : GameModel
|
8
8
|
{
|
9
|
-
public abstract float ArmyMinimumDaysFoodToLastWhileBuyingFoodFromTown { get; }
|
10
|
-
|
11
|
-
public abstract float ArmyMinimumDaysFoodToLastWhileBuyingFoodFromVillage { get; }
|
12
|
-
|
13
9
|
public abstract float MinimumDaysFoodToLastWhileBuyingFoodFromTown { get; }
|
14
10
|
|
15
11
|
public abstract float MinimumDaysFoodToLastWhileBuyingFoodFromVillage { get; }
|
@@ -18,10 +14,6 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
18
14
|
|
19
15
|
public abstract void FindItemToBuy(MobileParty mobileParty, Settlement settlement, out ItemRosterElement itemRosterElement, out float itemElementsPrice);
|
20
16
|
|
21
|
-
public abstract void FindItemToSell(MobileParty mobileParty, Settlement settlement, out ItemRosterElement itemElement, out float itemElementsPrice);
|
22
|
-
|
23
|
-
public abstract ItemObject FindNextFoodCanBeBoughtFromMarketPlace(Settlement settlement, int boughtFoodPreviously);
|
24
|
-
|
25
17
|
protected extern PartyFoodBuyingModel();
|
26
18
|
}
|
27
19
|
}
|
@@ -5,7 +5,7 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
5
5
|
{
|
6
6
|
public abstract class PartyImpairmentModel : GameModel
|
7
7
|
{
|
8
|
-
public abstract float GetDisorganizedStateDuration(MobileParty party
|
8
|
+
public abstract float GetDisorganizedStateDuration(MobileParty party);
|
9
9
|
|
10
10
|
public abstract float GetVulnerabilityStateDuration(PartyBase party);
|
11
11
|
|
@@ -5,7 +5,11 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
5
5
|
{
|
6
6
|
public abstract class PartySpeedModel : GameModel
|
7
7
|
{
|
8
|
-
public abstract
|
8
|
+
public abstract float BaseSpeed { get; }
|
9
|
+
|
10
|
+
public abstract float MinimumSpeed { get; }
|
11
|
+
|
12
|
+
public abstract ExplainedNumber CalculateBaseSpeed(MobileParty party, bool includeDescriptions = false, int additionalTroopOnFootCount = 0, int additionalTroopOnHorseCount = 0);
|
9
13
|
|
10
14
|
public abstract ExplainedNumber CalculateFinalSpeed(MobileParty mobileParty, ExplainedNumber finalSpeed);
|
11
15
|
|
@@ -6,6 +6,8 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
6
6
|
{
|
7
7
|
public abstract class PartyTroopUpgradeModel : GameModel
|
8
8
|
{
|
9
|
+
public abstract int MaxCharacterTier { get; }
|
10
|
+
|
9
11
|
public abstract bool CanPartyUpgradeTroopToTarget(PartyBase party, CharacterObject character, CharacterObject target);
|
10
12
|
|
11
13
|
public abstract bool IsTroopUpgradeable(PartyBase party, CharacterObject character);
|
@@ -22,6 +24,8 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
22
24
|
|
23
25
|
public abstract int GetSkillXpFromUpgradingTroops(PartyBase party, CharacterObject troop, int numberOfTroops);
|
24
26
|
|
27
|
+
public abstract float GetUpgradeChanceForTroopUpgrade(PartyBase party, CharacterObject troop, int upgradeTargetIndex);
|
28
|
+
|
25
29
|
protected extern PartyTroopUpgradeModel();
|
26
30
|
}
|
27
31
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using TaleWorlds.Core;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
4
|
+
{
|
5
|
+
public abstract class PlayerProgressionModel : GameModel
|
6
|
+
{
|
7
|
+
public abstract float GetPlayerProgress();
|
8
|
+
|
9
|
+
protected extern PlayerProgressionModel();
|
10
|
+
}
|
11
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.Party;
|
1
2
|
using TaleWorlds.CampaignSystem.Settlements;
|
2
3
|
using TaleWorlds.Core;
|
3
4
|
|
@@ -5,9 +6,11 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
5
6
|
{
|
6
7
|
public abstract class PrisonerDonationModel : GameModel
|
7
8
|
{
|
8
|
-
public abstract float CalculateRelationGainAfterHeroPrisonerDonate(Hero donatedHero, Settlement donatedSettlement);
|
9
|
+
public abstract float CalculateRelationGainAfterHeroPrisonerDonate(PartyBase donatingParty, Hero donatedHero, Settlement donatedSettlement);
|
9
10
|
|
10
|
-
public abstract float
|
11
|
+
public abstract float CalculateInfluenceGainAfterPrisonerDonation(PartyBase donatingParty, CharacterObject donatedPrisoner, Settlement donatedSettlement);
|
12
|
+
|
13
|
+
public abstract float CalculateInfluenceGainAfterTroopDonation(PartyBase donatingParty, CharacterObject donatedTroop, Settlement donatedSettlement);
|
11
14
|
|
12
15
|
protected extern PrisonerDonationModel();
|
13
16
|
}
|
@@ -78,8 +78,6 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
78
78
|
public PreliminaryActionObligation PreliminaryActionObligation;
|
79
79
|
|
80
80
|
public PreliminaryActionType PreliminaryActionType;
|
81
|
-
|
82
|
-
public bool RequestMeetingAvailable;
|
83
81
|
}
|
84
82
|
|
85
83
|
public abstract void CanMainHeroEnterSettlement(Settlement settlement, out AccessDetails accessDetails);
|
@@ -92,6 +90,8 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
92
90
|
|
93
91
|
public abstract bool CanMainHeroDoSettlementAction(Settlement settlement, SettlementAction settlementAction, out bool disableOption, out TextObject disabledText);
|
94
92
|
|
93
|
+
public abstract bool IsRequestMeetingOptionAvailable(Settlement settlement, out bool disableOption, out TextObject disabledText);
|
94
|
+
|
95
95
|
protected extern SettlementAccessModel();
|
96
96
|
}
|
97
97
|
}
|
@@ -17,6 +17,16 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
17
17
|
|
18
18
|
public abstract int MilitiaBoostPercentage { get; }
|
19
19
|
|
20
|
+
public abstract float HighSecurityLoyaltyEffect { get; }
|
21
|
+
|
22
|
+
public abstract float LowSecurityLoyaltyEffect { get; }
|
23
|
+
|
24
|
+
public abstract float GovernorSameCultureLoyaltyEffect { get; }
|
25
|
+
|
26
|
+
public abstract float GovernorDifferentCultureLoyaltyEffect { get; }
|
27
|
+
|
28
|
+
public abstract float SettlementOwnerDifferentCultureLoyaltyEffect { get; }
|
29
|
+
|
20
30
|
public abstract int ThresholdForTaxBoost { get; }
|
21
31
|
|
22
32
|
public abstract int RebellionStartLoyaltyThreshold { get; }
|
@@ -7,6 +7,8 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
7
7
|
{
|
8
8
|
public abstract float CalculateSettlementValueForFaction(Settlement settlement, IFaction faction);
|
9
9
|
|
10
|
+
public abstract float CalculateSettlementBaseValue(Settlement settlement);
|
11
|
+
|
10
12
|
public abstract float CalculateSettlementValueForEnemyHero(Settlement settlement, Hero hero);
|
11
13
|
|
12
14
|
protected extern SettlementValueModel();
|
@@ -35,11 +35,7 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
35
35
|
|
36
36
|
public abstract int GetEnergyCostForSmelting(ItemObject item, Hero hero);
|
37
37
|
|
38
|
-
public abstract
|
39
|
-
|
40
|
-
public abstract int ResearchPointsNeedForNewPart(int count);
|
41
|
-
|
42
|
-
public abstract float GetProbabalityToOpenPart(CraftingPiece craftingPiece);
|
38
|
+
public abstract float ResearchPointsNeedForNewPart(int totalPartCount, int openedPartCount);
|
43
39
|
|
44
40
|
public abstract int GetPartResearchGainForSmeltingItem(ItemObject item, Hero hero);
|
45
41
|
|
@@ -22,6 +22,8 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
22
22
|
|
23
23
|
public abstract (SkillObject skill, int xp) GetSkillXpGainFromTournament(Town town);
|
24
24
|
|
25
|
+
public abstract Equipment GetParticipantArmor(CharacterObject participant);
|
26
|
+
|
25
27
|
protected extern TournamentModel();
|
26
28
|
}
|
27
29
|
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
3
|
+
using TaleWorlds.CampaignSystem.Roster;
|
4
|
+
using TaleWorlds.Core;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
7
|
+
{
|
8
|
+
public abstract class TroopSupplierProbabilityModel : GameModel
|
9
|
+
{
|
10
|
+
public abstract Dictionary<FlattenedTroopRosterElement, float> GetTroopSpawnProbabilitiesAccordingToUnitSpawnPrioritization(MapEventParty battleParty, FlattenedTroopRoster priorityTroops, bool includePlayers, int sizeOfSide);
|
11
|
+
|
12
|
+
protected extern TroopSupplierProbabilityModel();
|
13
|
+
}
|
14
|
+
}
|
@@ -7,8 +7,6 @@ namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
|
7
7
|
{
|
8
8
|
public abstract float CalculateProductionSpeedOfItemCategory(ItemCategory item);
|
9
9
|
|
10
|
-
public abstract float CalculateProductionSpeedOfItem(ItemObject item);
|
11
|
-
|
12
10
|
public abstract float CalculateDailyProductionAmount(Village village, ItemObject item);
|
13
11
|
|
14
12
|
public abstract float CalculateDailyFoodProductionAmount(Village village);
|
@@ -3,14 +3,16 @@ using TaleWorlds.Core;
|
|
3
3
|
|
4
4
|
namespace TaleWorlds.CampaignSystem.ComponentInterfaces
|
5
5
|
{
|
6
|
-
public abstract class
|
6
|
+
public abstract class VolunteerModel : GameModel
|
7
7
|
{
|
8
|
+
public abstract int MaximumIndexHeroCanRecruitFromHero(Hero buyerHero, Hero sellerHero, int useValueAsRelation = -101);
|
9
|
+
|
8
10
|
public abstract float GetDailyVolunteerProductionProbability(Hero hero, int index, Settlement settlement);
|
9
11
|
|
10
12
|
public abstract CharacterObject GetBasicVolunteer(Hero hero);
|
11
13
|
|
12
14
|
public abstract bool CanHaveRecruits(Hero hero);
|
13
15
|
|
14
|
-
protected extern
|
16
|
+
protected extern VolunteerModel();
|
15
17
|
}
|
16
18
|
}
|
@@ -1,42 +1,17 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.Party;
|
2
|
-
using TaleWorlds.CampaignSystem.Settlements;
|
3
|
-
using TaleWorlds.Localization;
|
4
2
|
|
5
3
|
namespace TaleWorlds.CampaignSystem.Conversation
|
6
4
|
{
|
7
5
|
public static class ConversationHelper
|
8
6
|
{
|
9
|
-
public enum ConversationForm
|
10
|
-
{
|
11
|
-
Casual,
|
12
|
-
Pejorative,
|
13
|
-
Formal
|
14
|
-
}
|
15
|
-
|
16
7
|
public static CharacterObject AskedLord;
|
17
8
|
|
18
|
-
public static Clan AskedFaction;
|
19
|
-
|
20
|
-
public static Settlement AskedSettlement;
|
21
|
-
|
22
|
-
public static int SelectedOption;
|
23
|
-
|
24
|
-
public static int DemandAmount;
|
25
|
-
|
26
|
-
public static bool BypassFemaleVassalExplanation;
|
27
|
-
|
28
9
|
public static bool ConversationTroopCommentShown;
|
29
10
|
|
30
|
-
public static bool TalkPrecedesSurrenderDemand;
|
31
|
-
|
32
|
-
public static bool WillStartTalkWithOwnMan;
|
33
|
-
|
34
|
-
public static extern TextObject CharacterRefersToKingdom(CharacterObject talkTroop, CharacterObject talkingToTroop, IFaction faction, ConversationForm form);
|
35
|
-
|
36
|
-
public static extern TextObject HeroAddressesPlayer(Hero talkTroop);
|
37
|
-
|
38
11
|
public static extern string HeroRefersToHero(Hero talkTroop, Hero referringTo, bool uppercaseFirst);
|
39
12
|
|
13
|
+
public static extern string GetHeroRelationToHeroTextShort(Hero queriedHero, Hero baseHero, bool uppercaseFirst);
|
14
|
+
|
40
15
|
public static extern CharacterObject GetConversationCharacterPartyLeader(PartyBase party);
|
41
16
|
}
|
42
17
|
}
|
@@ -199,7 +199,7 @@ namespace TaleWorlds.CampaignSystem.Conversation
|
|
199
199
|
|
200
200
|
public extern TextObject FindMatchingTextOrNull(string id, CharacterObject character);
|
201
201
|
|
202
|
-
[IteratorStateMachine(typeof(
|
202
|
+
[IteratorStateMachine(typeof(_003CGetApplicableTagNames_003Ed__160))]
|
203
203
|
public extern IEnumerable<string> GetApplicableTagNames(CharacterObject character);
|
204
204
|
|
205
205
|
public extern bool IsTagApplicable(string tagId, CharacterObject character);
|
@@ -1,159 +0,0 @@
|
|
1
|
-
using System.Collections.Generic;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.Conversation
|
4
|
-
{
|
5
|
-
public static class ConversationsCallbacks
|
6
|
-
{
|
7
|
-
public static extern bool conversation_bandit_encounter_talk_1_on_condition();
|
8
|
-
|
9
|
-
public static extern void conversation_bandit_barter_release_player_on_consequence();
|
10
|
-
|
11
|
-
public static extern bool conversation_bandit_encounter_talk_on_condition();
|
12
|
-
|
13
|
-
public static extern bool conversation_bandit_encounter_talk_hostile_on_condition();
|
14
|
-
|
15
|
-
public static extern bool conversation_bandit_encounter_talk_response_1_on_condition();
|
16
|
-
|
17
|
-
public static extern bool conversation_bandit_encounter_talk_response_2_on_condition();
|
18
|
-
|
19
|
-
public static extern void conversation_bandit_encounter_talk_response_2_on_consequence();
|
20
|
-
|
21
|
-
public static extern void conversation_bandit_encounter_talk_join_yes_on_consequence();
|
22
|
-
|
23
|
-
public static extern void conversation_bandit_encounter_talk_join_refused_2_on_consequence();
|
24
|
-
|
25
|
-
public static extern bool conversation_bandit_encounter_talk_hostile_demand_money_on_condition();
|
26
|
-
|
27
|
-
public static extern bool conversation_quest_feedback_quest1_on_condition();
|
28
|
-
|
29
|
-
public static extern bool conversation_companion_leave_begin_on_condition();
|
30
|
-
|
31
|
-
public static extern void conversation_companion_equipment_on_consequence();
|
32
|
-
|
33
|
-
public static extern void conversation_companion_leave_end_on_consequence();
|
34
|
-
|
35
|
-
public static extern void conversation_companion_show_skills_on_consequence();
|
36
|
-
|
37
|
-
public static extern bool conversation_talk_common_to_arena_master_on_condition();
|
38
|
-
|
39
|
-
public static extern bool conversation_talk_common_to_main_on_condition();
|
40
|
-
|
41
|
-
public static extern bool conversation_talk_common_return_to_main_on_condition();
|
42
|
-
|
43
|
-
public static extern void conversation_talk_hostile_surrender_on_consequence();
|
44
|
-
|
45
|
-
public static extern bool conversation_member_chat_auto_continue_on_condition();
|
46
|
-
|
47
|
-
public static extern bool conversation_event_triggered_auto_continue_on_condition();
|
48
|
-
|
49
|
-
public static extern void conversation_lord_attack_verify_cancel_on_consequence();
|
50
|
-
|
51
|
-
public static extern bool conversation_mercenary_recruit_accept_some_on_condition();
|
52
|
-
|
53
|
-
public static extern void conversation_mercenary_recruit_accept_some_on_consequence();
|
54
|
-
|
55
|
-
public static extern bool conversation_mercenary_recruit_reject_gold_on_condition();
|
56
|
-
|
57
|
-
public static extern bool conversation_mercenary_recruit_reject_partysize_on_condition();
|
58
|
-
|
59
|
-
public static extern bool conversation_mercenary_follow_player_on_condition();
|
60
|
-
|
61
|
-
public static extern void conversation_mercenary_follow_player_on_consequence();
|
62
|
-
|
63
|
-
public static extern bool conversation_mercenary_unfollow_player_on_condition();
|
64
|
-
|
65
|
-
public static extern void conversation_mercenary_unfollow_player_on_consequence();
|
66
|
-
|
67
|
-
public static extern bool conversation_lord_enemy_talk_start_on_condition();
|
68
|
-
|
69
|
-
public static extern bool conversation_lord_enemy_talk_peace_offer_on_condition();
|
70
|
-
|
71
|
-
public static extern bool conversation_lord_enemy_talk_peace_accept_on_condition();
|
72
|
-
|
73
|
-
public static extern void conversation_lord_enemy_talk_peace_rejected_on_consequence();
|
74
|
-
|
75
|
-
public static extern bool lord_conversation_cheat_on_condition();
|
76
|
-
|
77
|
-
public static extern void conversation_player_is_accepted_as_a_vassal_on_consequence();
|
78
|
-
|
79
|
-
public static extern bool conversation_lord_ask_pardon_answer_demand_on_condition();
|
80
|
-
|
81
|
-
public static extern bool barter_offer_accept_because_of_friendship_on_condition();
|
82
|
-
|
83
|
-
public static extern bool conversation_lord_ask_pardon_answer_i_am_in_no_position_on_condition();
|
84
|
-
|
85
|
-
public static extern bool conversation_lord_ask_pardon_answer_demand_2_on_condition();
|
86
|
-
|
87
|
-
public static extern void conversation_lord_ask_pardon_answer_demand_on_consequence();
|
88
|
-
|
89
|
-
public static extern void conversation_lord_ask_recruit_answer_demand_on_consequence();
|
90
|
-
|
91
|
-
public static extern bool conversation_i_have_money_for_peace_offer_on_condition();
|
92
|
-
|
93
|
-
public static extern bool conversation_lord_ask_pardon_tribue_accept_faction_owner_on_condition();
|
94
|
-
|
95
|
-
public static extern bool conversation_lord_ask_pardon_tribue_accept_on_condition();
|
96
|
-
|
97
|
-
public static extern void conversation_lord_ask_pardon_tribue_accept_on_consequence();
|
98
|
-
|
99
|
-
public static extern void lord_talk_ask_location_on_consequence();
|
100
|
-
|
101
|
-
public static extern bool conversation_member_chat_on_condition();
|
102
|
-
|
103
|
-
public static extern void conversation_member_chat_tell_me_about_yourself_on_consequence();
|
104
|
-
|
105
|
-
public static extern void conversation_member_chat_leave_on_consequence();
|
106
|
-
|
107
|
-
public static extern bool conversation_do_regular_member_view_char_on_condition();
|
108
|
-
|
109
|
-
public static extern void conversation_encounter_talk_1_on_consequence();
|
110
|
-
|
111
|
-
public static extern void conversation_encounter_talk_2_on_consequence();
|
112
|
-
|
113
|
-
public static extern void conversation_lord_message_delivered_enemy_on_consequence();
|
114
|
-
|
115
|
-
public static extern bool conversation_encounter_talk_on_condition();
|
116
|
-
|
117
|
-
public static extern bool conversation_default_conversation_stub_on_condition();
|
118
|
-
|
119
|
-
public static extern void conversation_2709_on_consequence();
|
120
|
-
|
121
|
-
public static extern bool conversation_spc_start_barter_on_condition();
|
122
|
-
|
123
|
-
public static extern void conversation_spc_start_barter_on_consequence();
|
124
|
-
|
125
|
-
public static extern bool conversation_talk_common_to_lord_liberate_on_condition();
|
126
|
-
|
127
|
-
public static extern bool conversation_player_is_asking_to_recruit_on_condition();
|
128
|
-
|
129
|
-
public static extern void conversation_party_encounter_offer_dont_fight_decision_accept_b_on_consequence();
|
130
|
-
|
131
|
-
public static extern void party_encounter_offer_dont_fight_decision_accept_on_consequence();
|
132
|
-
|
133
|
-
public static extern List<Hero> GetLastKnownLocations(Hero hero);
|
134
|
-
|
135
|
-
public static extern bool conversation_special_character_provoke_on_condition();
|
136
|
-
|
137
|
-
public static extern bool lord_is_in_same_faction_on_condition();
|
138
|
-
|
139
|
-
public static extern void lord_tell_objective_player_answer_besiege_options_on_consequence();
|
140
|
-
|
141
|
-
public static extern void lord_tell_objective_player_answer_raid_options_on_consequence();
|
142
|
-
|
143
|
-
public static extern void lord_tell_objective_player_answer_defend_options_on_consequence();
|
144
|
-
|
145
|
-
public static extern bool lord_tell_objective_player_answer_defend_options_on_condition();
|
146
|
-
|
147
|
-
public static extern bool lord_tell_objective_player_answer_options_on_condition();
|
148
|
-
|
149
|
-
public static extern void lord_tell_objective_player_answer_options_on_consequence();
|
150
|
-
|
151
|
-
public static extern bool lord_tell_objective_player_answer_options_reason_on_condition();
|
152
|
-
|
153
|
-
public static extern bool lord_tell_objective_player_try_to_convince_on_condition();
|
154
|
-
|
155
|
-
public static extern bool lord_tell_objective_player_try_to_convince_lord_answer_on_condition();
|
156
|
-
|
157
|
-
public static extern void lord_tell_objective_player_try_to_convince_lord_answer_on_consequence();
|
158
|
-
}
|
159
|
-
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem.Conversation.Tags
|
2
|
+
{
|
3
|
+
public class PlayerIsKnownButNotFamousTag : ConversationTag
|
4
|
+
{
|
5
|
+
public override string StringId { get; }
|
6
|
+
|
7
|
+
public override extern bool IsApplicableTo(CharacterObject character);
|
8
|
+
|
9
|
+
public extern PlayerIsKnownButNotFamousTag();
|
10
|
+
}
|
11
|
+
}
|
@@ -21,11 +21,11 @@ namespace TaleWorlds.CampaignSystem.CraftingSystem
|
|
21
21
|
[SaveableField(70)]
|
22
22
|
public readonly int DifficultyLevel;
|
23
23
|
|
24
|
-
public bool
|
24
|
+
public bool IsLordOrder { get; }
|
25
25
|
|
26
26
|
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
27
27
|
|
28
|
-
public extern CraftingOrder(Hero orderOwner, float orderDifficulty, WeaponDesign weaponDesignTemplate,
|
28
|
+
public extern CraftingOrder(Hero orderOwner, float orderDifficulty, WeaponDesign weaponDesignTemplate, CraftingTemplate template, int difficultyLevel = -1);
|
29
29
|
|
30
30
|
public extern void InitializeCraftingOrderOnLoad();
|
31
31
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
using System;
|
2
|
+
|
1
3
|
namespace TaleWorlds.CampaignSystem.Encyclopedia
|
2
4
|
{
|
3
5
|
public struct EncyclopediaListItem
|
@@ -12,8 +14,10 @@ namespace TaleWorlds.CampaignSystem.Encyclopedia
|
|
12
14
|
|
13
15
|
public readonly string TypeName;
|
14
16
|
|
15
|
-
public readonly bool
|
17
|
+
public readonly bool PlayerCanSeeValues;
|
18
|
+
|
19
|
+
public readonly Action OnShowTooltip;
|
16
20
|
|
17
|
-
public extern EncyclopediaListItem(object obj, string name, string description, string id, string typeName, bool
|
21
|
+
public extern EncyclopediaListItem(object obj, string name, string description, string id, string typeName, bool playerCanSeeValues, Action onShowTooltip = null);
|
18
22
|
}
|
19
23
|
}
|
@@ -8,6 +8,8 @@ namespace TaleWorlds.CampaignSystem.Encyclopedia
|
|
8
8
|
{
|
9
9
|
protected readonly TextObject _emptyValue;
|
10
10
|
|
11
|
+
protected readonly TextObject _missingValue;
|
12
|
+
|
11
13
|
public bool IsAscending { [CompilerGenerated]
|
12
14
|
get; }
|
13
15
|
|
@@ -10,9 +10,13 @@ namespace TaleWorlds.CampaignSystem.Encyclopedia.Pages
|
|
10
10
|
{
|
11
11
|
public abstract class EncyclopediaListSettlementComparer : EncyclopediaListItemComparerBase
|
12
12
|
{
|
13
|
-
|
13
|
+
protected delegate bool SettlementVisibilityComparerDelegate(Settlement s1, Settlement s2, out int comparisonResult);
|
14
14
|
|
15
|
-
|
15
|
+
protected virtual extern bool CompareVisibility(Settlement s1, Settlement s2, out int comparisonResult);
|
16
|
+
|
17
|
+
protected extern int CompareSettlements(EncyclopediaListItem x, EncyclopediaListItem y, SettlementVisibilityComparerDelegate visibilityComparison, Func<Settlement, Settlement, int> comparison);
|
18
|
+
|
19
|
+
protected extern int CompareFiefs(EncyclopediaListItem x, EncyclopediaListItem y, SettlementVisibilityComparerDelegate visibilityComparison, Func<Town, Town, int> comparison);
|
16
20
|
|
17
21
|
protected extern EncyclopediaListSettlementComparer();
|
18
22
|
}
|
@@ -10,6 +10,12 @@ namespace TaleWorlds.CampaignSystem.Extensions
|
|
10
10
|
|
11
11
|
public static extern IEnumerable<Equipment> GetCivilianEquipments(this MBEquipmentRoster instance);
|
12
12
|
|
13
|
+
public static extern IEnumerable<Equipment> GetBattleEquipments(this MBEquipmentRoster instance);
|
14
|
+
|
13
15
|
public static extern Equipment GetRandomCivilianEquipment(this MBEquipmentRoster instance);
|
16
|
+
|
17
|
+
public static extern bool IsRosterAppropriateForHeroAsTemplate(this MBEquipmentRoster instance, Hero hero, EquipmentFlags customFlags = EquipmentFlags.None, bool shouldMatchGender = false);
|
18
|
+
|
19
|
+
public static extern List<MBEquipmentRoster> GetAppropriateEquipmentRostersForHero(Hero hero, EquipmentFlags customFlags = EquipmentFlags.None, bool shouldMatchGender = false);
|
14
20
|
}
|
15
21
|
}
|
@@ -1,9 +1,36 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
2
|
+
using TaleWorlds.Core;
|
2
3
|
|
3
4
|
namespace TaleWorlds.CampaignSystem.GameComponents
|
4
5
|
{
|
5
6
|
public class DefaultAgeModel : AgeModel
|
6
7
|
{
|
8
|
+
public const string TavernVisitorTag = "TavernVisitor";
|
9
|
+
|
10
|
+
public const string TavernDrinkerTag = "TavernDrinker";
|
11
|
+
|
12
|
+
public const string SlowTownsmanTag = "SlowTownsman";
|
13
|
+
|
14
|
+
public const string TownsfolkCarryingStuffTag = "TownsfolkCarryingStuff";
|
15
|
+
|
16
|
+
public const string BroomsWomanTag = "BroomsWoman";
|
17
|
+
|
18
|
+
public const string DancerTag = "Dancer";
|
19
|
+
|
20
|
+
public const string BeggarTag = "Beggar";
|
21
|
+
|
22
|
+
public const string ChildTag = "Child";
|
23
|
+
|
24
|
+
public const string TeenagerTag = "Teenager";
|
25
|
+
|
26
|
+
public const string InfantTag = "Infant";
|
27
|
+
|
28
|
+
public const string NotaryTag = "Notary";
|
29
|
+
|
30
|
+
public const string BarberTag = "Barber";
|
31
|
+
|
32
|
+
public const string AlleyGangMemberTag = "AlleyGangMember";
|
33
|
+
|
7
34
|
public override int BecomeInfantAge { get; }
|
8
35
|
|
9
36
|
public override int BecomeChildAge { get; }
|
@@ -16,6 +43,10 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
16
43
|
|
17
44
|
public override int MaxAge { get; }
|
18
45
|
|
46
|
+
public override extern void GetAgeLimitForLocation(CharacterObject character, out int minimumAge, out int maximumAge, string additionalTags = "");
|
47
|
+
|
48
|
+
public override extern float GetSkillScalingModifierForAge(Hero hero, SkillObject skill, bool isByNaturalGrowth);
|
49
|
+
|
19
50
|
public extern DefaultAgeModel();
|
20
51
|
}
|
21
52
|
}
|
@@ -22,7 +22,7 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
22
22
|
|
23
23
|
public override extern float GetPartySizeScore(MobileParty party);
|
24
24
|
|
25
|
-
public override extern ExplainedNumber
|
25
|
+
public override extern ExplainedNumber CalculateDailyCohesionChange(Army army, bool includeDescriptions = false);
|
26
26
|
|
27
27
|
public override extern int CalculateNewCohesion(Army army, PartyBase newParty, int calculatedCohesion, int sign);
|
28
28
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Collections.Generic;
|
1
3
|
using TaleWorlds.CampaignSystem.CharacterDevelopment;
|
2
4
|
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
3
5
|
using TaleWorlds.Core;
|
@@ -19,17 +21,17 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
19
21
|
|
20
22
|
public override int FocusPointsAtStart { get; }
|
21
23
|
|
22
|
-
public override int FocusPointCostToOpenSkill { get; }
|
23
|
-
|
24
24
|
public extern DefaultCharacterDevelopmentModel();
|
25
25
|
|
26
|
+
public override extern List<Tuple<SkillObject, int>> GetSkillsDerivedFromTraits(Hero hero, CharacterObject templateCharacter = null, bool isByNaturalGrowth = false);
|
27
|
+
|
26
28
|
public override extern int SkillsRequiredForLevel(int level);
|
27
29
|
|
28
30
|
public override extern int GetMaxSkillPoint();
|
29
31
|
|
30
32
|
public override extern int GetXpRequiredForSkillLevel(int skillLevel);
|
31
33
|
|
32
|
-
public override extern
|
34
|
+
public override extern int GetSkillLevelChange(Hero hero, SkillObject skill, float skillXp);
|
33
35
|
|
34
36
|
public override extern int GetXpAmountForSkillLevelChange(Hero hero, SkillObject skill, int skillLevelChange);
|
35
37
|
|
@@ -37,10 +39,6 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
37
39
|
|
38
40
|
public override extern int GetTraitXpRequiredForTraitLevel(TraitObject trait, int traitLevel);
|
39
41
|
|
40
|
-
public override extern void GetInitialSkillXpForCharacter(Hero hero, SkillObject skill, out int initialSkillXp);
|
41
|
-
|
42
|
-
public override extern int GetDevelopmentPointNeededToChangeTrait(float traitValue);
|
43
|
-
|
44
42
|
public override extern ExplainedNumber CalculateLearningLimit(int attributeValue, int focusValue, TextObject attributeName, bool includeDescriptions = false);
|
45
43
|
|
46
44
|
public override extern float CalculateLearningRate(Hero hero, SkillObject skill);
|
@@ -5,6 +5,8 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
5
5
|
{
|
6
6
|
public class DefaultClanPoliticsModel : ClanPoliticsModel
|
7
7
|
{
|
8
|
+
public override int EmissaryRelationBonusForMainClan { get; }
|
9
|
+
|
8
10
|
public override extern ExplainedNumber CalculateInfluenceChange(Clan clan, bool includeDescriptions = false);
|
9
11
|
|
10
12
|
public override extern float CalculateSupportForPolicyInClan(Clan clan, PolicyObject policy);
|
@@ -20,8 +20,6 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
20
20
|
|
21
21
|
public override extern float GetMinAcceptableCrimeRating(IFaction faction);
|
22
22
|
|
23
|
-
public override extern float GetCrimeRatingOf(CrimeType crime, params object[] additionalArgs);
|
24
|
-
|
25
23
|
public extern DefaultCrimeModel();
|
26
24
|
}
|
27
25
|
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
2
|
+
using TaleWorlds.Core;
|
3
|
+
|
4
|
+
namespace TaleWorlds.CampaignSystem.GameComponents
|
5
|
+
{
|
6
|
+
public class DefaultCutsceneSelectionModel : CutsceneSelectionModel
|
7
|
+
{
|
8
|
+
public override extern SceneNotificationData GetKingdomDestroyedSceneNotification(Kingdom kingdom);
|
9
|
+
|
10
|
+
public extern DefaultCutsceneSelectionModel();
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
2
|
+
using TaleWorlds.CampaignSystem.Party;
|
3
|
+
|
4
|
+
namespace TaleWorlds.CampaignSystem.GameComponents
|
5
|
+
{
|
6
|
+
public class DefaultDelayedTeleportationModel : DelayedTeleportationModel
|
7
|
+
{
|
8
|
+
public override float DefaultTeleportationSpeed { get; }
|
9
|
+
|
10
|
+
public override extern ExplainedNumber GetTeleportationDelayAsHours(Hero teleportingHero, PartyBase target);
|
11
|
+
|
12
|
+
public extern DefaultDelayedTeleportationModel();
|
13
|
+
}
|
14
|
+
}
|
@@ -19,8 +19,6 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
19
19
|
|
20
20
|
public override extern float GetStrengthThresholdForNonMutualWarsToBeIgnoredToJoinKingdom(Kingdom kingdomToJoin);
|
21
21
|
|
22
|
-
public override extern int GetCharacterSergeantScore(Hero hero);
|
23
|
-
|
24
22
|
public override extern float GetClanStrength(Clan clan);
|
25
23
|
|
26
24
|
public override extern float GetHeroCommandingStrengthForClan(Hero hero);
|
@@ -95,7 +93,7 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
95
93
|
|
96
94
|
public override extern int GetRelationChangeAfterClanLeaderIsDead(Hero deadLeader, Hero relationHero);
|
97
95
|
|
98
|
-
public override extern int GetRelationChangeAfterVotingInSettlementOwnerPreliminaryDecision(bool hasHeroVotedAgainstOwner);
|
96
|
+
public override extern int GetRelationChangeAfterVotingInSettlementOwnerPreliminaryDecision(Hero supporter, bool hasHeroVotedAgainstOwner);
|
99
97
|
|
100
98
|
public override extern int GetCharmExperienceFromRelationGain(Hero hero, float relationChange, ChangeRelationAction.ChangeRelationDetail detail);
|
101
99
|
|
@@ -1,5 +1,10 @@
|
|
1
|
+
using System.Collections.Generic;
|
1
2
|
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
3
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
2
4
|
using TaleWorlds.CampaignSystem.Party;
|
5
|
+
using TaleWorlds.CampaignSystem.Settlements;
|
6
|
+
using TaleWorlds.CampaignSystem.Siege;
|
7
|
+
using TaleWorlds.Core;
|
3
8
|
|
4
9
|
namespace TaleWorlds.CampaignSystem.GameComponents
|
5
10
|
{
|
@@ -17,6 +22,14 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
17
22
|
|
18
23
|
public override extern bool IsEncounterExemptFromHostileActions(PartyBase side1, PartyBase side2);
|
19
24
|
|
25
|
+
public override extern Hero GetLeaderOfSiegeEvent(SiegeEvent siegeEvent, BattleSideEnum side);
|
26
|
+
|
27
|
+
public override extern Hero GetLeaderOfMapEvent(MapEvent mapEvent, BattleSideEnum side);
|
28
|
+
|
29
|
+
public override extern int GetCharacterSergeantScore(Hero hero);
|
30
|
+
|
31
|
+
public override extern IEnumerable<PartyBase> GetDefenderPartiesOfSettlement(Settlement settlement, MapEvent.BattleTypes mapEventType);
|
32
|
+
|
20
33
|
public extern DefaultEncounterModel();
|
21
34
|
}
|
22
35
|
}
|
@@ -7,6 +7,8 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
7
7
|
{
|
8
8
|
public class DefaultIssueModel : IssueModel
|
9
9
|
{
|
10
|
+
public override int IssueOwnerCoolDownInDays { get; }
|
11
|
+
|
10
12
|
public override extern float GetIssueDifficultyMultiplier();
|
11
13
|
|
12
14
|
public override extern void GetIssueEffectsOfSettlement(IssueEffect issueEffect, Settlement settlement, ref ExplainedNumber explainedNumber);
|
@@ -32,6 +32,8 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
32
32
|
|
33
33
|
public override extern bool GetDistance(IMapPoint fromMapPoint, in Vec2 toPoint, float maximumDistance, out float distance);
|
34
34
|
|
35
|
+
public override extern Settlement GetClosestSettlementForNavigationMesh(PathFaceRecord face);
|
36
|
+
|
35
37
|
public extern DefaultMapDistanceModel();
|
36
38
|
}
|
37
39
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
2
|
+
using TaleWorlds.CampaignSystem.Settlements;
|
3
|
+
using TaleWorlds.Localization;
|
4
|
+
|
5
|
+
namespace TaleWorlds.CampaignSystem.GameComponents
|
6
|
+
{
|
7
|
+
public class DefaultMapFogOfWarModel : MapFogOfWarModel
|
8
|
+
{
|
9
|
+
public override extern bool GetCanPlayerSeeSettlementValues(Settlement settlement, out TextObject disabledReasonText);
|
10
|
+
|
11
|
+
public extern DefaultMapFogOfWarModel();
|
12
|
+
}
|
13
|
+
}
|
@@ -11,6 +11,12 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
11
11
|
|
12
12
|
public override extern bool IsCoupleSuitableForMarriage(Hero firstHero, Hero secondHero);
|
13
13
|
|
14
|
+
public override extern bool IsClanSuitableForMarriage(Clan clan);
|
15
|
+
|
16
|
+
public override extern float NpcCoupleMarriageChance(Hero firstHero, Hero secondHero);
|
17
|
+
|
18
|
+
public override extern bool ShouldNpcMarriageBetweenClansBeAllowed(Clan consideringClan, Clan targetClan);
|
19
|
+
|
14
20
|
public override extern List<Hero> GetAdultChildrenSuitableForMarriage(Hero hero);
|
15
21
|
|
16
22
|
public override extern int GetEffectiveRelationIncrease(Hero firstHero, Hero secondHero);
|
@@ -7,7 +7,9 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
7
7
|
{
|
8
8
|
public override int NumberOfMenOnMapToEatOneFood { get; }
|
9
9
|
|
10
|
-
public override extern ExplainedNumber
|
10
|
+
public override extern ExplainedNumber CalculateDailyBaseFoodConsumptionf(MobileParty party, bool includeDescription = false);
|
11
|
+
|
12
|
+
public override extern ExplainedNumber CalculateDailyFoodConsumptionf(MobileParty party, ExplainedNumber baseConsumption);
|
11
13
|
|
12
14
|
public override extern bool DoesPartyConsumeFood(MobileParty mobileParty);
|
13
15
|
|
@@ -7,10 +7,6 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
7
7
|
{
|
8
8
|
public class DefaultPartyFoodBuyingModel : PartyFoodBuyingModel
|
9
9
|
{
|
10
|
-
public override float ArmyMinimumDaysFoodToLastWhileBuyingFoodFromTown { get; }
|
11
|
-
|
12
|
-
public override float ArmyMinimumDaysFoodToLastWhileBuyingFoodFromVillage { get; }
|
13
|
-
|
14
10
|
public override float MinimumDaysFoodToLastWhileBuyingFoodFromTown { get; }
|
15
11
|
|
16
12
|
public override float MinimumDaysFoodToLastWhileBuyingFoodFromVillage { get; }
|
@@ -19,10 +15,6 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
19
15
|
|
20
16
|
public override extern void FindItemToBuy(MobileParty mobileParty, Settlement settlement, out ItemRosterElement itemElement, out float itemElementsPrice);
|
21
17
|
|
22
|
-
public override extern void FindItemToSell(MobileParty mobileParty, Settlement settlement, out ItemRosterElement itemElement, out float itemElementsPrice);
|
23
|
-
|
24
|
-
public override extern ItemObject FindNextFoodCanBeBoughtFromMarketPlace(Settlement settlement, int boughtFoodPreviously);
|
25
|
-
|
26
18
|
public extern DefaultPartyFoodBuyingModel();
|
27
19
|
}
|
28
20
|
}
|
@@ -7,7 +7,7 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
7
7
|
{
|
8
8
|
public override extern float GetSiegeExpectedVulnerabilityTime();
|
9
9
|
|
10
|
-
public override extern float GetDisorganizedStateDuration(MobileParty party
|
10
|
+
public override extern float GetDisorganizedStateDuration(MobileParty party);
|
11
11
|
|
12
12
|
public override extern float GetVulnerabilityStateDuration(PartyBase party);
|
13
13
|
|
@@ -5,7 +5,11 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
5
5
|
{
|
6
6
|
public class DefaultPartySpeedCalculatingModel : PartySpeedModel
|
7
7
|
{
|
8
|
-
public override
|
8
|
+
public override float BaseSpeed { get; }
|
9
|
+
|
10
|
+
public override float MinimumSpeed { get; }
|
11
|
+
|
12
|
+
public override extern ExplainedNumber CalculateBaseSpeed(MobileParty mobileParty, bool includeDescriptions = false, int additionalTroopOnFootCount = 0, int additionalTroopOnHorseCount = 0);
|
9
13
|
|
10
14
|
public override extern ExplainedNumber CalculateFinalSpeed(MobileParty mobileParty, ExplainedNumber finalSpeed);
|
11
15
|
|
@@ -6,6 +6,8 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
6
6
|
{
|
7
7
|
public class DefaultPartyTroopUpgradeModel : PartyTroopUpgradeModel
|
8
8
|
{
|
9
|
+
public override int MaxCharacterTier { get; }
|
10
|
+
|
9
11
|
public override extern bool CanPartyUpgradeTroopToTarget(PartyBase upgradingParty, CharacterObject upgradeableCharacter, CharacterObject upgradeTarget);
|
10
12
|
|
11
13
|
public override extern bool IsTroopUpgradeable(PartyBase party, CharacterObject character);
|
@@ -22,6 +24,8 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
22
24
|
|
23
25
|
public override extern bool CanTroopGainXp(PartyBase owner, CharacterObject character);
|
24
26
|
|
27
|
+
public override extern float GetUpgradeChanceForTroopUpgrade(PartyBase party, CharacterObject troop, int upgradeTargetIndex);
|
28
|
+
|
25
29
|
public extern DefaultPartyTroopUpgradeModel();
|
26
30
|
}
|
27
31
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.GameComponents
|
4
|
+
{
|
5
|
+
public class DefaultPlayerProgressionModel : PlayerProgressionModel
|
6
|
+
{
|
7
|
+
public override extern float GetPlayerProgress();
|
8
|
+
|
9
|
+
public extern DefaultPlayerProgressionModel();
|
10
|
+
}
|
11
|
+
}
|
@@ -1,13 +1,16 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
2
|
+
using TaleWorlds.CampaignSystem.Party;
|
2
3
|
using TaleWorlds.CampaignSystem.Settlements;
|
3
4
|
|
4
5
|
namespace TaleWorlds.CampaignSystem.GameComponents
|
5
6
|
{
|
6
7
|
public class DefaultPrisonerDonationModel : PrisonerDonationModel
|
7
8
|
{
|
8
|
-
public override extern float CalculateRelationGainAfterHeroPrisonerDonate(Hero
|
9
|
+
public override extern float CalculateRelationGainAfterHeroPrisonerDonate(PartyBase donatingParty, Hero donatedHero, Settlement donatedSettlement);
|
9
10
|
|
10
|
-
public override extern float
|
11
|
+
public override extern float CalculateInfluenceGainAfterPrisonerDonation(PartyBase donatingParty, CharacterObject character, Settlement donatedSettlement);
|
12
|
+
|
13
|
+
public override extern float CalculateInfluenceGainAfterTroopDonation(PartyBase donatingParty, CharacterObject donatedCharacter, Settlement donatedSettlement);
|
11
14
|
|
12
15
|
public extern DefaultPrisonerDonationModel();
|
13
16
|
}
|
@@ -14,6 +14,8 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
14
14
|
|
15
15
|
public override extern bool CanMainHeroAccessLocation(Settlement settlement, string locationId, out bool disableOption, out TextObject disabledText);
|
16
16
|
|
17
|
+
public override extern bool IsRequestMeetingOptionAvailable(Settlement settlement, out bool disableOption, out TextObject disabledText);
|
18
|
+
|
17
19
|
public override extern bool CanMainHeroDoSettlementAction(Settlement settlement, SettlementAction settlementAction, out bool disableOption, out TextObject disabledText);
|
18
20
|
|
19
21
|
public extern DefaultSettlementAccessModel();
|
@@ -41,6 +41,16 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
41
41
|
|
42
42
|
public override int LoyaltyDriftMedium { get; }
|
43
43
|
|
44
|
+
public override float HighSecurityLoyaltyEffect { get; }
|
45
|
+
|
46
|
+
public override float LowSecurityLoyaltyEffect { get; }
|
47
|
+
|
48
|
+
public override float GovernorSameCultureLoyaltyEffect { get; }
|
49
|
+
|
50
|
+
public override float GovernorDifferentCultureLoyaltyEffect { get; }
|
51
|
+
|
52
|
+
public override float SettlementOwnerDifferentCultureLoyaltyEffect { get; }
|
53
|
+
|
44
54
|
public override extern ExplainedNumber CalculateLoyaltyChange(Town town, bool includeDescriptions = false);
|
45
55
|
|
46
56
|
public override extern void CalculateGoldGainDueToHighLoyalty(Town town, ref ExplainedNumber explainedNumber);
|
@@ -5,6 +5,8 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
5
5
|
{
|
6
6
|
public class DefaultSettlementValueModel : SettlementValueModel
|
7
7
|
{
|
8
|
+
public override extern float CalculateSettlementBaseValue(Settlement settlement);
|
9
|
+
|
8
10
|
public override extern float CalculateSettlementValueForFaction(Settlement settlement, IFaction faction);
|
9
11
|
|
10
12
|
public override extern float CalculateSettlementValueForEnemyHero(Settlement settlement, Hero hero);
|
@@ -38,11 +38,7 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
38
38
|
|
39
39
|
public override extern int[] GetSmithingCostsForWeaponDesign(WeaponDesign weaponDesign);
|
40
40
|
|
41
|
-
public override extern
|
42
|
-
|
43
|
-
public override extern int ResearchPointsNeedForNewPart(int count);
|
44
|
-
|
45
|
-
public override extern float GetProbabalityToOpenPart(CraftingPiece craftingPiece);
|
41
|
+
public override extern float ResearchPointsNeedForNewPart(int totalPartCount, int openedPartCount);
|
46
42
|
|
47
43
|
public override extern int GetPartResearchGainForSmeltingItem(ItemObject item, Hero hero);
|
48
44
|
|
@@ -23,6 +23,8 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
23
23
|
|
24
24
|
public override extern (SkillObject skill, int xp) GetSkillXpGainFromTournament(Town town);
|
25
25
|
|
26
|
+
public override extern Equipment GetParticipantArmor(CharacterObject participant);
|
27
|
+
|
26
28
|
public extern DefaultTournamentModel();
|
27
29
|
}
|
28
30
|
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using TaleWorlds.CampaignSystem.ComponentInterfaces;
|
3
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
4
|
+
using TaleWorlds.CampaignSystem.Roster;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.GameComponents
|
7
|
+
{
|
8
|
+
public class DefaultTroopSupplierProbabilityModel : TroopSupplierProbabilityModel
|
9
|
+
{
|
10
|
+
public override extern Dictionary<FlattenedTroopRosterElement, float> GetTroopSpawnProbabilitiesAccordingToUnitSpawnPrioritization(MapEventParty battleParty, FlattenedTroopRoster priorityTroops, bool includePlayers, int sizeOfSide);
|
11
|
+
|
12
|
+
public extern DefaultTroopSupplierProbabilityModel();
|
13
|
+
}
|
14
|
+
}
|
@@ -6,8 +6,6 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
6
6
|
{
|
7
7
|
public class DefaultVillageProductionCalculatorModel : VillageProductionCalculatorModel
|
8
8
|
{
|
9
|
-
public override extern float CalculateProductionSpeedOfItem(ItemObject item);
|
10
|
-
|
11
9
|
public override extern float CalculateDailyProductionAmount(Village village, ItemObject item);
|
12
10
|
|
13
11
|
public override extern float CalculateDailyFoodProductionAmount(Village village);
|
@@ -3,14 +3,16 @@ using TaleWorlds.CampaignSystem.Settlements;
|
|
3
3
|
|
4
4
|
namespace TaleWorlds.CampaignSystem.GameComponents
|
5
5
|
{
|
6
|
-
public class
|
6
|
+
public class DefaultVolunteerModel : VolunteerModel
|
7
7
|
{
|
8
|
+
public override extern int MaximumIndexHeroCanRecruitFromHero(Hero buyerHero, Hero sellerHero, int useValueAsRelation = -101);
|
9
|
+
|
8
10
|
public override extern float GetDailyVolunteerProductionProbability(Hero hero, int index, Settlement settlement);
|
9
11
|
|
10
12
|
public override extern CharacterObject GetBasicVolunteer(Hero sellerHero);
|
11
13
|
|
12
14
|
public override extern bool CanHaveRecruits(Hero hero);
|
13
15
|
|
14
|
-
public extern
|
16
|
+
public extern DefaultVolunteerModel();
|
15
17
|
}
|
16
18
|
}
|
@@ -6,14 +6,16 @@ namespace TaleWorlds.CampaignSystem.GameComponents
|
|
6
6
|
{
|
7
7
|
public override extern float CalculateHorseArcheryFactor(BasicCharacterObject characterObject);
|
8
8
|
|
9
|
-
public override extern float CalculateStrikeMagnitudeForSwing(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float swingSpeed, float impactPointAsPercent, float weaponWeight, float weaponLength, float weaponInertia, float weaponCoM, float extraLinearSpeed, bool doesAttackerHaveMount
|
9
|
+
public override extern float CalculateStrikeMagnitudeForSwing(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float swingSpeed, float impactPointAsPercent, float weaponWeight, WeaponComponentData weaponUsageComponent, float weaponLength, float weaponInertia, float weaponCoM, float extraLinearSpeed, bool doesAttackerHaveMount);
|
10
10
|
|
11
|
-
public override extern float CalculateStrikeMagnitudeForThrust(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float thrustWeaponSpeed, float weaponWeight, float extraLinearSpeed, bool doesAttackerHaveMount,
|
11
|
+
public override extern float CalculateStrikeMagnitudeForThrust(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float thrustWeaponSpeed, float weaponWeight, WeaponComponentData weaponUsageComponent, float extraLinearSpeed, bool doesAttackerHaveMount, bool isThrown = false);
|
12
12
|
|
13
13
|
public override extern float CalculateSpeedBonusMultiplierForMissile(BasicCharacterObject attackerCharacter, WeaponClass ammoClass);
|
14
14
|
|
15
15
|
public override extern float ComputeRawDamage(DamageTypes damageType, float magnitude, float armorEffectiveness, float absorbedDamageRatio);
|
16
16
|
|
17
|
+
public override extern float GetBluntDamageFactorByDamageType(DamageTypes damageType);
|
18
|
+
|
17
19
|
public override extern float CalculateAdjustedArmorForBlow(float baseArmor, BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, BasicCharacterObject victimCharacter, BasicCharacterObject victimCaptainCharacter, WeaponComponentData weaponComponent);
|
18
20
|
|
19
21
|
public extern SandboxStrikeMagnitudeModel();
|
@@ -1,7 +1,5 @@
|
|
1
|
-
using System;
|
2
1
|
using System.Collections.Generic;
|
3
2
|
using System.Runtime.CompilerServices;
|
4
|
-
using System.Xml;
|
5
3
|
using TaleWorlds.CampaignSystem.GameState;
|
6
4
|
using TaleWorlds.CampaignSystem.Overlay;
|
7
5
|
using TaleWorlds.Core;
|
@@ -34,9 +32,6 @@ namespace TaleWorlds.CampaignSystem.GameMenus
|
|
34
32
|
public MenuAndOptionType Type { [CompilerGenerated]
|
35
33
|
get; }
|
36
34
|
|
37
|
-
public int Index { [CompilerGenerated]
|
38
|
-
get; }
|
39
|
-
|
40
35
|
public string StringId { [CompilerGenerated]
|
41
36
|
get; }
|
42
37
|
|
@@ -49,6 +44,9 @@ namespace TaleWorlds.CampaignSystem.GameMenus
|
|
49
44
|
public GameOverlays.MenuOverlayType OverlayType { [CompilerGenerated]
|
50
45
|
get; }
|
51
46
|
|
47
|
+
public bool IsReady { [CompilerGenerated]
|
48
|
+
get; }
|
49
|
+
|
52
50
|
public int MenuItemAmount { get; }
|
53
51
|
|
54
52
|
public object CurrentRepeatableObject { get; }
|
@@ -125,8 +123,6 @@ namespace TaleWorlds.CampaignSystem.GameMenus
|
|
125
123
|
|
126
124
|
public extern TextObject GetText();
|
127
125
|
|
128
|
-
public extern void Deserialize(XmlNode node, Type typeOfGameMenusCallbacks);
|
129
|
-
|
130
126
|
public static extern void ActivateGameMenu(string menuId);
|
131
127
|
|
132
128
|
public static extern void SwitchToMenu(string menuId);
|
@@ -1,6 +1,5 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
-
using System.Xml;
|
4
3
|
using TaleWorlds.CampaignSystem.GameState;
|
5
4
|
using TaleWorlds.Core;
|
6
5
|
using TaleWorlds.Localization;
|
@@ -50,8 +49,9 @@ namespace TaleWorlds.CampaignSystem.GameMenus
|
|
50
49
|
None = 0x0,
|
51
50
|
AvailableIssue = 0x1,
|
52
51
|
ActiveIssue = 0x2,
|
53
|
-
|
54
|
-
|
52
|
+
ActiveStoryQuest = 0x4,
|
53
|
+
TrackedIssue = 0x8,
|
54
|
+
TrackedStoryQuest = 0x10
|
55
55
|
}
|
56
56
|
|
57
57
|
public OnConditionDelegate OnCondition;
|
@@ -100,7 +100,5 @@ namespace TaleWorlds.CampaignSystem.GameMenus
|
|
100
100
|
public extern void RunConsequence(MenuContext menuContext);
|
101
101
|
|
102
102
|
public extern void SetEnable(bool isEnable);
|
103
|
-
|
104
|
-
public extern void Deserialize(XmlNode node, Type typeOfGameMenusCallbacks);
|
105
103
|
}
|
106
104
|
}
|
@@ -1,237 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.CampaignSystem.GameMenus
|
2
|
-
{
|
3
|
-
public class GameMenusCallbacks
|
4
|
-
{
|
5
|
-
public static extern void game_menu_new_game_begin_go_back_on_consequence(MenuCallbackArgs args);
|
6
|
-
|
7
|
-
public static extern void game_menu_new_game_begin_2_continue_on_consequence(MenuCallbackArgs args);
|
8
|
-
|
9
|
-
public static extern void game_menu_new_game_begin_2_go_back_on_consequence(MenuCallbackArgs args);
|
10
|
-
|
11
|
-
public static extern void game_menu_new_game_begin_3_auto_continue_on_consequence(MenuCallbackArgs args);
|
12
|
-
|
13
|
-
public static extern void game_menu_reports_mno_resume_travelling_on_consequence(MenuCallbackArgs args);
|
14
|
-
|
15
|
-
public static extern bool game_menu_war_continue_on_condition(MenuCallbackArgs args);
|
16
|
-
|
17
|
-
public static extern void game_menu_war_continue_on_consequence(MenuCallbackArgs args);
|
18
|
-
|
19
|
-
public static extern void game_menu_town_divide_triangles_on_consequence(MenuCallbackArgs args);
|
20
|
-
|
21
|
-
public static extern void game_menu_show_products_on_consequence(MenuCallbackArgs args);
|
22
|
-
|
23
|
-
public static extern void game_menu_town_town_assault_on_consequence(MenuCallbackArgs args);
|
24
|
-
|
25
|
-
public static extern void mno_sneak_caught_surrender_on_consequence(MenuCallbackArgs args);
|
26
|
-
|
27
|
-
public static extern bool mno_sneak_caught_surrender_on_condition(MenuCallbackArgs args);
|
28
|
-
|
29
|
-
public static extern void game_menu_start_duel_on_consequence(MenuCallbackArgs args);
|
30
|
-
|
31
|
-
public static extern void game_menu_town_menu_on_init(MenuCallbackArgs args);
|
32
|
-
|
33
|
-
public static extern void game_menu_siege_split_leave_siege_on_consequence(MenuCallbackArgs args);
|
34
|
-
|
35
|
-
public static extern void game_menu_camp_custom_battle_on_consequence(MenuCallbackArgs args);
|
36
|
-
|
37
|
-
public static extern void game_menu_custom_battle_end_continue_on_consequence(MenuCallbackArgs args);
|
38
|
-
|
39
|
-
public static extern void game_menu_camp_cheat_talk_chars_on_init(MenuCallbackArgs args);
|
40
|
-
|
41
|
-
public static extern bool game_menu_camp_cheat_talk_chars_item_on_condition(MenuCallbackArgs args);
|
42
|
-
|
43
|
-
public static extern void game_menu_camp_cheat_talk_chars_item_on_consequence(MenuCallbackArgs args);
|
44
|
-
|
45
|
-
public static extern void game_menu_camp_cheat_give_town_to_faction_select_town_on_consequence(MenuCallbackArgs args);
|
46
|
-
|
47
|
-
public static extern void game_menu_menu_camp_cheat_create_faction_army_item_on_consequence(MenuCallbackArgs args);
|
48
|
-
|
49
|
-
public static extern void game_menu_camp_cheat_give_town_to_faction_select_faction_on_consequence(MenuCallbackArgs args);
|
50
|
-
|
51
|
-
public static extern void game_menu_camp_action_on_consequence(MenuCallbackArgs args);
|
52
|
-
|
53
|
-
public static extern void game_menu_camp_wait_here_on_consequence(MenuCallbackArgs args);
|
54
|
-
|
55
|
-
public static extern void game_menu_camp_cheat_on_consequence(MenuCallbackArgs args);
|
56
|
-
|
57
|
-
public static extern void game_menu_encyclopedia_on_consequence(MenuCallbackArgs args);
|
58
|
-
|
59
|
-
public static extern void game_menu_camp_resume_travelling_on_consequence(MenuCallbackArgs args);
|
60
|
-
|
61
|
-
public static extern bool game_menu_encounter_join_siege_party_on_condition(MenuCallbackArgs args);
|
62
|
-
|
63
|
-
public static extern bool game_menu_encounter_talk_with_lord_on_condition(MenuCallbackArgs args);
|
64
|
-
|
65
|
-
public static extern void game_menu_encounter_talk_with_lord_on_consequence(MenuCallbackArgs args);
|
66
|
-
|
67
|
-
public static extern bool game_menu_encounter_sneak_on_condition(MenuCallbackArgs args);
|
68
|
-
|
69
|
-
public static extern void game_menu_siege_encounter_attack_on_consequence(MenuCallbackArgs args);
|
70
|
-
|
71
|
-
public static extern void game_menu_encounter_sneak_on_consequence(MenuCallbackArgs args);
|
72
|
-
|
73
|
-
public static extern void game_menu_battle_ended_win_continue_on_consequence(MenuCallbackArgs args);
|
74
|
-
|
75
|
-
public static extern void game_menu_minor_faction_base_on_init(MenuCallbackArgs args);
|
76
|
-
|
77
|
-
public static extern bool talk_with_minor_faction_leader_on_condition(MenuCallbackArgs args);
|
78
|
-
|
79
|
-
public static extern void talk_with_minor_faction_leader_on_consequence(MenuCallbackArgs args);
|
80
|
-
|
81
|
-
public static extern void game_menu_minor_faction_base_on_consequence(MenuCallbackArgs args);
|
82
|
-
|
83
|
-
public static extern void game_menu_encounter_win_on_consequence(MenuCallbackArgs args);
|
84
|
-
|
85
|
-
public static extern void game_menu_encounter_win_continue_on_consequence(MenuCallbackArgs args);
|
86
|
-
|
87
|
-
public static extern bool game_menu_taken_prisoner_on_condition(MenuCallbackArgs args);
|
88
|
-
|
89
|
-
public static extern void game_menu_join_order_attack_continue_on_consequence(MenuCallbackArgs args);
|
90
|
-
|
91
|
-
public static extern void game_menu_battle_retreat_continue_on_consequence(MenuCallbackArgs args);
|
92
|
-
|
93
|
-
public static extern void game_request_entry_approved_continue_on_consequence(MenuCallbackArgs args);
|
94
|
-
|
95
|
-
public static extern void game_request_entry_to_castle_approved_continue_on_consequence(MenuCallbackArgs args);
|
96
|
-
|
97
|
-
public static extern bool game_request_entry_to_castle_approved_continue_on_condition(MenuCallbackArgs args);
|
98
|
-
|
99
|
-
public static extern void game_request_entry_rejected_continue_on_consequence(MenuCallbackArgs args);
|
100
|
-
|
101
|
-
public static extern void game_request_entry_to_castle_rejected_continue_on_consequence(MenuCallbackArgs args);
|
102
|
-
|
103
|
-
public static extern void menu_sneak_into_town_succeeded_continue_on_consequence(MenuCallbackArgs args);
|
104
|
-
|
105
|
-
public static extern bool menu_sneak_into_town_succeeded_continue_on_condition(MenuCallbackArgs args);
|
106
|
-
|
107
|
-
public static extern void game_menu_sneak_into_town_caught_on_init(MenuCallbackArgs args);
|
108
|
-
|
109
|
-
public static extern void conversation_sneak_caught_fight_on_consequence(MenuCallbackArgs args);
|
110
|
-
|
111
|
-
public static extern void mno_continue_sneak_into_town_caught_dispersed_guards_on_consequence(MenuCallbackArgs args);
|
112
|
-
|
113
|
-
public static extern void game_menu_town_stealth_on_init(MenuCallbackArgs args);
|
114
|
-
|
115
|
-
public static extern void game_menu_captivity_castle_taken_prisoner_cont_on_consequence(MenuCallbackArgs args);
|
116
|
-
|
117
|
-
public static extern bool game_menu_captivity_castle_taken_prisoner_cont_on_condition(MenuCallbackArgs args);
|
118
|
-
|
119
|
-
public static extern void game_menu_successfully_escaped_cont_on_consequence(MenuCallbackArgs args);
|
120
|
-
|
121
|
-
public static extern void game_menu_captivity_taken_prisoner_cheat_on_consequence(MenuCallbackArgs args);
|
122
|
-
|
123
|
-
public static extern bool game_menu_captivity_taken_prisoner_cheat_on_condition(MenuCallbackArgs args);
|
124
|
-
|
125
|
-
public static extern void menu_captivity_castle_remain_cont_on_consequence(MenuCallbackArgs args);
|
126
|
-
|
127
|
-
public static extern void game_menu_menu_lord_relations_on_consequence(MenuCallbackArgs args);
|
128
|
-
|
129
|
-
public static extern void game_menu_marketplace_marketplace_trade_on_consequence(MenuCallbackArgs args);
|
130
|
-
|
131
|
-
public static extern void game_menu_marketplace_leave_marketplace_on_consequence(MenuCallbackArgs args);
|
132
|
-
|
133
|
-
public static extern void game_menu_town_wait_go_back_on_consequence(MenuCallbackArgs args);
|
134
|
-
|
135
|
-
public static extern void game_menu_village_steal_cattle_confirm_forget_it_on_consequence(MenuCallbackArgs args);
|
136
|
-
|
137
|
-
public static extern void game_menu_village_loot_no_resist_leave_on_consequence(MenuCallbackArgs args);
|
138
|
-
|
139
|
-
public static extern void game_menu_village_loot_defeat_mno_continue_on_consequence(MenuCallbackArgs args);
|
140
|
-
|
141
|
-
public static extern void game_menu_new_game_begin_on_init(MenuCallbackArgs args);
|
142
|
-
|
143
|
-
public static extern void game_menu_village_menu_on_init(MenuCallbackArgs args);
|
144
|
-
|
145
|
-
public static extern void game_menu_village_looted_leave_on_consequence(MenuCallbackArgs args);
|
146
|
-
|
147
|
-
public static extern void game_menu_village_loot_continue_yes_on_consequence(MenuCallbackArgs args);
|
148
|
-
|
149
|
-
public static extern void game_menu_village_loot_continue_no_on_consequence(MenuCallbackArgs args);
|
150
|
-
|
151
|
-
public static extern void game_menu_village_attack_bandits_on_consequence(MenuCallbackArgs args);
|
152
|
-
|
153
|
-
public static extern void game_menu_looted_town_continue_on_consequence(MenuCallbackArgs args);
|
154
|
-
|
155
|
-
public static extern void game_menu_looted_town_leave_on_consequence(MenuCallbackArgs args);
|
156
|
-
|
157
|
-
public static extern bool game_menu_village_recruit_volunteers_on_condition(MenuCallbackArgs args);
|
158
|
-
|
159
|
-
public static extern bool game_menu_village_change_production_on_condition(MenuCallbackArgs args);
|
160
|
-
|
161
|
-
public static extern bool game_menu_village_tell_war_stories_on_condition(MenuCallbackArgs args);
|
162
|
-
|
163
|
-
public static extern bool game_menu_village_train_peasants_against_bandits_qst_on_condition(MenuCallbackArgs args);
|
164
|
-
|
165
|
-
public static extern void game_menu_menu_village_infest_bandits_result_on_init(MenuCallbackArgs args);
|
166
|
-
|
167
|
-
public static extern void game_menu_menu_village_infest_bandits_result_mno_infest_bandits_result_continue_on_consequence(MenuCallbackArgs args);
|
168
|
-
|
169
|
-
public static extern void game_menu_menu_village_infestation_removed_mno_village_bandits_defeated_accept_on_consequence(MenuCallbackArgs args);
|
170
|
-
|
171
|
-
public static extern void game_menu_menu_village_infestation_removed_mno_village_bandits_defeated_cont_on_consequence(MenuCallbackArgs args);
|
172
|
-
|
173
|
-
public static extern void game_menu_menu_village_infestation_removed_on_init(MenuCallbackArgs args);
|
174
|
-
|
175
|
-
public static extern void game_menu_menu_village_take_food_mno_let_them_keep_it_on_consequence(MenuCallbackArgs args);
|
176
|
-
|
177
|
-
public static extern bool game_menu_tell_war_stories_on_condition(MenuCallbackArgs args);
|
178
|
-
|
179
|
-
public static extern bool game_menu_kingdom_mno_call_to_arms_on_condition(MenuCallbackArgs args);
|
180
|
-
|
181
|
-
public static extern void game_menu_kingdom_mno_call_to_arms_on_consequence(MenuCallbackArgs args);
|
182
|
-
|
183
|
-
public static extern bool mno_castle_taken_claim__for_spouse_on_condition(MenuCallbackArgs args);
|
184
|
-
|
185
|
-
public static extern bool mno_appoint_spouse_on_condition(MenuCallbackArgs args);
|
186
|
-
|
187
|
-
public static extern bool mno_appoint_npc_item_on_condititon(MenuCallbackArgs args);
|
188
|
-
|
189
|
-
public static extern void game_menu_camp_create_character_portrait_on_consequence(MenuCallbackArgs args);
|
190
|
-
|
191
|
-
public static extern void menu_castle_entry_denied_on_init(MenuCallbackArgs args);
|
192
|
-
|
193
|
-
public static extern void menu_castle_taken_before_election_on_init(MenuCallbackArgs args);
|
194
|
-
|
195
|
-
public static extern void mno_castle_taken_election_continue_on_consequence(MenuCallbackArgs args);
|
196
|
-
|
197
|
-
public static extern void menu_castle_taken_for_faction_on_init(MenuCallbackArgs args);
|
198
|
-
|
199
|
-
public static extern void menu_requested_castle_granted_to_player_on_init(MenuCallbackArgs args);
|
200
|
-
|
201
|
-
public static extern void menu_requested_castle_granted_to_player_husband_on_init(MenuCallbackArgs args);
|
202
|
-
|
203
|
-
public static extern void menu_requested_castle_granted_to_another_continue_on_consequence(MenuCallbackArgs args);
|
204
|
-
|
205
|
-
public static extern void menu_give_center_to_player_on_init(MenuCallbackArgs args);
|
206
|
-
|
207
|
-
public static extern void mno_give_center_to_player_reject_on_consequence(MenuCallbackArgs args);
|
208
|
-
|
209
|
-
public static extern void mno_leave_faction_give_back_on_consequence(MenuCallbackArgs args);
|
210
|
-
|
211
|
-
public static extern void mno_leave_faction_hold_on_consequence(MenuCallbackArgs args);
|
212
|
-
|
213
|
-
public static extern void mno_leave_faction_cancel_on_consequence(MenuCallbackArgs args);
|
214
|
-
|
215
|
-
public static extern bool game_menu_wait_at_ambush_spot_on_condition(MenuCallbackArgs args);
|
216
|
-
|
217
|
-
public static extern void game_menu_wait_at_ambush_spot_on_consequence(MenuCallbackArgs args);
|
218
|
-
|
219
|
-
public static extern void game_menu_menu_kingdom_army_quest_report_to_army_on_init(MenuCallbackArgs args);
|
220
|
-
|
221
|
-
public static extern void game_menu_menu_oath_fulfilled_on_init(MenuCallbackArgs args);
|
222
|
-
|
223
|
-
public static extern void game_menu_menu_oath_fulfilled_mno_dont_renew_oath_on_consequence(MenuCallbackArgs args);
|
224
|
-
|
225
|
-
public static extern void game_menu_menu_oath_fulfilled_mno_renew_oath_on_consequence(MenuCallbackArgs args);
|
226
|
-
|
227
|
-
public static extern void game_menu_menu_kingdom_army_quest_report_to_army_mno_continue_on_consequence(MenuCallbackArgs args);
|
228
|
-
|
229
|
-
public static extern void game_menu_camp_export_items_on_consequence(MenuCallbackArgs args);
|
230
|
-
|
231
|
-
public static extern void LeaveEncounterOnConsequence(MenuCallbackArgs args);
|
232
|
-
|
233
|
-
public static extern void game_menu_equipment_test_on_consequence(MenuCallbackArgs args);
|
234
|
-
|
235
|
-
public extern GameMenusCallbacks();
|
236
|
-
}
|
237
|
-
}
|
@@ -165,6 +165,8 @@ namespace TaleWorlds.CampaignSystem.Inventory
|
|
165
165
|
|
166
166
|
public extern int GetElementCountOnSide(InventorySide side);
|
167
167
|
|
168
|
+
public extern IEnumerable<ItemRosterElement> GetElementsInInitialRoster(InventorySide side);
|
169
|
+
|
168
170
|
public extern IEnumerable<ItemRosterElement> GetElementsInRoster(InventorySide side);
|
169
171
|
}
|
170
172
|
}
|
@@ -85,7 +85,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
85
85
|
|
86
86
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
87
87
|
|
88
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
88
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
89
89
|
|
90
90
|
protected override extern void LordSolutionConsequenceWithAcceptCounterOffer();
|
91
91
|
|
@@ -94,7 +94,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
94
94
|
|
95
95
|
protected override extern void CompleteIssueWithTimedOutConsequences();
|
96
96
|
|
97
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
97
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
98
98
|
|
99
99
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
100
100
|
|
@@ -53,7 +53,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
53
53
|
|
54
54
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
55
55
|
|
56
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
56
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
57
57
|
|
58
58
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
59
59
|
|
@@ -61,6 +61,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
61
61
|
|
62
62
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
63
63
|
|
64
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
65
|
+
|
64
66
|
public override extern IssueFrequency GetFrequency();
|
65
67
|
|
66
68
|
public override extern bool IssueStayAliveConditions();
|
@@ -39,6 +39,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
39
39
|
|
40
40
|
protected override TextObject AlternativeSolutionStartLog { get; }
|
41
41
|
|
42
|
+
public override TextObject IssuePlayerResponseAfterAlternativeExplanation { get; }
|
43
|
+
|
42
44
|
public override bool IsThereAlternativeSolution { get; }
|
43
45
|
|
44
46
|
protected override int AlternativeSolutionNeededBaseMenCountInternal { get; }
|
@@ -53,7 +55,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
53
55
|
|
54
56
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
55
57
|
|
56
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
58
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
57
59
|
|
58
60
|
protected override extern void OnGameLoad();
|
59
61
|
|
@@ -74,6 +76,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
74
76
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
75
77
|
|
76
78
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
79
|
+
|
80
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
77
81
|
}
|
78
82
|
|
79
83
|
public class CaravanAmbushIssueQuest : QuestBase
|
@@ -54,14 +54,12 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
54
54
|
|
55
55
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
56
56
|
|
57
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
57
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
58
58
|
|
59
59
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
60
60
|
|
61
61
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
62
62
|
|
63
|
-
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
64
|
-
|
65
63
|
public override extern bool IsTroopTypeNeededByAlternativeSolution(CharacterObject character);
|
66
64
|
|
67
65
|
public override extern IssueFrequency GetFrequency();
|
@@ -74,6 +72,10 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
74
72
|
|
75
73
|
protected override extern QuestBase GenerateIssueQuest(string questId);
|
76
74
|
|
75
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
76
|
+
|
77
|
+
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
78
|
+
|
77
79
|
protected override extern void CompleteIssueWithTimedOutConsequences();
|
78
80
|
}
|
79
81
|
|
@@ -59,6 +59,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
59
59
|
|
60
60
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
61
61
|
|
62
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
63
|
+
|
62
64
|
protected override extern void OnGameLoad();
|
63
65
|
|
64
66
|
protected override extern QuestBase GenerateIssueQuest(string questId);
|
@@ -75,7 +77,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
75
77
|
|
76
78
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
77
79
|
|
78
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
80
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
79
81
|
}
|
80
82
|
|
81
83
|
public class ExtortionByDesertersIssueQuest : QuestBase
|
@@ -52,7 +52,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
52
52
|
|
53
53
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
54
54
|
|
55
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
55
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
56
56
|
|
57
57
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
58
58
|
|
@@ -52,7 +52,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
52
52
|
|
53
53
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
54
54
|
|
55
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
55
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
56
56
|
|
57
57
|
protected override extern void CompleteIssueWithTimedOutConsequences();
|
58
58
|
|
@@ -91,6 +91,10 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
91
91
|
|
92
92
|
protected override extern void RegisterEvents();
|
93
93
|
|
94
|
+
protected override extern void OnBeforeTimedOut(ref bool completeWithSuccess, ref bool doNotResolveTheQuest);
|
95
|
+
|
96
|
+
public override extern void OnCanceled();
|
97
|
+
|
94
98
|
protected override extern void SetDialogs();
|
95
99
|
|
96
100
|
public override extern void OnFailed();
|
@@ -54,7 +54,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
54
54
|
|
55
55
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
56
56
|
|
57
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
57
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
58
58
|
|
59
59
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
60
60
|
|
@@ -64,6 +64,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
64
64
|
|
65
65
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
66
66
|
|
67
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
68
|
+
|
67
69
|
public override extern IssueFrequency GetFrequency();
|
68
70
|
|
69
71
|
public override extern bool IssueStayAliveConditions();
|
@@ -55,7 +55,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
55
55
|
|
56
56
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
57
57
|
|
58
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
58
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
59
59
|
|
60
60
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
61
61
|
|
@@ -56,7 +56,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
56
56
|
|
57
57
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
58
58
|
|
59
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
59
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
60
60
|
|
61
61
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
62
62
|
|
@@ -64,6 +64,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
64
64
|
|
65
65
|
public override extern bool IssueStayAliveConditions();
|
66
66
|
|
67
|
+
public override extern void AlternativeSolutionStartConsequence();
|
68
|
+
|
67
69
|
protected override extern bool CanPlayerTakeQuestConditions(Hero issueGiver, out PreconditionFlags flags, out Hero relationHero, out SkillObject skill);
|
68
70
|
|
69
71
|
protected override extern void OnGameLoad();
|
@@ -1,18 +1,19 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
|
-
using
|
2
|
+
using TaleWorlds.SaveSystem;
|
3
3
|
|
4
4
|
namespace TaleWorlds.CampaignSystem.Issues
|
5
5
|
{
|
6
6
|
public class HeroRelatedIssueCoolDownData : IssueCoolDownData
|
7
7
|
{
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
public Hero RelatedHero { [CompilerGenerated]
|
12
|
-
get; }
|
8
|
+
[SaveableField(1)]
|
9
|
+
public readonly Hero RelatedHero;
|
13
10
|
|
14
11
|
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
15
12
|
|
16
13
|
public extern HeroRelatedIssueCoolDownData(Hero hero, CampaignTime expireTime);
|
14
|
+
|
15
|
+
public override extern bool IsRelatedTo(object obj);
|
16
|
+
|
17
|
+
public override extern bool IsValid();
|
17
18
|
}
|
18
19
|
}
|
@@ -72,6 +72,9 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
72
72
|
[SaveableField(12)]
|
73
73
|
public CampaignTime IssueDueTime;
|
74
74
|
|
75
|
+
[SaveableField(16)]
|
76
|
+
public CampaignTime IssueCreationTime;
|
77
|
+
|
75
78
|
protected virtual bool IssueQuestCanBeDuplicated { get; }
|
76
79
|
|
77
80
|
public virtual int RelationshipChangeWithIssueOwner { [CompilerGenerated]
|
@@ -231,7 +234,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
231
234
|
|
232
235
|
public extern Dictionary<IssueEffect, float> GetActiveIssueEffectAndAmount();
|
233
236
|
|
234
|
-
public virtual extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
237
|
+
public virtual extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
235
238
|
|
236
239
|
protected virtual extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
237
240
|
|
@@ -1,13 +1,19 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
|
+
using TaleWorlds.SaveSystem;
|
2
3
|
|
3
4
|
namespace TaleWorlds.CampaignSystem.Issues
|
4
5
|
{
|
5
6
|
public abstract class IssueCoolDownData
|
6
7
|
{
|
7
|
-
|
8
|
+
[SaveableField(0)]
|
9
|
+
public readonly CampaignTime ExpireTime;
|
8
10
|
|
9
11
|
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
10
12
|
|
11
|
-
protected extern IssueCoolDownData();
|
13
|
+
protected extern IssueCoolDownData(CampaignTime expireTime);
|
14
|
+
|
15
|
+
public virtual extern bool IsValid();
|
16
|
+
|
17
|
+
public abstract bool IsRelatedTo(object obj);
|
12
18
|
}
|
13
19
|
}
|
@@ -22,7 +22,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
22
22
|
|
23
23
|
public const string IssueDiscussAlternativeSolution = "issue_discuss_alternative_solution";
|
24
24
|
|
25
|
-
public IEnumerable<Hero> IssueSolvingCompanionList { [IteratorStateMachine(typeof(
|
25
|
+
public IEnumerable<Hero> IssueSolvingCompanionList { [IteratorStateMachine(typeof(_003Cget_IssueSolvingCompanionList_003Ed__13))]
|
26
26
|
get; }
|
27
27
|
|
28
28
|
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
@@ -45,9 +45,11 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
45
45
|
|
46
46
|
public override extern void DailyTick();
|
47
47
|
|
48
|
+
public override extern void HourlyTick();
|
49
|
+
|
48
50
|
public extern bool IsThereActiveIssueWithTypeInSettlement(Type type, Settlement settlement);
|
49
51
|
|
50
|
-
public extern int GetNumOfAvailableIssuesInSettlement(Settlement settlement
|
52
|
+
public extern int GetNumOfAvailableIssuesInSettlement(Settlement settlement);
|
51
53
|
|
52
54
|
public extern int GetNumOfActiveIssuesInSettlement(Settlement settlement, bool includeQuests);
|
53
55
|
|
@@ -69,7 +71,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
69
71
|
|
70
72
|
public extern void AddIssueCoolDownData(Type type, IssueCoolDownData data);
|
71
73
|
|
72
|
-
public extern bool HasIssueCoolDown(Type type, Hero hero
|
74
|
+
public extern bool HasIssueCoolDown(Type type, Hero hero);
|
73
75
|
|
74
76
|
public override extern void CanHaveQuestsOrIssues(Hero hero, ref bool result);
|
75
77
|
|
@@ -89,7 +91,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
89
91
|
|
90
92
|
public static extern void FillIssueCountsPerSettlement(Dictionary<Settlement, int> issueCountPerSettlement);
|
91
93
|
|
92
|
-
[IteratorStateMachine(typeof(
|
94
|
+
[IteratorStateMachine(typeof(_003CGetIssuesInSettlement_003Ed__59))]
|
93
95
|
public static extern IEnumerable<IssueBase> GetIssuesInSettlement(Settlement settlement, bool onlyNotables = true);
|
94
96
|
|
95
97
|
public static extern IssueBase GetIssueOfQuest(QuestBase quest);
|
@@ -52,7 +52,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
52
52
|
|
53
53
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
54
54
|
|
55
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
55
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
56
56
|
|
57
57
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
58
58
|
|
@@ -54,7 +54,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
54
54
|
|
55
55
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
56
56
|
|
57
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
57
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
58
58
|
|
59
59
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
60
60
|
|
@@ -55,12 +55,14 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
55
55
|
|
56
56
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
57
57
|
|
58
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
58
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
59
59
|
|
60
60
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
61
61
|
|
62
62
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
63
63
|
|
64
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
65
|
+
|
64
66
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
65
67
|
|
66
68
|
public override extern bool IsTroopTypeNeededByAlternativeSolution(CharacterObject character);
|
@@ -54,12 +54,14 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
54
54
|
|
55
55
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
56
56
|
|
57
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
57
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
58
58
|
|
59
59
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
60
60
|
|
61
61
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
62
62
|
|
63
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
64
|
+
|
63
65
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
64
66
|
|
65
67
|
public override extern bool IsTroopTypeNeededByAlternativeSolution(CharacterObject character);
|
@@ -52,7 +52,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
52
52
|
|
53
53
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
54
54
|
|
55
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
55
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
56
56
|
|
57
57
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
58
58
|
|
@@ -73,6 +73,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
73
73
|
protected override extern void CompleteIssueWithTimedOutConsequences();
|
74
74
|
|
75
75
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
76
|
+
|
77
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
76
78
|
}
|
77
79
|
|
78
80
|
public class LesserNobleRevoltIssueQuest : QuestBase
|
@@ -54,7 +54,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
54
54
|
|
55
55
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
56
56
|
|
57
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
57
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
58
58
|
|
59
59
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
60
60
|
|
@@ -74,6 +74,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
74
74
|
|
75
75
|
protected override extern QuestBase GenerateIssueQuest(string questId);
|
76
76
|
|
77
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
78
|
+
|
77
79
|
protected override extern void CompleteIssueWithTimedOutConsequences();
|
78
80
|
}
|
79
81
|
|
@@ -58,6 +58,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
58
58
|
|
59
59
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
60
60
|
|
61
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
62
|
+
|
61
63
|
protected override extern void OnGameLoad();
|
62
64
|
|
63
65
|
protected override extern QuestBase GenerateIssueQuest(string questId);
|
@@ -74,7 +76,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
74
76
|
|
75
77
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
76
78
|
|
77
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
79
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
78
80
|
}
|
79
81
|
|
80
82
|
public class LordNeedsHorsesIssueQuest : QuestBase
|
@@ -70,7 +70,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
70
70
|
|
71
71
|
public override extern void OnHeroCanMarryInfoIsRequested(Hero hero, ref bool result);
|
72
72
|
|
73
|
-
public extern void OnHeroGainedSkill(Hero hero, SkillObject skill,
|
73
|
+
public extern void OnHeroGainedSkill(Hero hero, SkillObject skill, int change = 1, bool shouldNotify = true);
|
74
74
|
|
75
75
|
public extern void OnHourlyTick();
|
76
76
|
|
@@ -57,7 +57,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
57
57
|
|
58
58
|
public override extern bool IsTroopTypeNeededByAlternativeSolution(CharacterObject character);
|
59
59
|
|
60
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
60
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
61
61
|
|
62
62
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
63
63
|
|
@@ -74,6 +74,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
74
74
|
protected override extern void CompleteIssueWithTimedOutConsequences();
|
75
75
|
|
76
76
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
77
|
+
|
78
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
77
79
|
}
|
78
80
|
|
79
81
|
public class MerchantArmyOfPoachersIssueQuest : QuestBase
|
@@ -86,8 +88,6 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
86
88
|
|
87
89
|
public extern MerchantArmyOfPoachersIssueQuest(string questId, Hero giverHero, CampaignTime duration, Village questVillage, float difficultyMultiplier, int rewardGold);
|
88
90
|
|
89
|
-
protected override extern void OnStartQuest();
|
90
|
-
|
91
91
|
protected override extern void SetDialogs();
|
92
92
|
|
93
93
|
protected override extern void OnTimedOut();
|
@@ -54,7 +54,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
54
54
|
|
55
55
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
56
56
|
|
57
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
57
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
58
58
|
|
59
59
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
60
60
|
|
@@ -62,6 +62,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
62
62
|
|
63
63
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
64
64
|
|
65
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
66
|
+
|
65
67
|
public override extern IssueFrequency GetFrequency();
|
66
68
|
|
67
69
|
protected override extern bool CanPlayerTakeQuestConditions(Hero issueGiver, out PreconditionFlags flag, out Hero relationHero, out SkillObject skill);
|
@@ -59,7 +59,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
59
59
|
|
60
60
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
61
61
|
|
62
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
62
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
63
63
|
|
64
64
|
protected override extern void AfterIssueCreation();
|
65
65
|
|
@@ -71,6 +71,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
71
71
|
|
72
72
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
73
73
|
|
74
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
75
|
+
|
74
76
|
protected override extern void OnGameLoad();
|
75
77
|
|
76
78
|
protected override extern QuestBase GenerateIssueQuest(string questId);
|
@@ -14,6 +14,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
14
14
|
|
15
15
|
public override AlternativeSolutionScaleFlag AlternativeSolutionScaleFlags { get; }
|
16
16
|
|
17
|
+
protected override int RewardGold { get; }
|
18
|
+
|
17
19
|
protected override int CompanionSkillRewardXP { get; }
|
18
20
|
|
19
21
|
public override TextObject Title { get; }
|
@@ -54,7 +56,7 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
54
56
|
|
55
57
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
56
58
|
|
57
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
59
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
58
60
|
|
59
61
|
protected override extern void OnGameLoad();
|
60
62
|
|
@@ -68,6 +70,8 @@ namespace TaleWorlds.CampaignSystem.Issues
|
|
68
70
|
|
69
71
|
protected override extern void CompleteIssueWithTimedOutConsequences();
|
70
72
|
|
73
|
+
public override extern void AlternativeSolutionStartConsequence();
|
74
|
+
|
71
75
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
72
76
|
|
73
77
|
public override extern bool IsTroopTypeNeededByAlternativeSolution(CharacterObject character);
|
@@ -36,6 +36,8 @@ namespace TaleWorlds.CampaignSystem.Map
|
|
36
36
|
|
37
37
|
Vec2 GetNavigationMeshCenterPosition(PathFaceRecord face);
|
38
38
|
|
39
|
+
int GetNumberOfNavigationMeshFaces();
|
40
|
+
|
39
41
|
bool GetHeightAtPoint(Vec2 point, ref float height);
|
40
42
|
|
41
43
|
float GetWinterTimeFactor();
|
@@ -41,17 +41,13 @@ namespace TaleWorlds.CampaignSystem.MapEvents
|
|
41
41
|
|
42
42
|
public BattleSideEnum PlayerSide { get; }
|
43
43
|
|
44
|
-
[SaveableProperty(100)]
|
45
|
-
public MapEventState PreviousState { [CompilerGenerated]
|
46
|
-
get; }
|
47
|
-
|
48
44
|
public MapEventState State { get; }
|
49
45
|
|
50
46
|
public MapEventSide AttackerSide { get; }
|
51
47
|
|
52
48
|
public MapEventSide DefenderSide { get; }
|
53
49
|
|
54
|
-
public IEnumerable<PartyBase> InvolvedParties { [IteratorStateMachine(typeof(
|
50
|
+
public IEnumerable<PartyBase> InvolvedParties { [IteratorStateMachine(typeof(_003Cget_InvolvedParties_003Ed__43))]
|
55
51
|
get; }
|
56
52
|
|
57
53
|
[SaveableProperty(103)]
|
@@ -132,10 +128,6 @@ namespace TaleWorlds.CampaignSystem.MapEvents
|
|
132
128
|
|
133
129
|
public extern void BeginWait();
|
134
130
|
|
135
|
-
public extern void BeginPlayerSimulation();
|
136
|
-
|
137
|
-
public extern void BeginAftermath();
|
138
|
-
|
139
131
|
public extern MapEventSide GetMapEventSide(BattleSideEnum side);
|
140
132
|
|
141
133
|
public extern IReadOnlyList<MapEventParty> PartiesOnSide(BattleSideEnum side);
|
@@ -67,7 +67,5 @@ namespace TaleWorlds.CampaignSystem.MapEvents
|
|
67
67
|
public extern void OnTroopScoreHit(UniqueTroopDescriptor attackerTroopDesc, CharacterObject attackedTroop, int damage, bool isFatal, bool isTeamKill, WeaponComponentData attackerWeapon, bool isSimulatedHit);
|
68
68
|
|
69
69
|
public extern void CommitXpGain();
|
70
|
-
|
71
|
-
public extern void CommitSkillXpGains(MapEventSide otherSide);
|
72
70
|
}
|
73
71
|
}
|
@@ -62,8 +62,6 @@ namespace TaleWorlds.CampaignSystem.MapEvents
|
|
62
62
|
|
63
63
|
public extern void CalculateRenownAndValorValue(float[] strengthOfSide);
|
64
64
|
|
65
|
-
public extern void CommitSkillXpGains();
|
66
|
-
|
67
65
|
public virtual extern void DistributeRenown(MapEventResultExplainer resultExplainers = null, bool forScoreboard = false);
|
68
66
|
|
69
67
|
public extern void ApplyRewardsAndChanges();
|
@@ -76,12 +74,18 @@ namespace TaleWorlds.CampaignSystem.MapEvents
|
|
76
74
|
|
77
75
|
public extern void AddHeroDamage(Hero character, int damage);
|
78
76
|
|
79
|
-
public extern void AllocateTroops(ref List<UniqueTroopDescriptor> troopsList, int number = -1
|
77
|
+
public extern void AllocateTroops(ref List<UniqueTroopDescriptor> troopsList, int number = -1);
|
78
|
+
|
79
|
+
public extern void GetAllTroops(ref List<UniqueTroopDescriptor> troopsList);
|
80
80
|
|
81
81
|
public extern CharacterObject GetAllocatedTroop(UniqueTroopDescriptor troopDesc0);
|
82
82
|
|
83
|
+
public extern CharacterObject GetReadyTroop(UniqueTroopDescriptor troopDesc0);
|
84
|
+
|
83
85
|
public extern PartyBase GetAllocatedTroopParty(UniqueTroopDescriptor troopDescriptor);
|
84
86
|
|
87
|
+
public extern PartyBase GetReadyTroopParty(UniqueTroopDescriptor troopDescriptor);
|
88
|
+
|
85
89
|
public extern void OnTroopWounded(UniqueTroopDescriptor troopDesc1);
|
86
90
|
|
87
91
|
public extern void OnTroopKilled(UniqueTroopDescriptor troopDesc1);
|
@@ -96,8 +100,6 @@ namespace TaleWorlds.CampaignSystem.MapEvents
|
|
96
100
|
|
97
101
|
public extern void EndSimulation();
|
98
102
|
|
99
|
-
public extern void UpgradeTroops();
|
100
|
-
|
101
103
|
public extern ItemRoster ItemRosterForPlayerLootShare(PartyBase playerParty);
|
102
104
|
|
103
105
|
public extern TroopRoster MemberRosterForPlayerLootShare(PartyBase playerParty);
|
@@ -4,17 +4,6 @@ namespace TaleWorlds.CampaignSystem.MapEvents
|
|
4
4
|
{
|
5
5
|
Begin,
|
6
6
|
Wait,
|
7
|
-
|
8
|
-
BattleWithoutLeader,
|
9
|
-
Aftermath,
|
10
|
-
LootParty,
|
11
|
-
LootInventory,
|
12
|
-
HeroExchange,
|
13
|
-
End,
|
14
|
-
WaitingRemoval,
|
15
|
-
PlayerVictory,
|
16
|
-
PlayerTotalDefeat,
|
17
|
-
CaptureHeroes,
|
18
|
-
FreeHeroes
|
7
|
+
WaitingRemoval
|
19
8
|
}
|
20
9
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.CampaignSystem.Actions;
|
3
4
|
using TaleWorlds.Core;
|
4
5
|
using TaleWorlds.Localization;
|
5
6
|
using TaleWorlds.SaveSystem;
|
@@ -20,8 +21,12 @@ namespace TaleWorlds.CampaignSystem.MapNotificationTypes
|
|
20
21
|
public Hero KillerHero { [CompilerGenerated]
|
21
22
|
get; }
|
22
23
|
|
24
|
+
[SaveableProperty(3)]
|
25
|
+
public KillCharacterAction.KillCharacterActionDetail KillDetail { [CompilerGenerated]
|
26
|
+
get; }
|
27
|
+
|
23
28
|
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
24
29
|
|
25
|
-
public extern DeathMapNotification(Hero victimHero, Hero killerHero, TextObject descriptionText);
|
30
|
+
public extern DeathMapNotification(Hero victimHero, Hero killerHero, TextObject descriptionText, KillCharacterAction.KillCharacterActionDetail detail);
|
26
31
|
}
|
27
32
|
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
using TaleWorlds.SaveSystem;
|
6
|
+
|
7
|
+
namespace TaleWorlds.CampaignSystem.MapNotificationTypes
|
8
|
+
{
|
9
|
+
public class HeirComeOfAgeMapNotification : InformationData
|
10
|
+
{
|
11
|
+
public override TextObject TitleText { get; }
|
12
|
+
|
13
|
+
public override string SoundEventPath { get; }
|
14
|
+
|
15
|
+
[SaveableProperty(1)]
|
16
|
+
public Hero ComeOfAgeHero { [CompilerGenerated]
|
17
|
+
get; }
|
18
|
+
|
19
|
+
[SaveableProperty(2)]
|
20
|
+
public Hero MentorHero { [CompilerGenerated]
|
21
|
+
get; }
|
22
|
+
|
23
|
+
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
24
|
+
|
25
|
+
public extern HeirComeOfAgeMapNotification(Hero comeOfAgeHero, Hero mentorHero, TextObject descriptionText);
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
using TaleWorlds.SaveSystem;
|
6
|
+
|
7
|
+
namespace TaleWorlds.CampaignSystem.MapNotificationTypes
|
8
|
+
{
|
9
|
+
public class KingdomDestroyedMapNotification : InformationData
|
10
|
+
{
|
11
|
+
public override TextObject TitleText { get; }
|
12
|
+
|
13
|
+
public override string SoundEventPath { get; }
|
14
|
+
|
15
|
+
[SaveableProperty(1)]
|
16
|
+
public Kingdom DestroyedKingdom { [CompilerGenerated]
|
17
|
+
get; }
|
18
|
+
|
19
|
+
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
20
|
+
|
21
|
+
public extern KingdomDestroyedMapNotification(Kingdom destroyedKingdom);
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
using TaleWorlds.SaveSystem;
|
6
|
+
|
7
|
+
namespace TaleWorlds.CampaignSystem.MapNotificationTypes
|
8
|
+
{
|
9
|
+
public class MarriageOfferMapNotification : InformationData
|
10
|
+
{
|
11
|
+
public override TextObject TitleText { get; }
|
12
|
+
|
13
|
+
public override string SoundEventPath { get; }
|
14
|
+
|
15
|
+
[SaveableProperty(1)]
|
16
|
+
public Hero Suitor { [CompilerGenerated]
|
17
|
+
get; }
|
18
|
+
|
19
|
+
[SaveableProperty(2)]
|
20
|
+
public Hero Maiden { [CompilerGenerated]
|
21
|
+
get; }
|
22
|
+
|
23
|
+
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
24
|
+
|
25
|
+
public extern MarriageOfferMapNotification(Hero firstHero, Hero secondHero, TextObject descriptionText);
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
using TaleWorlds.SaveSystem;
|
6
|
+
|
7
|
+
namespace TaleWorlds.CampaignSystem.MapNotificationTypes
|
8
|
+
{
|
9
|
+
public class MercenaryOfferMapNotification : InformationData
|
10
|
+
{
|
11
|
+
public override TextObject TitleText { get; }
|
12
|
+
|
13
|
+
public override string SoundEventPath { get; }
|
14
|
+
|
15
|
+
[SaveableProperty(1)]
|
16
|
+
public Kingdom OfferedKingdom { [CompilerGenerated]
|
17
|
+
get; }
|
18
|
+
|
19
|
+
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
20
|
+
|
21
|
+
public extern MercenaryOfferMapNotification(Kingdom offeredKingdom, TextObject descriptionText);
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.CampaignSystem.Party;
|
4
|
+
using TaleWorlds.Core;
|
5
|
+
using TaleWorlds.Localization;
|
6
|
+
using TaleWorlds.SaveSystem;
|
7
|
+
|
8
|
+
namespace TaleWorlds.CampaignSystem.MapNotificationTypes
|
9
|
+
{
|
10
|
+
public class PartyLeaderChangeNotification : InformationData
|
11
|
+
{
|
12
|
+
public override TextObject TitleText { get; }
|
13
|
+
|
14
|
+
public override string SoundEventPath { get; }
|
15
|
+
|
16
|
+
[SaveableProperty(1)]
|
17
|
+
public MobileParty Party { [CompilerGenerated]
|
18
|
+
get; }
|
19
|
+
|
20
|
+
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
21
|
+
|
22
|
+
public extern PartyLeaderChangeNotification(MobileParty party, TextObject descriptionText);
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
using TaleWorlds.SaveSystem;
|
6
|
+
|
7
|
+
namespace TaleWorlds.CampaignSystem.MapNotificationTypes
|
8
|
+
{
|
9
|
+
public class VassalOfferMapNotification : InformationData
|
10
|
+
{
|
11
|
+
public override TextObject TitleText { get; }
|
12
|
+
|
13
|
+
public override string SoundEventPath { get; }
|
14
|
+
|
15
|
+
[SaveableProperty(1)]
|
16
|
+
public Kingdom OfferedKingdom { [CompilerGenerated]
|
17
|
+
get; }
|
18
|
+
|
19
|
+
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
20
|
+
|
21
|
+
public extern VassalOfferMapNotification(Kingdom offeredKingdom, TextObject descriptionText);
|
22
|
+
}
|
23
|
+
}
|
@@ -6,7 +6,6 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
6
6
|
BesiegingCenter,
|
7
7
|
PatrollingAroundCenter,
|
8
8
|
PatrollingAroundLocation,
|
9
|
-
AccompanyingArmy,
|
10
9
|
TradingWithTown,
|
11
10
|
RetratingToCenter,
|
12
11
|
VisitingVillage,
|
@@ -12,8 +12,6 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
12
12
|
|
13
13
|
void OnStartup(PartyBase party);
|
14
14
|
|
15
|
-
void OnPartySizeChanged();
|
16
|
-
|
17
15
|
void OnPartyRemoved();
|
18
16
|
|
19
17
|
void OnBesieged(Vec3 soundPosition);
|
@@ -22,7 +20,7 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
22
20
|
|
23
21
|
void SetMapIconAsDirty();
|
24
22
|
|
25
|
-
void Tick(float realDt, float dt, PartyBase party);
|
23
|
+
void Tick(float realDt, float dt, PartyBase party, ref int dirtyPartiesCount, ref PartyBase[] dirtyPartiesList);
|
26
24
|
|
27
25
|
MatrixFrame GetFrame();
|
28
26
|
|
@@ -65,5 +63,9 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
65
63
|
int GetBreacableWallFrameCount();
|
66
64
|
|
67
65
|
IMapEntity GetMapEntity();
|
66
|
+
|
67
|
+
void ValidateIsDirty(PartyBase party, float realDt, float dt);
|
68
|
+
|
69
|
+
void TickFadingState(float realDt, float dt);
|
68
70
|
}
|
69
71
|
}
|
@@ -15,7 +15,7 @@ using TaleWorlds.SaveSystem;
|
|
15
15
|
|
16
16
|
namespace TaleWorlds.CampaignSystem.Party
|
17
17
|
{
|
18
|
-
public sealed class MobileParty : CampaignObjectBase, IMapPoint, ITrackableCampaignObject, ITrackableBase, IMapEntity
|
18
|
+
public sealed class MobileParty : CampaignObjectBase, IMapPoint, ITrackableCampaignObject, ITrackableBase, IMapEntity, IRandomOwner
|
19
19
|
{
|
20
20
|
public enum PartyObjective
|
21
21
|
{
|
@@ -27,21 +27,16 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
27
27
|
|
28
28
|
public const int DefaultPartyTradeInitialGold = 5000;
|
29
29
|
|
30
|
-
public const float
|
30
|
+
public const float GoAroundPartyWaitNearbyRadiusMultiplier = 1.2f;
|
31
|
+
|
32
|
+
public const int ClanRoleAssignmentMinimumSkillValue = 0;
|
31
33
|
|
32
34
|
[SaveableField(1006)]
|
33
35
|
public float HasUnpaidWages;
|
34
36
|
|
35
|
-
[SaveableField(1033)]
|
36
|
-
public readonly bool AtCampMode;
|
37
|
-
|
38
37
|
[SaveableField(1071)]
|
39
38
|
public Vec2 AverageFleeTargetDirection;
|
40
39
|
|
41
|
-
public bool IsJoiningArmy;
|
42
|
-
|
43
|
-
public const int ClanRoleAssignmentMinimumSkillValue = 0;
|
44
|
-
|
45
40
|
public static MobileParty MainParty { get; }
|
46
41
|
|
47
42
|
public static MBReadOnlyList<MobileParty> All { get; }
|
@@ -126,9 +121,15 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
126
121
|
get; [CompilerGenerated]
|
127
122
|
set; }
|
128
123
|
|
129
|
-
public float
|
124
|
+
public float Speed { get; }
|
125
|
+
|
126
|
+
public ExplainedNumber SpeedExplained { get; }
|
130
127
|
|
131
|
-
|
128
|
+
[SaveableProperty(1074)]
|
129
|
+
public CampaignTime DoNotAttackMainPartyUntil { [CompilerGenerated]
|
130
|
+
get; }
|
131
|
+
|
132
|
+
public bool IsDisorganized { get; }
|
132
133
|
|
133
134
|
public bool IsCurrentlyUsedByAQuest { get; }
|
134
135
|
|
@@ -186,6 +187,8 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
186
187
|
get; [CompilerGenerated]
|
187
188
|
set; }
|
188
189
|
|
190
|
+
public int RandomValue { get; }
|
191
|
+
|
189
192
|
public Settlement CurrentSettlement { get; set; }
|
190
193
|
|
191
194
|
public Settlement HomeSettlement { get; }
|
@@ -198,21 +201,15 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
198
201
|
|
199
202
|
public AiBehavior DefaultBehavior { get; }
|
200
203
|
|
201
|
-
|
202
|
-
public Hero Scout { [CompilerGenerated]
|
203
|
-
get; }
|
204
|
+
public Settlement TargetSettlement { get; }
|
204
205
|
|
205
|
-
|
206
|
-
public Hero Quartermaster { [CompilerGenerated]
|
207
|
-
get; }
|
206
|
+
public Vec2 TargetPosition { get; }
|
208
207
|
|
209
|
-
|
210
|
-
public Hero Engineer { [CompilerGenerated]
|
211
|
-
get; }
|
208
|
+
public MobileParty TargetParty { get; }
|
212
209
|
|
213
|
-
|
214
|
-
|
215
|
-
get; }
|
210
|
+
public Hero LeaderHero { get; }
|
211
|
+
|
212
|
+
public Hero Owner { get; }
|
216
213
|
|
217
214
|
public Hero EffectiveScout { get; }
|
218
215
|
|
@@ -220,18 +217,8 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
220
217
|
|
221
218
|
public Hero EffectiveEngineer { get; }
|
222
219
|
|
223
|
-
public Settlement TargetSettlement { get; }
|
224
|
-
|
225
|
-
public Vec2 TargetPosition { get; }
|
226
|
-
|
227
|
-
public MobileParty TargetParty { get; }
|
228
|
-
|
229
220
|
public Hero EffectiveSurgeon { get; }
|
230
221
|
|
231
|
-
public Hero LeaderHero { get; }
|
232
|
-
|
233
|
-
public Hero Owner { get; }
|
234
|
-
|
235
222
|
public Clan ActualClan { get; set; }
|
236
223
|
|
237
224
|
public float RecentEventsMorale { get; set; }
|
@@ -241,8 +228,7 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
241
228
|
public ExplainedNumber MoraleExplained { get; }
|
242
229
|
|
243
230
|
[CachedData]
|
244
|
-
public PathFaceRecord CurrentNavigationFace {
|
245
|
-
get; }
|
231
|
+
public PathFaceRecord CurrentNavigationFace { get; }
|
246
232
|
|
247
233
|
public Vec2 EventPositionAdder { get; set; }
|
248
234
|
|
@@ -284,7 +270,7 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
284
270
|
|
285
271
|
public bool NeedTargetReset { get; }
|
286
272
|
|
287
|
-
public int
|
273
|
+
public int NumberOfRecentFleeingFromAParty { get; }
|
288
274
|
|
289
275
|
public Settlement BesiegedSettlement { get; }
|
290
276
|
|
@@ -294,12 +280,8 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
294
280
|
|
295
281
|
public Settlement ShortTermTargetSettlement { get; }
|
296
282
|
|
297
|
-
public bool IsHolding { get; }
|
298
|
-
|
299
283
|
public bool IsEngaging { get; }
|
300
284
|
|
301
|
-
public bool IsRaiding { get; }
|
302
|
-
|
303
285
|
public bool IsCurrentlyGoingToSettlement { get; }
|
304
286
|
|
305
287
|
public float PartySizeRatio { get; }
|
@@ -316,9 +298,9 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
316
298
|
|
317
299
|
public float FoodChange { get; }
|
318
300
|
|
319
|
-
public
|
301
|
+
public float BaseFoodChange { get; }
|
320
302
|
|
321
|
-
public ExplainedNumber
|
303
|
+
public ExplainedNumber FoodChangeExplained { get; }
|
322
304
|
|
323
305
|
public float HealingRateForRegulars { get; }
|
324
306
|
|
@@ -394,22 +376,22 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
394
376
|
|
395
377
|
public extern void SetCustomHomeSettlement(Settlement customHomeSettlement);
|
396
378
|
|
379
|
+
public extern MobileParty();
|
380
|
+
|
397
381
|
public extern void SetPartyScout(Hero hero);
|
398
382
|
|
399
383
|
public extern void SetPartyQuartermaster(Hero hero);
|
400
384
|
|
401
385
|
public extern void SetPartyEngineer(Hero hero);
|
402
386
|
|
403
|
-
public extern void SetPartySurgeon(Hero hero);
|
404
|
-
|
405
|
-
public extern MobileParty();
|
406
|
-
|
407
387
|
public extern void InitializeMobilePartyAroundPosition(TroopRoster memberRoster, TroopRoster prisonerRoster, Vec2 position, float spawnRadius, float minSpawnRadius = 0f);
|
408
388
|
|
409
389
|
public override extern void Initialize();
|
410
390
|
|
411
391
|
public extern void InitializeMobilePartyAtPosition(TroopRoster memberRoster, TroopRoster prisonerRoster, Vec2 position);
|
412
392
|
|
393
|
+
public extern void SetPartySurgeon(Hero hero);
|
394
|
+
|
413
395
|
public extern void InitializeMobilePartyAtPosition(PartyTemplateObject pt, Vec2 position, int troopNumberLimit = -1);
|
414
396
|
|
415
397
|
public extern void InitializeMobilePartyAroundPosition(PartyTemplateObject pt, Vec2 position, float spawnRadius, float minSpawnRadius = 0f, int troopNumberLimit = -1);
|
@@ -418,13 +400,15 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
418
400
|
|
419
401
|
extern TextObject ITrackableBase.GetName();
|
420
402
|
|
403
|
+
public extern void ValidateSpeed();
|
404
|
+
|
421
405
|
public extern void ChangePartyLeader(Hero newLeader);
|
422
406
|
|
423
407
|
public extern void RemovePartyLeader();
|
424
408
|
|
425
409
|
public extern void OnGameInitialized();
|
426
410
|
|
427
|
-
public extern void
|
411
|
+
public extern void SetDisorganized(bool isDisorganized);
|
428
412
|
|
429
413
|
public extern void SetCustomName(TextObject name);
|
430
414
|
|
@@ -454,7 +438,7 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
454
438
|
|
455
439
|
public extern void SetMoveDefendSettlement(Settlement settlement);
|
456
440
|
|
457
|
-
public extern void
|
441
|
+
public extern void SetInitiative(float attackInitiative, float avoidInitiative, float hoursUntilReset);
|
458
442
|
|
459
443
|
public extern void IgnoreForHours(float hours);
|
460
444
|
|
@@ -466,12 +450,6 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
466
450
|
|
467
451
|
public extern void UpdateVersionNo();
|
468
452
|
|
469
|
-
public extern float GetCachedPureSpeed();
|
470
|
-
|
471
|
-
public extern float ComputeSpeed();
|
472
|
-
|
473
|
-
public extern float ComputeVisualSpeed();
|
474
|
-
|
475
453
|
public extern bool IsSpotted();
|
476
454
|
|
477
455
|
public extern int AddElementToMemberRoster(CharacterObject element, int numberToAdd, bool insertAtFront = false);
|
@@ -494,6 +472,10 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
494
472
|
|
495
473
|
public extern void RemoveHeroPerkRole(Hero hero);
|
496
474
|
|
475
|
+
public extern Hero GetRoleHolder(SkillEffect.PerkRole perkRole);
|
476
|
+
|
477
|
+
public extern Hero GetEffectiveRoleHolder(SkillEffect.PerkRole perkRole);
|
478
|
+
|
497
479
|
public extern int GetNumDaysForFoodToLast();
|
498
480
|
|
499
481
|
public extern Vec3 GetPosition();
|
@@ -504,18 +486,12 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
504
486
|
|
505
487
|
public extern void RemoveParty();
|
506
488
|
|
507
|
-
public extern void ResetNavigationFace();
|
508
|
-
|
509
|
-
public extern void DisableAi();
|
510
|
-
|
511
|
-
public extern void EnableAi();
|
512
|
-
|
513
489
|
public static extern IEnumerable<MobileParty> FindPartiesAroundPosition(Vec2 position, float radius, Func<MobileParty, bool> condition = null);
|
514
490
|
|
515
|
-
public extern void ResetAiBehaviorObject();
|
516
|
-
|
517
491
|
public extern void RecalculateShortTermAi();
|
518
492
|
|
493
|
+
public extern bool IsFleeing();
|
494
|
+
|
519
495
|
public static extern Hero GetMainPartySkillCounsellor(SkillObject skill);
|
520
496
|
|
521
497
|
public extern bool ComputeIsWaiting();
|
@@ -534,7 +510,7 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
534
510
|
|
535
511
|
extern bool IMapEntity.IsMainEntity();
|
536
512
|
|
537
|
-
extern void IMapEntity.OnPartyInteraction(MobileParty
|
513
|
+
extern void IMapEntity.OnPartyInteraction(MobileParty engagingParty);
|
538
514
|
|
539
515
|
public extern void InitializePartyTrade(int initialGold);
|
540
516
|
|
@@ -14,11 +14,8 @@ using TaleWorlds.SaveSystem;
|
|
14
14
|
|
15
15
|
namespace TaleWorlds.CampaignSystem.Party
|
16
16
|
{
|
17
|
-
public sealed class PartyBase : IBattleCombatant
|
17
|
+
public sealed class PartyBase : IBattleCombatant, IRandomOwner
|
18
18
|
{
|
19
|
-
[SaveableField(14)]
|
20
|
-
public readonly DeterministicRandom Random;
|
21
|
-
|
22
19
|
public Vec2 Position2D { get; }
|
23
20
|
|
24
21
|
public bool IsVisible { get; }
|
@@ -77,6 +74,10 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
77
74
|
|
78
75
|
public IFaction MapFaction { get; }
|
79
76
|
|
77
|
+
[SaveableProperty(210)]
|
78
|
+
public int RandomValue { [CompilerGenerated]
|
79
|
+
get; }
|
80
|
+
|
80
81
|
public CultureObject Culture { get; }
|
81
82
|
|
82
83
|
public Tuple<uint, uint> PrimaryColorPair { get; }
|
@@ -115,7 +116,7 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
115
116
|
|
116
117
|
public int NumberOfPackAnimals { get; }
|
117
118
|
|
118
|
-
public IEnumerable<CharacterObject> PrisonerHeroes { [IteratorStateMachine(typeof(
|
119
|
+
public IEnumerable<CharacterObject> PrisonerHeroes { [IteratorStateMachine(typeof(_003Cget_PrisonerHeroes_003Ed__138))]
|
119
120
|
get; }
|
120
121
|
|
121
122
|
public int NumberOfMenWithHorse { get; }
|
@@ -171,6 +172,8 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
171
172
|
|
172
173
|
public extern void WoundMemberRosterElementsWithIndex(int elementIndex, int numberToWound);
|
173
174
|
|
175
|
+
public extern void VisualTick(float realDt, float dt, ref int dirtyPartiesCount, ref PartyBase[] dirtyPartiesList);
|
176
|
+
|
174
177
|
public static extern bool IsPositionOkForTraveling(Vec2 position);
|
175
178
|
|
176
179
|
public extern void UpdateVisibilityAndInspected(float mainPartySeeingRange = 0f, bool tickVisuals = false);
|
@@ -2,5 +2,5 @@ using TaleWorlds.CampaignSystem.Roster;
|
|
2
2
|
|
3
3
|
namespace TaleWorlds.CampaignSystem.Party
|
4
4
|
{
|
5
|
-
public delegate bool PartyPresentationDoneButtonDelegate(TroopRoster leftMemberRoster, TroopRoster leftPrisonRoster, TroopRoster rightMemberRoster, TroopRoster rightPrisonRoster, FlattenedTroopRoster takenPrisonerRoster, FlattenedTroopRoster releasedPrisonerRoster, bool isForced, PartyBase leftParty = null, PartyBase
|
5
|
+
public delegate bool PartyPresentationDoneButtonDelegate(TroopRoster leftMemberRoster, TroopRoster leftPrisonRoster, TroopRoster rightMemberRoster, TroopRoster rightPrisonRoster, FlattenedTroopRoster takenPrisonerRoster, FlattenedTroopRoster releasedPrisonerRoster, bool isForced, PartyBase leftParty = null, PartyBase rightParty = null);
|
6
6
|
}
|
@@ -23,7 +23,7 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
23
23
|
|
24
24
|
public int PartyGoldChangeAmount;
|
25
25
|
|
26
|
-
public int PartyInfluenceChangeAmount;
|
26
|
+
public (int, int, int) PartyInfluenceChangeAmount;
|
27
27
|
|
28
28
|
public int PartyMoraleChangeAmount;
|
29
29
|
|
@@ -17,6 +17,8 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
17
17
|
|
18
18
|
public static extern void CloseScreen(bool isForced, bool fromCancel = false);
|
19
19
|
|
20
|
+
public static extern void OpenScreenAsCheat();
|
21
|
+
|
20
22
|
public static extern void OpenScreenAsNormal();
|
21
23
|
|
22
24
|
public static extern void OpenScreenAsRansom();
|
@@ -47,7 +49,7 @@ namespace TaleWorlds.CampaignSystem.Party
|
|
47
49
|
|
48
50
|
public static extern bool DonateModeTroopTransferableDelegate(CharacterObject character, PartyScreenLogic.TroopType type, PartyScreenLogic.PartyRosterSide side, PartyBase LeftOwnerParty);
|
49
51
|
|
50
|
-
public static extern void OpenScreenWithCondition(IsTroopTransferableDelegate isTroopTransferable, PartyPresentationDoneButtonConditionDelegate doneButtonCondition, PartyPresentationDoneButtonDelegate onDoneClicked, PartyPresentationCancelButtonDelegate onCancelClicked, PartyScreenLogic.TransferState memberTransferState, PartyScreenLogic.TransferState prisonerTransferState, TextObject leftPartyName, int limit, bool showProgressBar, bool isDonating);
|
52
|
+
public static extern void OpenScreenWithCondition(IsTroopTransferableDelegate isTroopTransferable, PartyPresentationDoneButtonConditionDelegate doneButtonCondition, PartyPresentationDoneButtonDelegate onDoneClicked, PartyPresentationCancelButtonDelegate onCancelClicked, PartyScreenLogic.TransferState memberTransferState, PartyScreenLogic.TransferState prisonerTransferState, TextObject leftPartyName, int limit, bool showProgressBar, bool isDonating, PartyScreenMode screenMode = PartyScreenMode.Normal);
|
51
53
|
|
52
54
|
public static extern void OpenScreenAsQuest(TroopRoster leftMemberRoster, TextObject leftPartyName, int leftPartySizeLimit, PartyPresentationDoneButtonConditionDelegate doneButtonCondition, PartyScreenClosedDelegate onPartyScreenClosed, IsTroopTransferableDelegate isTroopTransferable, PartyPresentationCancelButtonActivateDelegate partyPresentationCancelButtonActivateDelegate = null);
|
53
55
|
|
@@ -1,9 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.CampaignSystem.Party
|
2
|
-
{
|
3
|
-
public class PartyUpgrader
|
4
|
-
{
|
5
|
-
public extern void UpgradeReadyTroops(PartyBase party);
|
6
|
-
|
7
|
-
public extern PartyUpgrader();
|
8
|
-
}
|
9
|
-
}
|
@@ -37,7 +37,5 @@ namespace TaleWorlds.CampaignSystem.Party.PartyComponents
|
|
37
37
|
protected override extern void OnFinalize();
|
38
38
|
|
39
39
|
public override extern void ClearCachedName();
|
40
|
-
|
41
|
-
public static extern int CreateRandomValueForNewCommonArea(Hero commonAreaOwner, CommonArea commonArea);
|
42
40
|
}
|
43
41
|
}
|
@@ -11,7 +11,7 @@ namespace TaleWorlds.CampaignSystem.Roster
|
|
11
11
|
{
|
12
12
|
public FlattenedTroopRosterElement this[UniqueTroopDescriptor index] { get; set; }
|
13
13
|
|
14
|
-
public IEnumerable<CharacterObject> Troops { [IteratorStateMachine(typeof(
|
14
|
+
public IEnumerable<CharacterObject> Troops { [IteratorStateMachine(typeof(_003Cget_Troops_003Ed__17))]
|
15
15
|
get; }
|
16
16
|
|
17
17
|
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
@@ -24,6 +24,8 @@ namespace TaleWorlds.CampaignSystem.Roster
|
|
24
24
|
|
25
25
|
public extern void Add(List<TroopRosterElement> roster);
|
26
26
|
|
27
|
+
public extern void Add(TroopRosterElement troop);
|
28
|
+
|
27
29
|
public extern void Add(CharacterObject troop, int number, int woundedNumber = 0);
|
28
30
|
|
29
31
|
public extern UniqueTroopDescriptor Add(CharacterObject troop, bool isWounded = false, int xp = 0);
|
@@ -38,7 +40,7 @@ namespace TaleWorlds.CampaignSystem.Roster
|
|
38
40
|
|
39
41
|
public extern UniqueTroopDescriptor FindIndexOfCharacter(CharacterObject character);
|
40
42
|
|
41
|
-
[IteratorStateMachine(typeof(
|
43
|
+
[IteratorStateMachine(typeof(_003CGetEnumerator_003Ed__21))]
|
42
44
|
public extern IEnumerator<FlattenedTroopRosterElement> GetEnumerator();
|
43
45
|
|
44
46
|
extern IEnumerator IEnumerable.GetEnumerator();
|
@@ -7,6 +7,8 @@ namespace TaleWorlds.CampaignSystem.Roster
|
|
7
7
|
{
|
8
8
|
public struct FlattenedTroopRosterElement
|
9
9
|
{
|
10
|
+
public static readonly FlattenedTroopRosterElement DefaultFlattenedTroopRosterElement;
|
11
|
+
|
10
12
|
[SaveableProperty(5)]
|
11
13
|
public RosterTroopState State { [CompilerGenerated]
|
12
14
|
get; }
|
@@ -32,6 +32,10 @@ namespace TaleWorlds.CampaignSystem.Roster
|
|
32
32
|
public int FoodVariety { [CompilerGenerated]
|
33
33
|
get; }
|
34
34
|
|
35
|
+
[CachedData]
|
36
|
+
public int TotalValue { [CompilerGenerated]
|
37
|
+
get; }
|
38
|
+
|
35
39
|
[CachedData]
|
36
40
|
public int NumberOfPackAnimals { [CompilerGenerated]
|
37
41
|
get; }
|
@@ -40,7 +40,7 @@ namespace TaleWorlds.CampaignSystem.Roster
|
|
40
40
|
|
41
41
|
public override extern int GetHashCode();
|
42
42
|
|
43
|
-
public extern void
|
43
|
+
public static extern void CalculateCachedStatsOnLoad();
|
44
44
|
|
45
45
|
public extern FlattenedTroopRoster ToFlattenedRoster();
|
46
46
|
|
@@ -105,6 +105,8 @@ namespace TaleWorlds.CampaignSystem.Roster
|
|
105
105
|
|
106
106
|
public extern bool Contains(CharacterObject character);
|
107
107
|
|
108
|
+
public extern void ValidateTroopListCache();
|
109
|
+
|
108
110
|
public extern List<TroopRosterElement> GetTroopRoster();
|
109
111
|
|
110
112
|
public extern void Clear();
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using TaleWorlds.SaveSystem.Resolvers;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.SaveCompability
|
4
|
+
{
|
5
|
+
public class EndCaptivityDetailEnumResolver : IEnumResolver
|
6
|
+
{
|
7
|
+
public extern string ResolveObject(string originalObject);
|
8
|
+
|
9
|
+
public extern EndCaptivityDetailEnumResolver();
|
10
|
+
}
|
11
|
+
}
|
@@ -1,9 +1,12 @@
|
|
1
|
-
using System;
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using TaleWorlds.Localization;
|
2
3
|
|
3
4
|
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
5
|
{
|
5
|
-
public class AntiEmpireConspiracyBeginsSceneNotificationItem :
|
6
|
+
public class AntiEmpireConspiracyBeginsSceneNotificationItem : EmpireConspiracySupportsSceneNotificationItemBase
|
6
7
|
{
|
7
|
-
public
|
8
|
+
public override TextObject TitleText { get; }
|
9
|
+
|
10
|
+
public extern AntiEmpireConspiracyBeginsSceneNotificationItem(Hero kingHero, List<Kingdom> antiEmpireFactions);
|
8
11
|
}
|
9
12
|
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
|
-
{
|
5
|
-
public class AntiEmpireConspiracySupportsSceneNotificationItem : CampaignSceneNotificationBase
|
6
|
-
{
|
7
|
-
public extern AntiEmpireConspiracySupportsSceneNotificationItem(Hero playerHero, Action affirmativeAction, string soundEventPath = "");
|
8
|
-
}
|
9
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
|
-
{
|
5
|
-
public class BecomeEmpireKingSceneNotificationItem : CampaignSceneNotificationBase
|
6
|
-
{
|
7
|
-
public extern BecomeEmpireKingSceneNotificationItem(Hero playerHero, Action affirmativeAction, string soundEventPath = "");
|
8
|
-
}
|
9
|
-
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class BecomeKingSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero NewLeaderHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public override string SceneID { get; }
|
14
|
+
|
15
|
+
public override TextObject TitleText { get; }
|
16
|
+
|
17
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
18
|
+
|
19
|
+
public override extern IEnumerable<Banner> GetBanners();
|
20
|
+
|
21
|
+
public extern BecomeKingSceneNotificationItem(Hero newLeaderHero);
|
22
|
+
}
|
23
|
+
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
|
-
{
|
5
|
-
public class BecomeNonEmpireKingSceneNotificationItem : CampaignSceneNotificationBase
|
6
|
-
{
|
7
|
-
public extern BecomeNonEmpireKingSceneNotificationItem(Hero playerHero, Action affirmativeAction, string soundEventPath = "");
|
8
|
-
}
|
9
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
using System.Collections.Generic;
|
3
|
-
using System.Runtime.CompilerServices;
|
4
|
-
using TaleWorlds.Core;
|
5
|
-
|
6
|
-
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
-
{
|
8
|
-
public class CampaignSceneNotificationBase : SceneNotificationData
|
9
|
-
{
|
10
|
-
public List<CampaignSceneNotificationHero> Heroes { [CompilerGenerated]
|
11
|
-
get; }
|
12
|
-
|
13
|
-
public extern CampaignSceneNotificationBase(string sceneID, string titleText, string affirmativeDescriptionText, string negativeDescriptionText, bool isAffirmativeOptionShown, bool isNegativeOptionShown, string affirmativeText, string negativeText, Action affirmativeAction, Action negativeAction, string soundEventPath = "", string affirmativeHintText = null, string affirmativeHintTextExtended = null);
|
14
|
-
}
|
15
|
-
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public static class CampaignSceneNotificationHelper
|
9
|
+
{
|
10
|
+
public static extern SceneNotificationData.SceneNotificationCharacter GetBodyguardOfCulture(CultureObject culture);
|
11
|
+
|
12
|
+
public static extern void RemoveWeaponsFromEquipment(ref Equipment equipment, bool removeHelmet = false, bool removeShoulder = false);
|
13
|
+
|
14
|
+
public static extern string GetChildStageEquipmentIDFromCulture(CultureObject childCulture);
|
15
|
+
|
16
|
+
public static extern CharacterObject GetRandomTroopForCulture(CultureObject culture);
|
17
|
+
|
18
|
+
[IteratorStateMachine(typeof(_003CGetMilitaryAudienceForHero_003Ed__4))]
|
19
|
+
public static extern IEnumerable<Hero> GetMilitaryAudienceForHero(Hero hero, bool includeClanLeader = true, bool onlyClanMembers = false);
|
20
|
+
|
21
|
+
[IteratorStateMachine(typeof(_003CGetMilitaryAudienceForKingdom_003Ed__5))]
|
22
|
+
public static extern IEnumerable<Hero> GetMilitaryAudienceForKingdom(Kingdom kingdom, bool includeKingdomLeader = true);
|
23
|
+
|
24
|
+
public static extern TextObject GetFormalDayAndSeasonText(CampaignTime time);
|
25
|
+
|
26
|
+
public static extern TextObject GetFormalNameForKingdom(Kingdom kingdom);
|
27
|
+
|
28
|
+
public static extern SceneNotificationData.SceneNotificationCharacter CreateNotificationCharacterFromHero(Hero hero, Equipment overridenEquipment = null, bool useCivilian = false, BodyProperties overriddenBodyProperties = default(BodyProperties), uint overriddenColor1 = uint.MaxValue, uint overriddenColor2 = uint.MaxValue, bool useHorse = false);
|
29
|
+
|
30
|
+
public static extern ItemObject GetDefaultHorseItem();
|
31
|
+
}
|
32
|
+
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core;
|
3
|
-
|
4
|
-
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
5
|
-
{
|
6
|
-
public struct CampaignSceneNotificationHero
|
7
|
-
{
|
8
|
-
public Hero Hero { [CompilerGenerated]
|
9
|
-
get; }
|
10
|
-
|
11
|
-
public Equipment OverriddenEquipment { [CompilerGenerated]
|
12
|
-
get; }
|
13
|
-
|
14
|
-
public bool UseCivilianEquipment { [CompilerGenerated]
|
15
|
-
get; }
|
16
|
-
|
17
|
-
public extern CampaignSceneNotificationHero(Hero hero, Equipment overriddenEquipment = null, bool useCivilianEquipment = false);
|
18
|
-
}
|
19
|
-
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class ClanMemberPeaceDeathSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero DeadHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public override string SceneID { get; }
|
14
|
+
|
15
|
+
public override TextObject TitleText { get; }
|
16
|
+
|
17
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
18
|
+
|
19
|
+
public override extern IEnumerable<Banner> GetBanners();
|
20
|
+
|
21
|
+
public extern ClanMemberPeaceDeathSceneNotificationItem(Hero deadHero);
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class ClanMemberWarDeathSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero DeadHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public override string SceneID { get; }
|
14
|
+
|
15
|
+
public override TextObject TitleText { get; }
|
16
|
+
|
17
|
+
public override extern IEnumerable<Banner> GetBanners();
|
18
|
+
|
19
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
20
|
+
|
21
|
+
public extern ClanMemberWarDeathSceneNotificationItem(Hero deadHero);
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class DeathOldAgeSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero DeadHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public override string SceneID { get; }
|
14
|
+
|
15
|
+
public override TextObject TitleText { get; }
|
16
|
+
|
17
|
+
public override extern IEnumerable<Banner> GetBanners();
|
18
|
+
|
19
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
20
|
+
|
21
|
+
public extern DeathOldAgeSceneNotificationItem(Hero deadHero);
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class DeclareDragonBannerSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public bool PlayerWantsToRestore { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public override string SceneID { get; }
|
14
|
+
|
15
|
+
public override TextObject TitleText { get; }
|
16
|
+
|
17
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
18
|
+
|
19
|
+
public override extern IEnumerable<Banner> GetBanners();
|
20
|
+
|
21
|
+
public extern DeclareDragonBannerSceneNotificationItem(bool playerWantsToRestore);
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class EmpireConspiracyBeginsSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero PlayerHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public Kingdom Empire { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public bool IsConspiracyAgainstEmpire { [CompilerGenerated]
|
17
|
+
get; }
|
18
|
+
|
19
|
+
public override string SceneID { get; }
|
20
|
+
|
21
|
+
public override TextObject TitleText { get; }
|
22
|
+
|
23
|
+
public override extern IEnumerable<Banner> GetBanners();
|
24
|
+
|
25
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
26
|
+
|
27
|
+
public extern EmpireConspiracyBeginsSceneNotificationItem(Hero playerHero, Kingdom empire, bool isConspiracyAgainstEmpire);
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public abstract class EmpireConspiracySupportsSceneNotificationItemBase : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero King { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public override string SceneID { get; }
|
14
|
+
|
15
|
+
public override TextObject AffirmativeText { get; }
|
16
|
+
|
17
|
+
public override extern IEnumerable<Banner> GetBanners();
|
18
|
+
|
19
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
20
|
+
|
21
|
+
protected extern EmpireConspiracySupportsSceneNotificationItemBase(Hero kingHero);
|
22
|
+
}
|
23
|
+
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
|
-
{
|
5
|
-
public class EmpireDestroyedSceneNotificationItem : CampaignSceneNotificationBase
|
6
|
-
{
|
7
|
-
public extern EmpireDestroyedSceneNotificationItem(Hero leaderOfEmpireHero, Hero otherHero, Action affirmativeAction, string soundEventPath = "");
|
8
|
-
}
|
9
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
|
-
{
|
5
|
-
public class EmpireUnitedSceneNotificationItem : CampaignSceneNotificationBase
|
6
|
-
{
|
7
|
-
public extern EmpireUnitedSceneNotificationItem(Hero leaderOfEmpireHero, Hero otherHero, Action affirmativeAction, string soundEventPath = "");
|
8
|
-
}
|
9
|
-
}
|
@@ -1,9 +1,21 @@
|
|
1
1
|
using System;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
2
5
|
|
3
6
|
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
7
|
{
|
5
|
-
public class FindingFirstBannerPieceSceneNotificationItem :
|
8
|
+
public class FindingFirstBannerPieceSceneNotificationItem : SceneNotificationData
|
6
9
|
{
|
7
|
-
public
|
10
|
+
public Hero PlayerHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public override string SceneID { get; }
|
14
|
+
|
15
|
+
public override TextObject TitleText { get; }
|
16
|
+
|
17
|
+
public override extern void OnCloseAction();
|
18
|
+
|
19
|
+
public extern FindingFirstBannerPieceSceneNotificationItem(Hero playerHero, Action onCloseAction = null);
|
8
20
|
}
|
9
21
|
}
|
@@ -1,9 +1,21 @@
|
|
1
|
-
using System;
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
2
5
|
|
3
6
|
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
7
|
{
|
5
|
-
public class FindingSecondBannerPieceSceneNotificationItem :
|
8
|
+
public class FindingSecondBannerPieceSceneNotificationItem : SceneNotificationData
|
6
9
|
{
|
7
|
-
public
|
10
|
+
public Hero PlayerHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public override string SceneID { get; }
|
14
|
+
|
15
|
+
public override TextObject TitleText { get; }
|
16
|
+
|
17
|
+
public override extern IEnumerable<Banner> GetBanners();
|
18
|
+
|
19
|
+
public extern FindingSecondBannerPieceSceneNotificationItem(Hero playerHero);
|
8
20
|
}
|
9
21
|
}
|
@@ -1,9 +1,27 @@
|
|
1
|
-
using System;
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
2
5
|
|
3
6
|
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
7
|
{
|
5
|
-
public class FindingThirdBannerPieceSceneNotificationItem :
|
8
|
+
public class FindingThirdBannerPieceSceneNotificationItem : SceneNotificationData
|
6
9
|
{
|
7
|
-
public
|
10
|
+
public override string SceneID { get; }
|
11
|
+
|
12
|
+
public override bool IsAffirmativeOptionShown { [CompilerGenerated]
|
13
|
+
get; }
|
14
|
+
|
15
|
+
public override TextObject TitleText { get; }
|
16
|
+
|
17
|
+
public override TextObject AffirmativeTitleText { get; }
|
18
|
+
|
19
|
+
public override TextObject AffirmativeText { get; }
|
20
|
+
|
21
|
+
public override TextObject AffirmativeDescriptionText { get; }
|
22
|
+
|
23
|
+
public override extern IEnumerable<Banner> GetBanners();
|
24
|
+
|
25
|
+
public extern FindingThirdBannerPieceSceneNotificationItem();
|
8
26
|
}
|
9
27
|
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class HeirComingOfAgeFemaleSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero MentorHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public Hero HeroCameOfAge { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override TextObject TitleText { get; }
|
19
|
+
|
20
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
21
|
+
|
22
|
+
public extern HeirComingOfAgeFemaleSceneNotificationItem(Hero mentorHero, Hero heroCameOfAge);
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class HeirComingOfAgeSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero MentorHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public Hero HeroCameOfAge { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override TextObject TitleText { get; }
|
19
|
+
|
20
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
21
|
+
|
22
|
+
public extern HeirComingOfAgeSceneNotificationItem(Hero mentorHero, Hero heroCameOfAge);
|
23
|
+
}
|
24
|
+
}
|
@@ -1,10 +1,57 @@
|
|
1
1
|
using System;
|
2
|
+
using System.Collections.Generic;
|
3
|
+
using System.Runtime.CompilerServices;
|
4
|
+
using TaleWorlds.Core;
|
2
5
|
using TaleWorlds.Localization;
|
3
6
|
|
4
7
|
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
5
8
|
{
|
6
|
-
public class HeroExecutionSceneNotificationData :
|
9
|
+
public class HeroExecutionSceneNotificationData : SceneNotificationData
|
7
10
|
{
|
8
|
-
|
11
|
+
protected static int MaxShownRelationChanges;
|
12
|
+
|
13
|
+
public Hero Executer { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public Hero Victim { [CompilerGenerated]
|
17
|
+
get; }
|
18
|
+
|
19
|
+
public override bool IsNegativeOptionShown { [CompilerGenerated]
|
20
|
+
get; }
|
21
|
+
|
22
|
+
public override string SceneID { get; }
|
23
|
+
|
24
|
+
public override TextObject NegativeText { get; }
|
25
|
+
|
26
|
+
public override bool IsAffirmativeOptionShown { get; }
|
27
|
+
|
28
|
+
public override TextObject TitleText { [CompilerGenerated]
|
29
|
+
get; }
|
30
|
+
|
31
|
+
public override TextObject AffirmativeText { [CompilerGenerated]
|
32
|
+
get; }
|
33
|
+
|
34
|
+
public override TextObject AffirmativeTitleText { [CompilerGenerated]
|
35
|
+
get; }
|
36
|
+
|
37
|
+
public override TextObject AffirmativeHintText { [CompilerGenerated]
|
38
|
+
get; }
|
39
|
+
|
40
|
+
public override TextObject AffirmativeHintTextExtended { [CompilerGenerated]
|
41
|
+
get; }
|
42
|
+
|
43
|
+
public override TextObject AffirmativeDescriptionText { [CompilerGenerated]
|
44
|
+
get; }
|
45
|
+
|
46
|
+
public override RelevantContextType RelevantContext { [CompilerGenerated]
|
47
|
+
get; }
|
48
|
+
|
49
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
50
|
+
|
51
|
+
public override extern void OnAffirmativeAction();
|
52
|
+
|
53
|
+
public static extern HeroExecutionSceneNotificationData CreateForPlayerExecutingHero(Hero dyingHero, Action onAffirmativeAction, RelevantContextType relevantContextType = RelevantContextType.Any);
|
54
|
+
|
55
|
+
public static extern HeroExecutionSceneNotificationData CreateForInformingPlayer(Hero executingHero, Hero dyingHero, RelevantContextType relevantContextType = RelevantContextType.Any);
|
9
56
|
}
|
10
57
|
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class JoinKingdomSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Clan NewMemberClan { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public Kingdom KingdomToUse { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override RelevantContextType RelevantContext { get; }
|
19
|
+
|
20
|
+
public override TextObject TitleText { get; }
|
21
|
+
|
22
|
+
public override extern IEnumerable<Banner> GetBanners();
|
23
|
+
|
24
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
25
|
+
|
26
|
+
public extern JoinKingdomSceneNotificationItem(Clan newMember, Kingdom kingdom);
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class KingdomCreatedSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Kingdom NewKingdom { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public override string SceneID { get; }
|
14
|
+
|
15
|
+
public override bool PauseActiveState { get; }
|
16
|
+
|
17
|
+
public override TextObject TitleText { get; }
|
18
|
+
|
19
|
+
public override TextObject AffirmativeText { get; }
|
20
|
+
|
21
|
+
public override extern IEnumerable<Banner> GetBanners();
|
22
|
+
|
23
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
24
|
+
|
25
|
+
public extern KingdomCreatedSceneNotificationItem(Kingdom newKingdom);
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class KingdomDestroyedSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Kingdom DestroyedKingdom { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public override string SceneID { get; }
|
14
|
+
|
15
|
+
public override TextObject TitleText { get; }
|
16
|
+
|
17
|
+
public override extern IEnumerable<Banner> GetBanners();
|
18
|
+
|
19
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
20
|
+
|
21
|
+
public extern KingdomDestroyedSceneNotificationItem(Kingdom destroyedKingdom);
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class MainHeroBattleDeathNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero DeadHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public CultureObject KillerCulture { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override TextObject TitleText { get; }
|
19
|
+
|
20
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
21
|
+
|
22
|
+
public extern MainHeroBattleDeathNotificationItem(Hero deadHero, CultureObject killerCulture = null);
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class MainHeroBattleVictoryDeathNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero DeadHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public List<CharacterObject> EncounterAllyCharacters { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override TextObject TitleText { get; }
|
19
|
+
|
20
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
21
|
+
|
22
|
+
public extern MainHeroBattleVictoryDeathNotificationItem(Hero deadHero, List<CharacterObject> encounterAllyCharacters);
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class MarriageSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero GroomHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public Hero BrideHero { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override TextObject TitleText { get; }
|
19
|
+
|
20
|
+
public override RelevantContextType RelevantContext { [CompilerGenerated]
|
21
|
+
get; }
|
22
|
+
|
23
|
+
public override extern IEnumerable<Banner> GetBanners();
|
24
|
+
|
25
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
26
|
+
|
27
|
+
public extern MarriageSceneNotificationItem(Hero groomHero, Hero brideHero, RelevantContextType relevantContextType = RelevantContextType.Any);
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class NewBornFemaleHeroSceneAlternateNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero MaleHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public Hero FemaleHero { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override TextObject TitleText { get; }
|
19
|
+
|
20
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
21
|
+
|
22
|
+
public extern NewBornFemaleHeroSceneAlternateNotificationItem(Hero maleHero, Hero femaleHero);
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class NewBornFemaleHeroSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero MaleHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public Hero FemaleHero { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override TextObject TitleText { get; }
|
19
|
+
|
20
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
21
|
+
|
22
|
+
public extern NewBornFemaleHeroSceneNotificationItem(Hero maleHero, Hero femaleHero);
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class NewBornSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero MaleHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public Hero FemaleHero { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override TextObject TitleText { get; }
|
19
|
+
|
20
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
21
|
+
|
22
|
+
public extern NewBornSceneNotificationItem(Hero maleHero, Hero femaleHero);
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
7
|
+
{
|
8
|
+
public class PledgeAllegianceSceneNotificationItem : SceneNotificationData
|
9
|
+
{
|
10
|
+
public Hero PlayerHero { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public bool PlayerWantsToRestore { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override TextObject TitleText { get; }
|
19
|
+
|
20
|
+
public override extern IEnumerable<Banner> GetBanners();
|
21
|
+
|
22
|
+
public override extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
23
|
+
|
24
|
+
public extern PledgeAllegianceSceneNotificationItem(Hero playerHero, bool playerWantsToRestore);
|
25
|
+
}
|
26
|
+
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
|
-
{
|
5
|
-
public class PledgeEmpireSceneNotificationItem : CampaignSceneNotificationBase
|
6
|
-
{
|
7
|
-
public extern PledgeEmpireSceneNotificationItem(Hero playerHero, Hero empireLeaderHero, Action affirmativeAction, string soundEventPath = "");
|
8
|
-
}
|
9
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
|
-
{
|
5
|
-
public class PledgeNonEmpireSceneNotificationItem : CampaignSceneNotificationBase
|
6
|
-
{
|
7
|
-
public extern PledgeNonEmpireSceneNotificationItem(Hero playerHero, Hero nonEmpireLeaderHero, Action affirmativeAction, string soundEventPath = "");
|
8
|
-
}
|
9
|
-
}
|
@@ -1,9 +1,11 @@
|
|
1
|
-
using
|
1
|
+
using TaleWorlds.Localization;
|
2
2
|
|
3
3
|
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
4
|
{
|
5
|
-
public class ProEmpireConspiracyBeginsSceneNotificationItem :
|
5
|
+
public class ProEmpireConspiracyBeginsSceneNotificationItem : EmpireConspiracySupportsSceneNotificationItemBase
|
6
6
|
{
|
7
|
-
public
|
7
|
+
public override TextObject TitleText { get; }
|
8
|
+
|
9
|
+
public extern ProEmpireConspiracyBeginsSceneNotificationItem(Hero kingHero);
|
8
10
|
}
|
9
11
|
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
4
|
-
{
|
5
|
-
public class ProEmpireConspiracySupportsSceneNotificationItem : CampaignSceneNotificationBase
|
6
|
-
{
|
7
|
-
public extern ProEmpireConspiracySupportsSceneNotificationItem(Hero playerHero, Action affirmativeAction, string soundEventPath = "");
|
8
|
-
}
|
9
|
-
}
|
@@ -1,10 +1,24 @@
|
|
1
|
-
using System;
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
2
3
|
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Localization;
|
3
5
|
|
4
6
|
namespace TaleWorlds.CampaignSystem.SceneInformationPopupTypes
|
5
7
|
{
|
6
8
|
public class SupportedFactionDefeatedSceneNotificationItem : SceneNotificationData
|
7
9
|
{
|
8
|
-
public
|
10
|
+
public Kingdom Faction { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public bool PlayerWantsRestore { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public override string SceneID { get; }
|
17
|
+
|
18
|
+
public override TextObject TitleText { get; }
|
19
|
+
|
20
|
+
public override extern IEnumerable<Banner> GetBanners();
|
21
|
+
|
22
|
+
public extern SupportedFactionDefeatedSceneNotificationItem(Kingdom faction, bool playerWantsRestore);
|
9
23
|
}
|
10
24
|
}
|
@@ -46,9 +46,6 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
46
46
|
[SaveableField(107)]
|
47
47
|
public bool StopPlayerPassage;
|
48
48
|
|
49
|
-
[SaveableField(113)]
|
50
|
-
public int RandomValue;
|
51
|
-
|
52
49
|
public const int MinVisibleTroopNumber = 2;
|
53
50
|
|
54
51
|
public const int MaxVisibleTroopNumber = 10;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using System.Xml;
|
4
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
4
5
|
using TaleWorlds.CampaignSystem.Party;
|
5
6
|
using TaleWorlds.Core;
|
6
7
|
using TaleWorlds.Library;
|
@@ -29,6 +30,9 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
29
30
|
|
30
31
|
public extern void UpdateNextPossibleAttackTime();
|
31
32
|
|
33
|
+
[IteratorStateMachine(typeof(_003CGetDefenderParties_003Ed__12))]
|
34
|
+
public extern IEnumerable<PartyBase> GetDefenderParties(MapEvent.BattleTypes battleType);
|
35
|
+
|
32
36
|
public extern void SetScene(string sceneName);
|
33
37
|
|
34
38
|
public extern Hideout();
|
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|
3
3
|
using System.Runtime.CompilerServices;
|
4
4
|
using System.Xml;
|
5
5
|
using TaleWorlds.CampaignSystem.Map;
|
6
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
6
7
|
using TaleWorlds.CampaignSystem.Party;
|
7
8
|
using TaleWorlds.CampaignSystem.Party.PartyComponents;
|
8
9
|
using TaleWorlds.CampaignSystem.Roster;
|
@@ -16,7 +17,7 @@ using TaleWorlds.SaveSystem;
|
|
16
17
|
|
17
18
|
namespace TaleWorlds.CampaignSystem.Settlements
|
18
19
|
{
|
19
|
-
public sealed class Settlement : MBObjectBase, IMapPoint, ITrackableCampaignObject, ITrackableBase, ISiegeEventSide, IMapEntity
|
20
|
+
public sealed class Settlement : MBObjectBase, IMapPoint, ITrackableCampaignObject, ITrackableBase, ISiegeEventSide, IMapEntity, IRandomOwner
|
20
21
|
{
|
21
22
|
public enum SiegeState
|
22
23
|
{
|
@@ -109,6 +110,8 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
109
110
|
|
110
111
|
public float Prosperity { get; set; }
|
111
112
|
|
113
|
+
public int RandomValue { get; }
|
114
|
+
|
112
115
|
public Vec2 GetPosition2D { get; }
|
113
116
|
|
114
117
|
public float Militia { get; set; }
|
@@ -132,7 +135,8 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
132
135
|
public MBReadOnlyList<Hero> Notables { [CompilerGenerated]
|
133
136
|
get; }
|
134
137
|
|
135
|
-
public
|
138
|
+
public SettlementComponent SettlementComponent { [CompilerGenerated]
|
139
|
+
get; }
|
136
140
|
|
137
141
|
public Vec2 GatePosition { get; }
|
138
142
|
|
@@ -157,8 +161,6 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
157
161
|
public MBReadOnlyList<Village> BoundVillages { [CompilerGenerated]
|
158
162
|
get; }
|
159
163
|
|
160
|
-
public DeterministicRandom Random { get; }
|
161
|
-
|
162
164
|
public MobileParty LastAttackerParty { get; set; }
|
163
165
|
|
164
166
|
[SaveableProperty(149)]
|
@@ -178,9 +180,6 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
178
180
|
public SiegeStrategy SiegeStrategy { [CompilerGenerated]
|
179
181
|
get; }
|
180
182
|
|
181
|
-
public IEnumerable<PartyBase> SiegeParties { [IteratorStateMachine(typeof(_003Cget_SiegeParties_003Ed__193))]
|
182
|
-
get; }
|
183
|
-
|
184
183
|
[SaveableProperty(133)]
|
185
184
|
public List<CommonArea> CommonAreas { [CompilerGenerated]
|
186
185
|
get; }
|
@@ -239,32 +238,24 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
239
238
|
|
240
239
|
public extern Vec3 GetLogicalPosition();
|
241
240
|
|
242
|
-
public extern
|
243
|
-
|
244
|
-
public extern T AddComponent<T>() where T : SettlementComponent;
|
245
|
-
|
246
|
-
public extern SettlementComponent GetComponent(Type type);
|
241
|
+
public extern IEnumerable<PartyBase> GetInvolvedPartiesForEventType(MapEvent.BattleTypes mapEventType = MapEvent.BattleTypes.Siege);
|
247
242
|
|
248
|
-
public extern
|
243
|
+
public extern bool IsUnderRebellionAttack();
|
249
244
|
|
250
245
|
public extern Settlement();
|
251
246
|
|
252
247
|
public extern Settlement(TextObject name, LocationComplex locationComplex, PartyTemplateObject pt);
|
253
248
|
|
249
|
+
public extern float GetSettlementValueForEnemyHero(Hero hero);
|
250
|
+
|
254
251
|
public extern float GetValue(Hero hero = null, bool countAlsoBoundedSettlements = true);
|
255
252
|
|
256
253
|
public override extern TextObject GetName();
|
257
254
|
|
258
255
|
public extern float GetSettlementValueForFaction(IFaction faction);
|
259
256
|
|
260
|
-
public extern float GetSettlementValueForEnemyHero(Hero hero);
|
261
|
-
|
262
|
-
public extern void CalculateSettlementValueForFactions();
|
263
|
-
|
264
257
|
public override extern string ToString();
|
265
258
|
|
266
|
-
public extern void OnRelatedPartyRemoved(MobileParty mobileParty);
|
267
|
-
|
268
259
|
public override extern void Deserialize(MBObjectManager objectManager, XmlNode node);
|
269
260
|
|
270
261
|
public extern void OnFinishLoadState();
|
@@ -325,8 +316,8 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
325
316
|
|
326
317
|
extern bool IMapEntity.IsAllyOf(IFaction faction);
|
327
318
|
|
328
|
-
public extern void GetMountAndHarnessVisualIdsForPartyIcon(out string mountStringId, out string harnessStringId);
|
329
|
-
|
330
319
|
public extern void OnPartyInteraction(MobileParty mobileParty);
|
320
|
+
|
321
|
+
public extern void GetMountAndHarnessVisualIdsForPartyIcon(out string mountStringId, out string harnessStringId);
|
331
322
|
}
|
332
323
|
}
|
@@ -48,8 +48,6 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
48
48
|
|
49
49
|
public TextObject Name { get; }
|
50
50
|
|
51
|
-
public Settlement TradeBound { get; }
|
52
|
-
|
53
51
|
[SaveableProperty(80)]
|
54
52
|
public bool IsOwnerUnassigned { [CompilerGenerated]
|
55
53
|
get; [CompilerGenerated]
|
@@ -1,6 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using System.Xml;
|
4
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
4
5
|
using TaleWorlds.CampaignSystem.Party;
|
5
6
|
using TaleWorlds.CampaignSystem.Settlements.Buildings;
|
6
7
|
using TaleWorlds.CampaignSystem.Settlements.Workshops;
|
@@ -83,6 +84,8 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
83
84
|
|
84
85
|
public float Loyalty { get; set; }
|
85
86
|
|
87
|
+
public IReadOnlyList<Village> TradeBoundVillages { get; }
|
88
|
+
|
86
89
|
[SaveableProperty(1005)]
|
87
90
|
public Workshop[] Workshops { [CompilerGenerated]
|
88
91
|
get; [CompilerGenerated]
|
@@ -98,7 +101,7 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
98
101
|
|
99
102
|
public Hero Governor { get; set; }
|
100
103
|
|
101
|
-
public static IEnumerable<Town> AllFiefs { [IteratorStateMachine(typeof(
|
104
|
+
public static IEnumerable<Town> AllFiefs { [IteratorStateMachine(typeof(_003Cget_AllFiefs_003Ed__104))]
|
102
105
|
get; }
|
103
106
|
|
104
107
|
public static IReadOnlyList<Town> AllTowns { get; }
|
@@ -127,6 +130,9 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
127
130
|
|
128
131
|
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
129
132
|
|
133
|
+
[IteratorStateMachine(typeof(_003CGetDefenderParties_003Ed__23))]
|
134
|
+
public extern IEnumerable<PartyBase> GetDefenderParties(MapEvent.BattleTypes battleType);
|
135
|
+
|
130
136
|
public extern int FoodStocksUpperLimit();
|
131
137
|
|
132
138
|
public extern Town();
|
@@ -159,6 +165,6 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
159
165
|
|
160
166
|
protected override extern void OnInventoryUpdated(ItemRosterElement item, int count);
|
161
167
|
|
162
|
-
public extern float GetItemCategoryPriceIndex(ItemCategory itemCategory
|
168
|
+
public extern float GetItemCategoryPriceIndex(ItemCategory itemCategory);
|
163
169
|
}
|
164
170
|
}
|
@@ -30,7 +30,7 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
30
30
|
|
31
31
|
public extern float GetSupply(ItemCategory itemCategory);
|
32
32
|
|
33
|
-
public extern float GetPriceFactor(ItemCategory itemCategory
|
33
|
+
public extern float GetPriceFactor(ItemCategory itemCategory);
|
34
34
|
|
35
35
|
public extern int GetPrice(ItemObject item, MobileParty tradingParty = null, bool isSelling = false, PartyBase merchantParty = null);
|
36
36
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using System.Xml;
|
4
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
4
5
|
using TaleWorlds.CampaignSystem.Party;
|
5
6
|
using TaleWorlds.CampaignSystem.Party.PartyComponents;
|
6
7
|
using TaleWorlds.Core;
|
@@ -44,7 +45,7 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
44
45
|
|
45
46
|
public Settlement Bound { get; }
|
46
47
|
|
47
|
-
public
|
48
|
+
public Settlement TradeBound { get; }
|
48
49
|
|
49
50
|
public VillageMarketData MarketData { get; }
|
50
51
|
|
@@ -70,6 +71,9 @@ namespace TaleWorlds.CampaignSystem.Settlements
|
|
70
71
|
|
71
72
|
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
72
73
|
|
74
|
+
[IteratorStateMachine(typeof(_003CGetDefenderParties_003Ed__15))]
|
75
|
+
public extern IEnumerable<PartyBase> GetDefenderParties(MapEvent.BattleTypes battleType);
|
76
|
+
|
73
77
|
public extern Village();
|
74
78
|
|
75
79
|
public extern void DailyTick();
|
@@ -59,7 +59,5 @@ namespace TaleWorlds.CampaignSystem.Settlements.Buildings
|
|
59
59
|
public extern float GetBaseBuildingEffectAmount(BuildingEffectEnum effect, int level);
|
60
60
|
|
61
61
|
public extern TextObject GetExplanationAtLevel(int level);
|
62
|
-
|
63
|
-
public extern TextObject GetDailyExplanationAtLevel(float constructionPoints);
|
64
62
|
}
|
65
63
|
}
|
@@ -26,12 +26,14 @@ namespace TaleWorlds.CampaignSystem.Settlements.Locations
|
|
26
26
|
|
27
27
|
public IAgentOriginBase AgentOrigin { get; }
|
28
28
|
|
29
|
-
public AgentData AgentData {
|
29
|
+
public AgentData AgentData { [CompilerGenerated]
|
30
|
+
get; }
|
30
31
|
|
31
32
|
public bool UseCivilianEquipment { [CompilerGenerated]
|
32
33
|
get; }
|
33
34
|
|
34
|
-
public string ActionSetCode {
|
35
|
+
public string ActionSetCode { [CompilerGenerated]
|
36
|
+
get; }
|
35
37
|
|
36
38
|
public string AlarmedActionSetCode { [CompilerGenerated]
|
37
39
|
get; }
|
@@ -60,8 +62,6 @@ namespace TaleWorlds.CampaignSystem.Settlements.Locations
|
|
60
62
|
|
61
63
|
public extern void SetAlleyOfCharacter(CommonArea commonArea);
|
62
64
|
|
63
|
-
public static extern LocationCharacter CreateGuildMaster(CultureObject culture, CharacterRelations relation, AddBehaviorsDelegate addBehaviorsDelegate);
|
64
|
-
|
65
65
|
public static extern LocationCharacter CreateBodyguardHero(Hero hero, MobileParty party, AddBehaviorsDelegate addBehaviorsDelegate);
|
66
66
|
}
|
67
67
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
3
4
|
using TaleWorlds.CampaignSystem.Party;
|
4
5
|
using TaleWorlds.Core;
|
5
6
|
using TaleWorlds.Library;
|
@@ -19,9 +20,6 @@ namespace TaleWorlds.CampaignSystem.Siege
|
|
19
20
|
|
20
21
|
public MobileParty BesiegerParty { get; }
|
21
22
|
|
22
|
-
public IEnumerable<PartyBase> SiegeParties { [IteratorStateMachine(typeof(_003Cget_SiegeParties_003Ed__24))]
|
23
|
-
get; }
|
24
|
-
|
25
23
|
public BattleSideEnum BattleSide { get; }
|
26
24
|
|
27
25
|
public MBReadOnlyList<SiegeEvent.SiegeEngineMissile> SiegeEngineMissiles { [CompilerGenerated]
|
@@ -45,6 +43,9 @@ namespace TaleWorlds.CampaignSystem.Siege
|
|
45
43
|
|
46
44
|
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
47
45
|
|
46
|
+
[IteratorStateMachine(typeof(_003CGetInvolvedPartiesForEventType_003Ed__23))]
|
47
|
+
public extern IEnumerable<PartyBase> GetInvolvedPartiesForEventType(MapEvent.BattleTypes mapEventType = MapEvent.BattleTypes.Siege);
|
48
|
+
|
48
49
|
public extern BesiegerCamp(SiegeEvent siegeEvent);
|
49
50
|
|
50
51
|
public extern bool IsBesiegerSideParty(MobileParty mobileParty);
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
2
3
|
using TaleWorlds.CampaignSystem.Party;
|
3
4
|
using TaleWorlds.Core;
|
4
5
|
using TaleWorlds.Library;
|
@@ -9,8 +10,6 @@ namespace TaleWorlds.CampaignSystem.Siege
|
|
9
10
|
{
|
10
11
|
SiegeEvent SiegeEvent { get; }
|
11
12
|
|
12
|
-
IEnumerable<PartyBase> SiegeParties { get; }
|
13
|
-
|
14
13
|
SiegeStrategy SiegeStrategy { get; }
|
15
14
|
|
16
15
|
BattleSideEnum BattleSide { get; }
|
@@ -21,6 +20,8 @@ namespace TaleWorlds.CampaignSystem.Siege
|
|
21
20
|
|
22
21
|
MBReadOnlyList<SiegeEvent.SiegeEngineMissile> SiegeEngineMissiles { get; }
|
23
22
|
|
23
|
+
IEnumerable<PartyBase> GetInvolvedPartiesForEventType(MapEvent.BattleTypes mapEventType = MapEvent.BattleTypes.Siege);
|
24
|
+
|
24
25
|
void OnTroopsKilledOnSide(int killCount);
|
25
26
|
|
26
27
|
void AddSiegeEngineMissile(SiegeEvent.SiegeEngineMissile missile);
|
@@ -226,13 +226,12 @@ namespace TaleWorlds.CampaignSystem.Siege
|
|
226
226
|
|
227
227
|
public bool IsPlayerSiegeEvent { get; }
|
228
228
|
|
229
|
-
public IEnumerable<PartyBase> Parties { [IteratorStateMachine(typeof(_003Cget_Parties_003Ed__25))]
|
230
|
-
get; }
|
231
|
-
|
232
229
|
public bool ReadyToBeRemoved { get; }
|
233
230
|
|
234
231
|
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
235
232
|
|
233
|
+
public extern List<PartyBase> GetInvolvedPartiesForEventType(MapEvent.BattleTypes battleType);
|
234
|
+
|
236
235
|
public extern SiegeEvent(Settlement settlement, MobileParty besiegerParty);
|
237
236
|
|
238
237
|
public extern ISiegeEventSide GetSiegeEventSide(BattleSideEnum side);
|
@@ -29,6 +29,6 @@ namespace TaleWorlds.CampaignSystem.TournamentGames
|
|
29
29
|
|
30
30
|
public override extern List<CharacterObject> GetParticipantCharacters(Settlement settlement, bool includePlayer = true, bool includeHeroes = true);
|
31
31
|
|
32
|
-
protected override extern ItemObject GetTournamentPrize(bool includePlayer, int
|
32
|
+
protected override extern ItemObject GetTournamentPrize(bool includePlayer, int lastRecordedLordCountForTournamentPrize);
|
33
33
|
}
|
34
34
|
}
|
@@ -16,7 +16,7 @@ namespace TaleWorlds.CampaignSystem.TournamentGames
|
|
16
16
|
}
|
17
17
|
|
18
18
|
[SaveableField(60)]
|
19
|
-
protected int
|
19
|
+
protected int _lastRecordedLordCountForTournamentPrize;
|
20
20
|
|
21
21
|
[SaveableProperty(10)]
|
22
22
|
public Town Town { [CompilerGenerated]
|
@@ -55,7 +55,7 @@ namespace TaleWorlds.CampaignSystem.TournamentGames
|
|
55
55
|
|
56
56
|
public abstract List<CharacterObject> GetParticipantCharacters(Settlement settlement, bool includePlayer = true, bool includeHeroes = true);
|
57
57
|
|
58
|
-
protected abstract ItemObject GetTournamentPrize(bool includePlayer, int
|
58
|
+
protected abstract ItemObject GetTournamentPrize(bool includePlayer, int lastRecordedLordCountForTournamentPrize);
|
59
59
|
|
60
60
|
protected extern TournamentGame(Town town, ItemObject prize = null);
|
61
61
|
|
@@ -8,8 +8,6 @@ namespace TaleWorlds.CampaignSystem.TroopSuppliers
|
|
8
8
|
{
|
9
9
|
public class PartyGroupTroopSupplier : IMissionTroopSupplier
|
10
10
|
{
|
11
|
-
public int NumActiveTroops { get; }
|
12
|
-
|
13
11
|
public int NumRemovedTroops { get; }
|
14
12
|
|
15
13
|
public int NumTroopsNotSupplied { get; }
|
@@ -20,6 +18,8 @@ namespace TaleWorlds.CampaignSystem.TroopSuppliers
|
|
20
18
|
|
21
19
|
public extern IEnumerable<IAgentOriginBase> SupplyTroops(int numberToAllocate);
|
22
20
|
|
21
|
+
public extern IEnumerable<IAgentOriginBase> GetAllTroops();
|
22
|
+
|
23
23
|
public extern int GetNumberOfPlayerControllableTroops();
|
24
24
|
|
25
25
|
public extern void OnTroopWounded(UniqueTroopDescriptor troopDescriptor);
|