@@ -0,0 +1,13 @@
|
|
1
|
+
using System;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
4
|
+
{
|
5
|
+
public class ActionCampaignOptionData : CampaignOptionData
|
6
|
+
{
|
7
|
+
public extern ActionCampaignOptionData(string identifier, int priorityIndex, CampaignOptionEnableState enableState, Action action, Func<CampaignOptionDisableStatus> getIsDisabledWithReason = null);
|
8
|
+
|
9
|
+
public override extern CampaignOptionDataType GetDataType();
|
10
|
+
|
11
|
+
public extern void ExecuteAction();
|
12
|
+
}
|
13
|
+
}
|
@@ -2,8 +2,8 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
4
4
|
using TaleWorlds.Core;
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
6
5
|
using TaleWorlds.Core.ViewModelCollection.BannerEditor;
|
6
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
7
7
|
using TaleWorlds.InputSystem;
|
8
8
|
using TaleWorlds.Library;
|
9
9
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using System;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
4
|
+
{
|
5
|
+
public class BooleanCampaignOptionData : CampaignOptionData
|
6
|
+
{
|
7
|
+
public extern BooleanCampaignOptionData(string identifier, int priorityIndex, CampaignOptionEnableState enableState, Func<float> getValue, Action<float> setValue, Func<CampaignOptionDisableStatus> getIsDisabledWithReason = null, bool isRelatedToDifficultyPreset = false, Func<float, CampaignOptionsDifficultyPresets> onGetDifficultyPresetFromValue = null, Func<CampaignOptionsDifficultyPresets, float> onGetValueFromDifficultyPreset = null);
|
8
|
+
|
9
|
+
public override extern CampaignOptionDataType GetDataType();
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
using System;
|
2
|
+
using TaleWorlds.Localization;
|
3
|
+
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
5
|
+
{
|
6
|
+
public abstract class CampaignOptionData : ICampaignOptionData
|
7
|
+
{
|
8
|
+
protected Func<float> _getValue;
|
9
|
+
|
10
|
+
protected Action<float> _setValue;
|
11
|
+
|
12
|
+
protected Func<float, CampaignOptionsDifficultyPresets> _onGetDifficultyPresetFromValue;
|
13
|
+
|
14
|
+
protected Func<CampaignOptionsDifficultyPresets, float> _onGetValueFromDifficultyPreset;
|
15
|
+
|
16
|
+
public extern CampaignOptionData(string identifier, int priorityIndex, CampaignOptionEnableState enableState, Func<float> getValue, Action<float> setValue, Func<CampaignOptionDisableStatus> getIsDisabledWithReason = null, bool isRelatedToDifficultyPreset = false, Func<float, CampaignOptionsDifficultyPresets> onGetDifficultyPresetFromValue = null, Func<CampaignOptionsDifficultyPresets, float> onGetValueFromDifficultyPreset = null);
|
17
|
+
|
18
|
+
public static extern TextObject GetNameOfOption(string optionIdentifier);
|
19
|
+
|
20
|
+
public static extern TextObject GetDescriptionOfOption(string optionIdentifier);
|
21
|
+
|
22
|
+
public extern int GetPriorityIndex();
|
23
|
+
|
24
|
+
public abstract CampaignOptionDataType GetDataType();
|
25
|
+
|
26
|
+
public extern bool IsRelatedToDifficultyPreset();
|
27
|
+
|
28
|
+
public extern float GetValueFromDifficultyPreset(CampaignOptionsDifficultyPresets preset);
|
29
|
+
|
30
|
+
public extern CampaignOptionDisableStatus GetIsDisabledWithReason();
|
31
|
+
|
32
|
+
public extern string GetIdentifier();
|
33
|
+
|
34
|
+
public extern CampaignOptionEnableState GetEnableState();
|
35
|
+
|
36
|
+
public extern string GetName();
|
37
|
+
|
38
|
+
public extern string GetDescription();
|
39
|
+
|
40
|
+
public extern float GetValue();
|
41
|
+
|
42
|
+
public extern void SetValue(float value);
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
2
|
+
{
|
3
|
+
public enum CampaignOptionDataType
|
4
|
+
{
|
5
|
+
Boolean,
|
6
|
+
Numeric,
|
7
|
+
Selection,
|
8
|
+
Action
|
9
|
+
}
|
10
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
using System.Runtime.CompilerServices;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
4
|
+
{
|
5
|
+
public struct CampaignOptionDisableStatus
|
6
|
+
{
|
7
|
+
public bool IsDisabled { [CompilerGenerated]
|
8
|
+
get; }
|
9
|
+
|
10
|
+
public string DisabledReason { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public float ValueIfDisabled { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
16
|
+
public extern CampaignOptionDisableStatus(bool isDisabled, string disabledReason, float valueIfDisabled = -1f);
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
2
|
+
{
|
3
|
+
public enum CampaignOptionEnableState
|
4
|
+
{
|
5
|
+
Enabled,
|
6
|
+
DisabledLater,
|
7
|
+
Disabled
|
8
|
+
}
|
9
|
+
}
|
@@ -1,26 +1,18 @@
|
|
1
1
|
using System;
|
2
|
-
using
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
5
|
using TaleWorlds.Library;
|
4
6
|
|
5
7
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
6
8
|
{
|
7
9
|
public class CampaignOptionItemVM : ViewModel
|
8
10
|
{
|
9
|
-
public
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
15
|
-
|
16
|
-
public enum EnableState
|
17
|
-
{
|
18
|
-
Enabled,
|
19
|
-
DisabledLater,
|
20
|
-
Disabled
|
21
|
-
}
|
22
|
-
|
23
|
-
public string Identifier { get; }
|
11
|
+
public ICampaignOptionData OptionData { [CompilerGenerated]
|
12
|
+
get; }
|
13
|
+
|
14
|
+
[DataSourceProperty]
|
15
|
+
public bool HideOptionName { get; set; }
|
24
16
|
|
25
17
|
[DataSourceProperty]
|
26
18
|
public string Name { get; set; }
|
@@ -55,10 +47,18 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
55
47
|
[DataSourceProperty]
|
56
48
|
public SelectorVM<SelectorItemVM> SelectionSelector { get; set; }
|
57
49
|
|
58
|
-
public extern CampaignOptionItemVM(
|
50
|
+
public extern CampaignOptionItemVM(ICampaignOptionData optionData);
|
51
|
+
|
52
|
+
public override extern void RefreshValues();
|
59
53
|
|
60
|
-
public extern void
|
54
|
+
public extern void RefreshDisabledStatus();
|
55
|
+
|
56
|
+
public extern void ExecuteAction();
|
61
57
|
|
62
58
|
public extern void OnSelectionOptionValueChanged(SelectorVM<SelectorItemVM> selector);
|
59
|
+
|
60
|
+
public extern void SetValue(float value);
|
61
|
+
|
62
|
+
public extern void SetOnValueChangedCallback(Action<CampaignOptionItemVM> onValueChanged);
|
63
63
|
}
|
64
64
|
}
|
@@ -4,25 +4,11 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
4
4
|
{
|
5
5
|
public class CampaignOptionsControllerVM : ViewModel
|
6
6
|
{
|
7
|
-
public enum DifficultyPresets
|
8
|
-
{
|
9
|
-
Freebooter,
|
10
|
-
Warrior,
|
11
|
-
Bannerlord,
|
12
|
-
Custom
|
13
|
-
}
|
14
|
-
|
15
7
|
[DataSourceProperty]
|
16
8
|
public MBBindingList<CampaignOptionItemVM> Options { get; set; }
|
17
9
|
|
18
10
|
public extern CampaignOptionsControllerVM(MBBindingList<CampaignOptionItemVM> options);
|
19
11
|
|
20
|
-
public override extern void
|
21
|
-
|
22
|
-
public extern void SetAllOptionsFromPreset();
|
23
|
-
|
24
|
-
public extern void UpdateDifficultyPreset();
|
25
|
-
|
26
|
-
public extern int GetDifficultyPreset();
|
12
|
+
public override extern void OnFinalize();
|
27
13
|
}
|
28
14
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
2
|
+
{
|
3
|
+
public enum CampaignOptionsDifficultyPresets
|
4
|
+
{
|
5
|
+
Freebooter,
|
6
|
+
Warrior,
|
7
|
+
Bannerlord,
|
8
|
+
Custom
|
9
|
+
}
|
10
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
4
|
+
{
|
5
|
+
public static class CampaignOptionsManager
|
6
|
+
{
|
7
|
+
public static extern bool GetOptionWithIdExists(string identifier);
|
8
|
+
|
9
|
+
public static extern void Initialize();
|
10
|
+
|
11
|
+
public static extern void ClearCachedOptions();
|
12
|
+
|
13
|
+
public static extern List<ICampaignOptionData> GetGameplayCampaignOptions();
|
14
|
+
|
15
|
+
public static extern List<ICampaignOptionData> GetCharacterCreationCampaignOptions();
|
16
|
+
}
|
17
|
+
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
|
+
using TaleWorlds.CampaignSystem.CampaignBehaviors;
|
4
5
|
using TaleWorlds.CampaignSystem.CharacterDevelopment;
|
5
6
|
using TaleWorlds.CampaignSystem.CraftingSystem;
|
6
7
|
using TaleWorlds.CampaignSystem.Issues;
|
@@ -8,7 +9,8 @@ using TaleWorlds.CampaignSystem.Party;
|
|
8
9
|
using TaleWorlds.CampaignSystem.Roster;
|
9
10
|
using TaleWorlds.CampaignSystem.Settlements;
|
10
11
|
using TaleWorlds.Core;
|
11
|
-
using TaleWorlds.Core.ViewModelCollection;
|
12
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
13
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
12
14
|
using TaleWorlds.Localization;
|
13
15
|
|
14
16
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
@@ -21,8 +23,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
21
23
|
None = 0x0,
|
22
24
|
AvailableIssue = 0x1,
|
23
25
|
ActiveIssue = 0x2,
|
24
|
-
|
25
|
-
|
26
|
+
ActiveStoryQuest = 0x4,
|
27
|
+
TrackedIssue = 0x8,
|
28
|
+
TrackedStoryQuest = 0x10
|
26
29
|
}
|
27
30
|
|
28
31
|
public class MobilePartyPrecedenceComparer : IComparer<MobileParty>
|
@@ -49,6 +52,8 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
49
52
|
|
50
53
|
public static extern List<TooltipProperty> GetTooltipForgProperty(string propertyName, float currentValue, ExplainedNumber explainedNumber);
|
51
54
|
|
55
|
+
public static extern string GetTownWallsTooltip(Town town);
|
56
|
+
|
52
57
|
public static extern List<TooltipProperty> GetVillageMilitiaTooltip(Village village);
|
53
58
|
|
54
59
|
public static extern List<TooltipProperty> GetTownMilitiaTooltip(Town town);
|
@@ -61,6 +66,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
61
66
|
|
62
67
|
public static extern List<TooltipProperty> GetTownDailyProductionTooltip(Town town);
|
63
68
|
|
69
|
+
public static extern List<TooltipProperty> GetVillageProsperityTooltip(Village village);
|
70
|
+
|
71
|
+
public static extern List<TooltipProperty> GetTownGarrisonTooltip(Town town);
|
72
|
+
|
64
73
|
public static extern List<TooltipProperty> GetTownSecurityTooltip(Town town);
|
65
74
|
|
66
75
|
public static extern List<TooltipProperty> GetPartyTroopSizeLimitTooltip(PartyBase party);
|
@@ -69,6 +78,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
69
78
|
|
70
79
|
public static extern List<TooltipProperty> GetUsedHorsesTooltip(List<Tuple<EquipmentElement, int>> usedUpgradeHorsesHistory);
|
71
80
|
|
81
|
+
public static extern List<TooltipProperty> GetSettlementPropertyTooltip(Settlement settlement, string valueName, float value, ExplainedNumber explainedNumber);
|
82
|
+
|
83
|
+
public static extern List<TooltipProperty> GetSettlementPropertyTooltipWithResult(Settlement settlement, string valueName, float value, ref ExplainedNumber explainedNumber);
|
84
|
+
|
72
85
|
public static extern List<TooltipProperty> GetArmyCohesionTooltip(Army army);
|
73
86
|
|
74
87
|
public static extern List<TooltipProperty> GetArmyManCountTooltip(Army army);
|
@@ -91,10 +104,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
91
104
|
|
92
105
|
public static extern List<TooltipProperty> GetClanStrengthTooltip(Clan clan);
|
93
106
|
|
94
|
-
public static extern List<TooltipProperty> GetVillageProsperityTooltip(Village village);
|
95
|
-
|
96
|
-
public static extern List<TooltipProperty> GetTownGarrisonTooltip(Town town);
|
97
|
-
|
98
107
|
public static extern List<TooltipProperty> GetCrimeTooltip(Settlement settlement);
|
99
108
|
|
100
109
|
public static extern List<TooltipProperty> GetInfluenceTooltip(Clan clan);
|
@@ -149,7 +158,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
149
158
|
|
150
159
|
public static extern string GetHintTextFromReasons(List<TextObject> reasons);
|
151
160
|
|
152
|
-
public static extern
|
161
|
+
public static extern TextObject GetHoursAndDaysTextFromHourValue(int hours);
|
162
|
+
|
163
|
+
public static extern TextObject GetTeleportationDelayText(Hero hero, PartyBase target);
|
153
164
|
|
154
165
|
public static extern List<TooltipProperty> GetTimeOfDayAndResetCameraTooltip();
|
155
166
|
|
@@ -163,19 +174,21 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
163
174
|
|
164
175
|
public static extern List<TooltipProperty> GetGovernorPerksTooltipForHero(Hero hero);
|
165
176
|
|
166
|
-
public static extern
|
177
|
+
public static extern (TextObject titleText, TextObject bodyText) GetGovernorSelectionConfirmationPopupTexts(Hero currentGovernor, Hero newGovernor, Settlement settlement);
|
178
|
+
|
179
|
+
public static extern List<TooltipProperty> GetHeroGovernorEffectsTooltip(Hero hero, Settlement settlement);
|
167
180
|
|
168
181
|
public static extern List<TooltipProperty> GetEncounterPartyMoraleTooltip(List<MobileParty> parties);
|
169
182
|
|
170
183
|
public static extern TextObject GetCraftingTemplatePieceUnlockProgressHint(float progress);
|
171
184
|
|
172
|
-
public static extern List<(string, TextObject)> GetWeaponFlagDetails(WeaponFlags weaponFlags);
|
185
|
+
public static extern List<(string, TextObject)> GetWeaponFlagDetails(WeaponFlags weaponFlags, CharacterObject character = null);
|
173
186
|
|
174
187
|
public static extern List<Tuple<string, TextObject>> GetItemFlagDetails(ItemFlags itemFlags);
|
175
188
|
|
176
|
-
public static extern List<(string, TextObject)> GetItemUsageSetFlagDetails(ItemObject.ItemUsageSetFlags flags);
|
189
|
+
public static extern List<(string, TextObject)> GetItemUsageSetFlagDetails(ItemObject.ItemUsageSetFlags flags, CharacterObject character = null);
|
177
190
|
|
178
|
-
public static extern List<(string, TextObject)> GetFlagDetailsForWeapon(WeaponComponentData weapon, ItemObject.ItemUsageSetFlags itemUsageFlags);
|
191
|
+
public static extern List<(string, TextObject)> GetFlagDetailsForWeapon(WeaponComponentData weapon, ItemObject.ItemUsageSetFlags itemUsageFlags, CharacterObject character = null);
|
179
192
|
|
180
193
|
public static extern List<TooltipProperty> GetCraftingHeroTooltip(Hero hero, CraftingOrder order);
|
181
194
|
|
@@ -189,11 +202,13 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
189
202
|
|
190
203
|
public static extern string GetHeroOccupationName(Hero hero);
|
191
204
|
|
205
|
+
public static extern TextObject GetCommaSeparatedText(TextObject label, IEnumerable<TextObject> texts);
|
206
|
+
|
192
207
|
public static extern string GetHeroKingdomRank(Hero hero);
|
193
208
|
|
194
209
|
public static extern string GetHeroRank(Hero hero);
|
195
210
|
|
196
|
-
public static extern
|
211
|
+
public static extern bool IsSettlementInformationHidden(Settlement settlement, out TextObject disableReason);
|
197
212
|
|
198
213
|
public static extern string GetPartyNameplateText(MobileParty party);
|
199
214
|
|
@@ -203,8 +218,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
203
218
|
|
204
219
|
public static extern string ConvertToHexColor(uint color);
|
205
220
|
|
206
|
-
public static extern string GetPolicyDisableReasonText(bool hasEnoughInfluence, bool isMercenary);
|
207
|
-
|
208
221
|
public static extern bool GetMapScreenActionIsEnabledWithReason(out TextObject disabledReason);
|
209
222
|
|
210
223
|
public static extern string GetClanSupportDisableReasonString(bool hasEnoughInfluence, bool isTargetMainClan, bool isMainClanMercenary);
|
@@ -223,11 +236,13 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
223
236
|
|
224
237
|
public static extern string GetMobilePartyBehaviorText(MobileParty party);
|
225
238
|
|
226
|
-
public static extern string GetHeroBehaviorText(Hero hero);
|
239
|
+
public static extern string GetHeroBehaviorText(Hero hero, ITeleportationCampaignBehavior teleportationBehavior = null);
|
227
240
|
|
228
|
-
public static extern
|
241
|
+
public static extern Hero GetTeleportingLeaderHero(MobileParty party, ITeleportationCampaignBehavior teleportationBehavior);
|
229
242
|
|
230
|
-
public static extern
|
243
|
+
public static extern Hero GetTeleportingGovernor(Settlement settlement, ITeleportationCampaignBehavior teleportationBehavior);
|
244
|
+
|
245
|
+
public static extern TextObject GetHeroRelationToHeroText(Hero queriedHero, Hero baseHero, bool uppercaseFirst);
|
231
246
|
|
232
247
|
public static extern string GetAbbreviatedValueTextFromValue(int valueAmount);
|
233
248
|
|
@@ -263,7 +278,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
263
278
|
|
264
279
|
public static extern IssueQuestFlags GetIssueType(IssueBase issue);
|
265
280
|
|
266
|
-
|
281
|
+
public static extern IssueQuestFlags GetQuestType(QuestBase quest, Hero queriedQuestGiver);
|
282
|
+
|
283
|
+
[IteratorStateMachine(typeof(_003CGetHeroTraits_003Ed__187))]
|
267
284
|
public static extern IEnumerable<TraitObject> GetHeroTraits();
|
268
285
|
|
269
286
|
public static extern bool IsItemUsageApplicable(WeaponComponentData weapon);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
5
|
+
{
|
6
|
+
public class DefaultCampaignOptionsProvider : ICampaignOptionProvider
|
7
|
+
{
|
8
|
+
[IteratorStateMachine(typeof(_003CGetGameplayCampaignOptions_003Ed__1))]
|
9
|
+
public extern IEnumerable<ICampaignOptionData> GetGameplayCampaignOptions();
|
10
|
+
|
11
|
+
[IteratorStateMachine(typeof(_003CGetCharacterCreationCampaignOptions_003Ed__2))]
|
12
|
+
public extern IEnumerable<ICampaignOptionData> GetCharacterCreationCampaignOptions();
|
13
|
+
|
14
|
+
public extern DefaultCampaignOptionsProvider();
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
2
|
+
{
|
3
|
+
public interface ICampaignOptionData
|
4
|
+
{
|
5
|
+
CampaignOptionDataType GetDataType();
|
6
|
+
|
7
|
+
int GetPriorityIndex();
|
8
|
+
|
9
|
+
bool IsRelatedToDifficultyPreset();
|
10
|
+
|
11
|
+
float GetValueFromDifficultyPreset(CampaignOptionsDifficultyPresets preset);
|
12
|
+
|
13
|
+
string GetIdentifier();
|
14
|
+
|
15
|
+
CampaignOptionEnableState GetEnableState();
|
16
|
+
|
17
|
+
string GetName();
|
18
|
+
|
19
|
+
string GetDescription();
|
20
|
+
|
21
|
+
float GetValue();
|
22
|
+
|
23
|
+
void SetValue(float value);
|
24
|
+
|
25
|
+
CampaignOptionDisableStatus GetIsDisabledWithReason();
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
4
|
+
{
|
5
|
+
public interface ICampaignOptionProvider
|
6
|
+
{
|
7
|
+
IEnumerable<ICampaignOptionData> GetGameplayCampaignOptions();
|
8
|
+
|
9
|
+
IEnumerable<ICampaignOptionData> GetCharacterCreationCampaignOptions();
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
5
|
+
{
|
6
|
+
public class NumericCampaignOptionData : CampaignOptionData
|
7
|
+
{
|
8
|
+
public float MinValue { [CompilerGenerated]
|
9
|
+
get; }
|
10
|
+
|
11
|
+
public float MaxValue { [CompilerGenerated]
|
12
|
+
get; }
|
13
|
+
|
14
|
+
public bool IsDiscrete { [CompilerGenerated]
|
15
|
+
get; }
|
16
|
+
|
17
|
+
public extern NumericCampaignOptionData(string identifier, int priorityIndex, CampaignOptionEnableState enableState, Func<float> getValue, Action<float> setValue, float minValue, float maxValue, bool isDiscrete, Func<CampaignOptionDisableStatus> getIsDisabledWithReason = null, bool isRelatedToDifficultyPreset = false, Func<float, CampaignOptionsDifficultyPresets> onGetDifficultyPresetFromValue = null, Func<CampaignOptionsDifficultyPresets, float> onGetValueFromDifficultyPreset = null);
|
18
|
+
|
19
|
+
public override extern CampaignOptionDataType GetDataType();
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
using System;
|
2
|
+
using TaleWorlds.CampaignSystem.Inventory;
|
3
|
+
using TaleWorlds.CampaignSystem.MapEvents;
|
4
|
+
using TaleWorlds.CampaignSystem.Party;
|
5
|
+
using TaleWorlds.CampaignSystem.Roster;
|
6
|
+
using TaleWorlds.CampaignSystem.Settlements;
|
7
|
+
using TaleWorlds.CampaignSystem.Settlements.Buildings;
|
8
|
+
using TaleWorlds.CampaignSystem.Settlements.Workshops;
|
9
|
+
using TaleWorlds.Core;
|
10
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
11
|
+
using TaleWorlds.Localization;
|
12
|
+
|
13
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
14
|
+
{
|
15
|
+
public static class PropertyBasedTooltipVMExtensions
|
16
|
+
{
|
17
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, Track track);
|
18
|
+
|
19
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, Hero hero, bool isNear);
|
20
|
+
|
21
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, InventoryLogic inventory);
|
22
|
+
|
23
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, CharacterObject character);
|
24
|
+
|
25
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, EquipmentElement? equipmentElement);
|
26
|
+
|
27
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, Building building);
|
28
|
+
|
29
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, Workshop workshop);
|
30
|
+
|
31
|
+
public static extern void UpdateEncounterTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, int side);
|
32
|
+
|
33
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, MapEvent mapEvent);
|
34
|
+
|
35
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, Settlement settlement, bool openedFromMenuLayout);
|
36
|
+
|
37
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, MobileParty mobileParty, bool openedFromMenuLayout, bool checkForMapVisibility);
|
38
|
+
|
39
|
+
public static extern void UpdateTooltip(this PropertyBasedTooltipVM propertyBasedTooltipVM, Army army, bool openedFromMenuLayout, bool checkForMapVisibility);
|
40
|
+
|
41
|
+
public static extern void AddPartyTroopProperties(this PropertyBasedTooltipVM propertyBasedTooltipVM, TroopRoster troopRoster, TextObject title, bool isInspected, Func<TroopRoster> funcToDoBeforeLambda = null);
|
42
|
+
|
43
|
+
public static extern void FillCampaignTooltipTypes();
|
44
|
+
|
45
|
+
public static extern void BuildingTooltipAction(this PropertyBasedTooltipVM propertyBasedTooltipVM, object[] args);
|
46
|
+
|
47
|
+
public static extern void WorkshopTypeTooltipAction(this PropertyBasedTooltipVM propertyBasedTooltipVM, object[] args);
|
48
|
+
}
|
49
|
+
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
using TaleWorlds.Library;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
4
|
-
{
|
5
|
-
public class QuestViewModel : ViewModel, ISerializableObject
|
6
|
-
{
|
7
|
-
[DataSourceProperty]
|
8
|
-
public string QuestType { get; set; }
|
9
|
-
|
10
|
-
public extern QuestViewModel(QuestBase quest);
|
11
|
-
|
12
|
-
public override extern void RefreshValues();
|
13
|
-
|
14
|
-
public extern void DeserializeFrom(IReader reader);
|
15
|
-
|
16
|
-
public extern void SerializeTo(IWriter writer);
|
17
|
-
}
|
18
|
-
}
|
@@ -1,74 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
-
using TaleWorlds.Library;
|
6
|
-
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
8
|
-
{
|
9
|
-
public class SceneNotificationVM : ViewModel
|
10
|
-
{
|
11
|
-
[DataSourceProperty]
|
12
|
-
public bool IsShown { get; set; }
|
13
|
-
|
14
|
-
[DataSourceProperty]
|
15
|
-
public string ClickToContinueText { get; set; }
|
16
|
-
|
17
|
-
[DataSourceProperty]
|
18
|
-
public string TitleText { get; }
|
19
|
-
|
20
|
-
[DataSourceProperty]
|
21
|
-
public string AffirmativeDescription { get; }
|
22
|
-
|
23
|
-
[DataSourceProperty]
|
24
|
-
public string CancelDescription { get; }
|
25
|
-
|
26
|
-
[DataSourceProperty]
|
27
|
-
public string SceneID { get; }
|
28
|
-
|
29
|
-
[DataSourceProperty]
|
30
|
-
public string ButtonOkLabel { get; }
|
31
|
-
|
32
|
-
[DataSourceProperty]
|
33
|
-
public string ButtonCancelLabel { get; }
|
34
|
-
|
35
|
-
[DataSourceProperty]
|
36
|
-
public bool IsButtonOkShown { get; }
|
37
|
-
|
38
|
-
[DataSourceProperty]
|
39
|
-
public bool IsButtonCancelShown { get; }
|
40
|
-
|
41
|
-
[DataSourceProperty]
|
42
|
-
public object Scene { get; set; }
|
43
|
-
|
44
|
-
[DataSourceProperty]
|
45
|
-
public float EndProgress { get; set; }
|
46
|
-
|
47
|
-
[DataSourceProperty]
|
48
|
-
public BasicTooltipViewModel AffirmativeHint { get; set; }
|
49
|
-
|
50
|
-
public event Action<SceneNotificationData> OnCreateNewNotification
|
51
|
-
{
|
52
|
-
[CompilerGenerated]
|
53
|
-
add;
|
54
|
-
[CompilerGenerated]
|
55
|
-
remove;
|
56
|
-
}
|
57
|
-
|
58
|
-
public extern SceneNotificationVM(Action<SceneNotificationData, bool> createNotification, Action onPositiveTrigger, Action closeNotification, Func<string> getContinueInputText);
|
59
|
-
|
60
|
-
public override extern void RefreshValues();
|
61
|
-
|
62
|
-
public extern void ForceClose();
|
63
|
-
|
64
|
-
public extern void ExecuteAffirmativeProcess();
|
65
|
-
|
66
|
-
public extern void ExecuteClose();
|
67
|
-
|
68
|
-
public extern void ExecuteNegativeProcess();
|
69
|
-
|
70
|
-
public extern void ClearData();
|
71
|
-
|
72
|
-
public override extern void OnFinalize();
|
73
|
-
}
|
74
|
-
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
4
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
4
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
@@ -0,0 +1,17 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Collections.Generic;
|
3
|
+
using System.Runtime.CompilerServices;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
7
|
+
{
|
8
|
+
public class SelectionCampaignOptionData : CampaignOptionData
|
9
|
+
{
|
10
|
+
public List<TextObject> Selections { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public extern SelectionCampaignOptionData(string identifier, int priorityIndex, CampaignOptionEnableState enableState, Func<float> getValue, Action<float> setValue, List<TextObject> customSelectionTexts = null, Func<CampaignOptionDisableStatus> getIsDisabledWithReason = null, bool isRelatedToDifficultyPreset = false, Func<float, CampaignOptionsDifficultyPresets> onGetDifficultyPresetFromValue = null, Func<CampaignOptionsDifficultyPresets, float> onGetValueFromDifficultyPreset = null);
|
14
|
+
|
15
|
+
public override extern CampaignOptionDataType GetDataType();
|
16
|
+
}
|
17
|
+
}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
using TaleWorlds.CampaignSystem.Inventory;
|
3
|
-
using TaleWorlds.CampaignSystem.MapEvents;
|
4
|
-
using TaleWorlds.CampaignSystem.Party;
|
5
|
-
using TaleWorlds.CampaignSystem.Roster;
|
6
|
-
using TaleWorlds.CampaignSystem.Settlements;
|
7
|
-
using TaleWorlds.CampaignSystem.Settlements.Buildings;
|
8
|
-
using TaleWorlds.CampaignSystem.Settlements.Workshops;
|
9
|
-
using TaleWorlds.Core;
|
10
|
-
using TaleWorlds.Core.ViewModelCollection;
|
11
|
-
using TaleWorlds.Localization;
|
12
|
-
|
13
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
14
|
-
{
|
15
|
-
public static class TooltipVMExtensions
|
16
|
-
{
|
17
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, Track track);
|
18
|
-
|
19
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, Hero hero);
|
20
|
-
|
21
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, InventoryLogic inventory);
|
22
|
-
|
23
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, CharacterObject character);
|
24
|
-
|
25
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, EquipmentElement? equipmentElement);
|
26
|
-
|
27
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, Building building);
|
28
|
-
|
29
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, Workshop workshop);
|
30
|
-
|
31
|
-
public static extern void UpdateEncounterTooltip(this TooltipVM tooltipVM, int side);
|
32
|
-
|
33
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, MapEvent mapEvent);
|
34
|
-
|
35
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, Settlement settlement, bool openedFromMenuLayout);
|
36
|
-
|
37
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, MobileParty mobileParty, bool openedFromMenuLayout, bool checkForMapVisibility);
|
38
|
-
|
39
|
-
public static extern void UpdateTooltip(this TooltipVM tooltipVM, Army army, bool openedFromMenuLayout, bool checkForMapVisibility);
|
40
|
-
|
41
|
-
public static extern void AddPartyTroopProperties(this TooltipVM tooltipVM, TroopRoster troopRoster, TextObject title, bool isInspected, Func<TroopRoster> funcToDoBeforeLambda = null);
|
42
|
-
|
43
|
-
public static extern void FillCampaignTooltipTypes();
|
44
|
-
|
45
|
-
public static extern void BuildingTooltipAction(this TooltipVM tooltipVM, object[] args);
|
46
|
-
|
47
|
-
public static extern void WorkshopTypeTooltipAction(this TooltipVM tooltipVM, object[] args);
|
48
|
-
}
|
49
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
-
using TaleWorlds.Library;
|
4
|
-
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
6
|
-
{
|
7
|
-
public class TownWaitReporterVM : ViewModel
|
8
|
-
{
|
9
|
-
[DataSourceProperty]
|
10
|
-
public double NightTimeFactor { get; set; }
|
11
|
-
|
12
|
-
[DataSourceProperty]
|
13
|
-
public string Background { get; set; }
|
14
|
-
|
15
|
-
[DataSourceProperty]
|
16
|
-
public string PrimaryText { get; set; }
|
17
|
-
|
18
|
-
[DataSourceProperty]
|
19
|
-
public string SecondaryText { get; set; }
|
20
|
-
|
21
|
-
[DataSourceProperty]
|
22
|
-
public MBBindingList<StringItemWithActionVM> MenuItemList { get; set; }
|
23
|
-
|
24
|
-
public extern TownWaitReporterVM(Game game);
|
25
|
-
|
26
|
-
public extern void Tick(float dt, float sunBrightness);
|
27
|
-
}
|
28
|
-
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library.EventSystem;
|
2
2
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ArmyManagement
|
4
4
|
{
|
5
5
|
public class ArmyCohesionBoostedByPlayerEvent : EventBase
|
6
6
|
{
|
@@ -62,11 +62,14 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ArmyManagement
|
|
62
62
|
public bool IsAlreadyWithPlayer { get; set; }
|
63
63
|
|
64
64
|
[DataSourceProperty]
|
65
|
-
public bool
|
65
|
+
public bool IsTransferDisabled { get; set; }
|
66
66
|
|
67
67
|
[DataSourceProperty]
|
68
68
|
public string LeaderNameText { get; set; }
|
69
69
|
|
70
|
+
[DataSourceProperty]
|
71
|
+
public bool IsFocused { get; set; }
|
72
|
+
|
70
73
|
public extern ArmyManagementItemVM(Action<ArmyManagementItemVM> onAddToCart, Action<ArmyManagementItemVM> onRemove, Action<ArmyManagementItemVM> onFocus, MobileParty mobileParty);
|
71
74
|
|
72
75
|
public override extern void RefreshValues();
|
@@ -1,12 +1,12 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.ArmyManagement;
|
4
3
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Tutorial;
|
6
6
|
using TaleWorlds.InputSystem;
|
7
7
|
using TaleWorlds.Library;
|
8
8
|
|
9
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
9
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ArmyManagement
|
10
10
|
{
|
11
11
|
public class ArmyManagementVM : ViewModel
|
12
12
|
{
|
@@ -68,10 +68,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
68
68
|
public bool CanBoostCohesion { get; set; }
|
69
69
|
|
70
70
|
[DataSourceProperty]
|
71
|
-
public bool
|
71
|
+
public bool CanDisbandArmy { get; set; }
|
72
72
|
|
73
73
|
[DataSourceProperty]
|
74
|
-
public bool
|
74
|
+
public bool CanAffordInfluenceCost { get; set; }
|
75
75
|
|
76
76
|
[DataSourceProperty]
|
77
77
|
public string TitleText { get; set; }
|
@@ -103,6 +103,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
103
103
|
[DataSourceProperty]
|
104
104
|
public string TotalCostText { get; set; }
|
105
105
|
|
106
|
+
[DataSourceProperty]
|
107
|
+
public string TotalCostNumbersText { get; set; }
|
108
|
+
|
106
109
|
[DataSourceProperty]
|
107
110
|
public string CohesionText { get; set; }
|
108
111
|
|
@@ -112,9 +115,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
112
115
|
[DataSourceProperty]
|
113
116
|
public int CohesionBoostCost { get; set; }
|
114
117
|
|
115
|
-
[DataSourceProperty]
|
116
|
-
public string CohesionChangeText { get; set; }
|
117
|
-
|
118
118
|
[DataSourceProperty]
|
119
119
|
public bool PlayerHasArmy { get; set; }
|
120
120
|
|
@@ -136,6 +136,12 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
136
136
|
[DataSourceProperty]
|
137
137
|
public HintViewModel BoostCohesionHint { get; set; }
|
138
138
|
|
139
|
+
[DataSourceProperty]
|
140
|
+
public HintViewModel DisbandArmyHint { get; set; }
|
141
|
+
|
142
|
+
[DataSourceProperty]
|
143
|
+
public HintViewModel DoneHint { get; set; }
|
144
|
+
|
139
145
|
[DataSourceProperty]
|
140
146
|
public HintViewModel FoodHint { get; set; }
|
141
147
|
|
@@ -2,7 +2,7 @@ using System.Runtime.CompilerServices;
|
|
2
2
|
using TaleWorlds.CampaignSystem.Party;
|
3
3
|
using TaleWorlds.Library.EventSystem;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ArmyManagement
|
6
6
|
{
|
7
7
|
public class PartyAddedToArmyByPlayerEvent : EventBase
|
8
8
|
{
|
@@ -1,9 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.BarterSystem.Barterables;
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia;
|
3
4
|
using TaleWorlds.Core;
|
4
5
|
using TaleWorlds.Library;
|
5
6
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Barter
|
7
8
|
{
|
8
9
|
public class BarterItemVM : EncyclopediaLinkVM
|
9
10
|
{
|
@@ -1,13 +1,13 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.BarterSystem;
|
2
2
|
using TaleWorlds.CampaignSystem.BarterSystem.Barterables;
|
3
3
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.InputSystem;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
|
8
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Barter
|
9
9
|
{
|
10
|
-
public class
|
10
|
+
public class BarterVM : ViewModel
|
11
11
|
{
|
12
12
|
[DataSourceProperty]
|
13
13
|
public string FiefLbl { get; set; }
|
@@ -117,7 +117,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
117
117
|
[DataSourceProperty]
|
118
118
|
public InputKeyItemVM CancelInputKey { get; set; }
|
119
119
|
|
120
|
-
public extern
|
120
|
+
public extern BarterVM(BarterData args);
|
121
121
|
|
122
122
|
public override extern void RefreshValues();
|
123
123
|
|
@@ -15,6 +15,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.CharacterCreation
|
|
15
15
|
[DataSourceProperty]
|
16
16
|
public InputKeyItemVM DoneInputKey { get; set; }
|
17
17
|
|
18
|
+
[DataSourceProperty]
|
19
|
+
public bool IsActive { get; set; }
|
20
|
+
|
18
21
|
[DataSourceProperty]
|
19
22
|
public MBBindingList<CharacterCreationCultureVM> Cultures { get; set; }
|
20
23
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.CharacterCreation
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.CharacterCreationContent;
|
2
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
2
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.CharacterCreation
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
2
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
7
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.CharacterCreation
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using TaleWorlds.Library;
|
2
|
-
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.CharacterCreation
|
4
|
-
{
|
5
|
-
public class CharacterCreationHandlerVM : ViewModel
|
6
|
-
{
|
7
|
-
public extern CharacterCreationHandlerVM();
|
8
|
-
}
|
9
|
-
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.CharacterCreation
|
@@ -1,12 +1,13 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.CharacterDeveloper;
|
3
2
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Tutorial;
|
5
6
|
using TaleWorlds.InputSystem;
|
6
7
|
using TaleWorlds.Library;
|
7
8
|
using TaleWorlds.Localization;
|
8
9
|
|
9
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
10
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.CharacterDeveloper
|
10
11
|
{
|
11
12
|
public class CharacterDeveloperVM : ViewModel
|
12
13
|
{
|
@@ -2,9 +2,10 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.CharacterDevelopment;
|
4
4
|
using TaleWorlds.CampaignSystem.ViewModelCollection.CharacterDeveloper.PerkSelection;
|
5
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
6
6
|
using TaleWorlds.Core;
|
7
|
-
using TaleWorlds.Core.ViewModelCollection;
|
7
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
8
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
8
9
|
using TaleWorlds.Library;
|
9
10
|
|
10
11
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.CharacterDeveloper
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.CharacterDevelopment;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
6
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.CharacterDeveloper
|
@@ -1,6 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
5
|
using TaleWorlds.Library;
|
5
6
|
|
6
7
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.CharacterDeveloper
|
@@ -0,0 +1,9 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
2
|
+
{
|
3
|
+
public enum CardSelectionItemSpriteType
|
4
|
+
{
|
5
|
+
None = -1,
|
6
|
+
Skill,
|
7
|
+
Workshop
|
8
|
+
}
|
9
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Collections.Generic;
|
3
|
+
using TaleWorlds.Localization;
|
4
|
+
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
6
|
+
{
|
7
|
+
public readonly struct ClanCardSelectionInfo
|
8
|
+
{
|
9
|
+
public readonly TextObject Title;
|
10
|
+
|
11
|
+
public readonly IEnumerable<ClanCardSelectionItemInfo> Items;
|
12
|
+
|
13
|
+
public readonly Action<List<object>, Action> OnClosedAction;
|
14
|
+
|
15
|
+
public readonly bool IsMultiSelection;
|
16
|
+
|
17
|
+
public extern ClanCardSelectionInfo(TextObject title, IEnumerable<ClanCardSelectionItemInfo> items, Action<List<object>, Action> onClosedAction, bool isMultiSelection);
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using TaleWorlds.Core;
|
3
|
+
using TaleWorlds.Localization;
|
4
|
+
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
6
|
+
{
|
7
|
+
public readonly struct ClanCardSelectionItemInfo
|
8
|
+
{
|
9
|
+
public readonly object Identifier;
|
10
|
+
|
11
|
+
public readonly TextObject Title;
|
12
|
+
|
13
|
+
public readonly ImageIdentifier Image;
|
14
|
+
|
15
|
+
public readonly CardSelectionItemSpriteType SpriteType;
|
16
|
+
|
17
|
+
public readonly string SpriteName;
|
18
|
+
|
19
|
+
public readonly string SpriteLabel;
|
20
|
+
|
21
|
+
public readonly IEnumerable<ClanCardSelectionItemPropertyInfo> Properties;
|
22
|
+
|
23
|
+
public readonly bool IsSpecialActionItem;
|
24
|
+
|
25
|
+
public readonly TextObject SpecialActionText;
|
26
|
+
|
27
|
+
public readonly bool IsDisabled;
|
28
|
+
|
29
|
+
public readonly TextObject DisabledReason;
|
30
|
+
|
31
|
+
public readonly TextObject ActionResult;
|
32
|
+
|
33
|
+
public extern ClanCardSelectionItemInfo(object identifier, TextObject title, ImageIdentifier image, CardSelectionItemSpriteType spriteType, string spriteName, string spriteLabel, IEnumerable<ClanCardSelectionItemPropertyInfo> properties, bool isDisabled, TextObject disabledReason, TextObject actionResult);
|
34
|
+
|
35
|
+
public extern ClanCardSelectionItemInfo(TextObject specialActionText, bool isDisabled, TextObject disabledReason, TextObject actionResult);
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
using TaleWorlds.Localization;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
4
|
+
{
|
5
|
+
public readonly struct ClanCardSelectionItemPropertyInfo
|
6
|
+
{
|
7
|
+
public readonly TextObject Title;
|
8
|
+
|
9
|
+
public readonly TextObject Value;
|
10
|
+
|
11
|
+
public extern ClanCardSelectionItemPropertyInfo(TextObject title, TextObject value);
|
12
|
+
|
13
|
+
public extern ClanCardSelectionItemPropertyInfo(TextObject value);
|
14
|
+
|
15
|
+
public static extern TextObject CreateLabeledValueText(TextObject label, TextObject value);
|
16
|
+
|
17
|
+
public static extern TextObject CreateActionGoldChangeText(int goldChange);
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
using TaleWorlds.Library;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
4
|
+
{
|
5
|
+
public class ClanCardSelectionPopupItemPropertyVM : ViewModel
|
6
|
+
{
|
7
|
+
[DataSourceProperty]
|
8
|
+
public string Title { get; set; }
|
9
|
+
|
10
|
+
[DataSourceProperty]
|
11
|
+
public string Value { get; set; }
|
12
|
+
|
13
|
+
public extern ClanCardSelectionPopupItemPropertyVM(in ClanCardSelectionItemPropertyInfo info);
|
14
|
+
|
15
|
+
public override extern void RefreshValues();
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
|
+
using TaleWorlds.Library;
|
6
|
+
using TaleWorlds.Localization;
|
7
|
+
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
9
|
+
{
|
10
|
+
public class ClanCardSelectionPopupItemVM : ViewModel
|
11
|
+
{
|
12
|
+
public object Identifier { [CompilerGenerated]
|
13
|
+
get; }
|
14
|
+
|
15
|
+
public TextObject ActionResultText { [CompilerGenerated]
|
16
|
+
get; }
|
17
|
+
|
18
|
+
[DataSourceProperty]
|
19
|
+
public ImageIdentifierVM Image { get; set; }
|
20
|
+
|
21
|
+
[DataSourceProperty]
|
22
|
+
public MBBindingList<ClanCardSelectionPopupItemPropertyVM> Properties { get; set; }
|
23
|
+
|
24
|
+
[DataSourceProperty]
|
25
|
+
public HintViewModel DisabledHint { get; set; }
|
26
|
+
|
27
|
+
[DataSourceProperty]
|
28
|
+
public string Title { get; set; }
|
29
|
+
|
30
|
+
[DataSourceProperty]
|
31
|
+
public string SpriteType { get; set; }
|
32
|
+
|
33
|
+
[DataSourceProperty]
|
34
|
+
public string SpriteName { get; set; }
|
35
|
+
|
36
|
+
[DataSourceProperty]
|
37
|
+
public string SpriteLabel { get; set; }
|
38
|
+
|
39
|
+
[DataSourceProperty]
|
40
|
+
public string SpecialAction { get; set; }
|
41
|
+
|
42
|
+
[DataSourceProperty]
|
43
|
+
public bool HasImage { get; set; }
|
44
|
+
|
45
|
+
[DataSourceProperty]
|
46
|
+
public bool HasSprite { get; set; }
|
47
|
+
|
48
|
+
[DataSourceProperty]
|
49
|
+
public bool IsSpecialActionItem { get; set; }
|
50
|
+
|
51
|
+
[DataSourceProperty]
|
52
|
+
public bool IsDisabled { get; set; }
|
53
|
+
|
54
|
+
[DataSourceProperty]
|
55
|
+
public bool IsSelected { get; set; }
|
56
|
+
|
57
|
+
public extern ClanCardSelectionPopupItemVM(in ClanCardSelectionItemInfo info, Action<ClanCardSelectionPopupItemVM> onSelected);
|
58
|
+
|
59
|
+
public override extern void RefreshValues();
|
60
|
+
|
61
|
+
public extern void ExecuteSelect();
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
2
|
+
using TaleWorlds.InputSystem;
|
3
|
+
using TaleWorlds.Library;
|
4
|
+
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
6
|
+
{
|
7
|
+
public class ClanCardSelectionPopupVM : ViewModel
|
8
|
+
{
|
9
|
+
[DataSourceProperty]
|
10
|
+
public MBBindingList<ClanCardSelectionPopupItemVM> Items { get; set; }
|
11
|
+
|
12
|
+
[DataSourceProperty]
|
13
|
+
public InputKeyItemVM DoneInputKey { get; set; }
|
14
|
+
|
15
|
+
[DataSourceProperty]
|
16
|
+
public string Title { get; set; }
|
17
|
+
|
18
|
+
[DataSourceProperty]
|
19
|
+
public string ActionResult { get; set; }
|
20
|
+
|
21
|
+
[DataSourceProperty]
|
22
|
+
public string DoneLbl { get; set; }
|
23
|
+
|
24
|
+
[DataSourceProperty]
|
25
|
+
public bool IsVisible { get; set; }
|
26
|
+
|
27
|
+
public extern ClanCardSelectionPopupVM();
|
28
|
+
|
29
|
+
public override extern void RefreshValues();
|
30
|
+
|
31
|
+
public override extern void OnFinalize();
|
32
|
+
|
33
|
+
public extern void SetDoneInputKey(HotKey hotKey);
|
34
|
+
|
35
|
+
public extern void Open(ClanCardSelectionInfo info);
|
36
|
+
|
37
|
+
public extern void ExecuteCancel();
|
38
|
+
|
39
|
+
public extern void ExecuteDone();
|
40
|
+
}
|
41
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.Party;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
@@ -1,6 +1,5 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
3
|
using TaleWorlds.Library;
|
5
4
|
|
6
5
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
@@ -18,9 +17,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
18
17
|
[DataSourceProperty]
|
19
18
|
public MBBindingList<SelectableItemPropertyVM> ItemProperties { get; set; }
|
20
19
|
|
21
|
-
[DataSourceProperty]
|
22
|
-
public MBBindingList<StringItemWithEnabledAndHintVM> ActionList { get; set; }
|
23
|
-
|
24
20
|
[DataSourceProperty]
|
25
21
|
public string Name { get; set; }
|
26
22
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.CampaignSystem.
|
2
|
+
using TaleWorlds.CampaignSystem.CampaignBehaviors;
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
3
4
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
6
|
using TaleWorlds.Library;
|
6
7
|
|
7
8
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
@@ -23,6 +24,24 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
23
24
|
[DataSourceProperty]
|
24
25
|
public bool IsChild { get; set; }
|
25
26
|
|
27
|
+
[DataSourceProperty]
|
28
|
+
public bool IsTeleporting { get; set; }
|
29
|
+
|
30
|
+
[DataSourceProperty]
|
31
|
+
public bool IsRecallVisible { get; set; }
|
32
|
+
|
33
|
+
[DataSourceProperty]
|
34
|
+
public bool IsRecallEnabled { get; set; }
|
35
|
+
|
36
|
+
[DataSourceProperty]
|
37
|
+
public bool IsTalkVisible { get; set; }
|
38
|
+
|
39
|
+
[DataSourceProperty]
|
40
|
+
public bool IsTalkEnabled { get; set; }
|
41
|
+
|
42
|
+
[DataSourceProperty]
|
43
|
+
public bool CanShowLocationOfHero { get; set; }
|
44
|
+
|
26
45
|
[DataSourceProperty]
|
27
46
|
public bool IsMainHero { get; set; }
|
28
47
|
|
@@ -56,7 +75,16 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
56
75
|
[DataSourceProperty]
|
57
76
|
public HintViewModel PregnantHint { get; set; }
|
58
77
|
|
59
|
-
|
78
|
+
[DataSourceProperty]
|
79
|
+
public HintViewModel ShowOnMapHint { get; set; }
|
80
|
+
|
81
|
+
[DataSourceProperty]
|
82
|
+
public HintViewModel RecallHint { get; set; }
|
83
|
+
|
84
|
+
[DataSourceProperty]
|
85
|
+
public HintViewModel TalkHint { get; set; }
|
86
|
+
|
87
|
+
public extern ClanLordItemVM(Hero hero, ITeleportationCampaignBehavior teleportationBehavior, Action<Hero> showHeroOnMap, Action<ClanLordItemVM> onCharacterSelect, Action onRecall, Action onTalk);
|
60
88
|
|
61
89
|
public override extern void RefreshValues();
|
62
90
|
|
@@ -76,6 +104,12 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
76
104
|
|
77
105
|
public extern void ExecuteRename();
|
78
106
|
|
107
|
+
public extern void ExecuteShowOnMap();
|
108
|
+
|
109
|
+
public extern void ExecuteRecall();
|
110
|
+
|
111
|
+
public extern void ExecuteTalk();
|
112
|
+
|
79
113
|
public override extern void OnFinalize();
|
80
114
|
}
|
81
115
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
@@ -5,7 +5,7 @@ using TaleWorlds.CampaignSystem.Settlements.Workshops;
|
|
5
5
|
using TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categories;
|
6
6
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
7
7
|
using TaleWorlds.Core;
|
8
|
-
using TaleWorlds.Core.ViewModelCollection;
|
8
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
9
9
|
using TaleWorlds.InputSystem;
|
10
10
|
using TaleWorlds.Library;
|
11
11
|
|
@@ -19,6 +19,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
19
19
|
[DataSourceProperty]
|
20
20
|
public ImageIdentifierVM ClanBanner { get; set; }
|
21
21
|
|
22
|
+
[DataSourceProperty]
|
23
|
+
public ClanCardSelectionPopupVM CardSelectionPopup { get; set; }
|
24
|
+
|
22
25
|
[DataSourceProperty]
|
23
26
|
public string Name { get; set; }
|
24
27
|
|
@@ -166,7 +169,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
166
169
|
|
167
170
|
public InputKeyItemVM NextTabInputKey { get; set; }
|
168
171
|
|
169
|
-
public extern ClanManagementVM(Action onClose, Action<Hero> openPartyAsManage, Action openBannerEditor);
|
172
|
+
public extern ClanManagementVM(Action onClose, Action<Hero> showHeroOnMap, Action<Hero> openPartyAsManage, Action openBannerEditor);
|
170
173
|
|
171
174
|
public override extern void RefreshValues();
|
172
175
|
|
@@ -1,9 +1,11 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.CampaignSystem.CampaignBehaviors;
|
3
4
|
using TaleWorlds.CampaignSystem.Party;
|
4
|
-
using TaleWorlds.CampaignSystem.Settlements;
|
5
5
|
using TaleWorlds.Core;
|
6
6
|
using TaleWorlds.Core.ViewModelCollection;
|
7
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
8
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
7
9
|
using TaleWorlds.Library;
|
8
10
|
|
9
11
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
@@ -51,6 +53,12 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
51
53
|
[DataSourceProperty]
|
52
54
|
public bool CanUseActions { get; set; }
|
53
55
|
|
56
|
+
[DataSourceProperty]
|
57
|
+
public bool IsChangeLeaderVisible { get; set; }
|
58
|
+
|
59
|
+
[DataSourceProperty]
|
60
|
+
public bool IsChangeLeaderEnabled { get; set; }
|
61
|
+
|
54
62
|
[DataSourceProperty]
|
55
63
|
public HintViewModel ActionsDisabledHint { get; set; }
|
56
64
|
|
@@ -141,6 +149,12 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
141
149
|
[DataSourceProperty]
|
142
150
|
public HintViewModel AutoRecruitmentHint { get; set; }
|
143
151
|
|
152
|
+
[DataSourceProperty]
|
153
|
+
public HintViewModel InArmyHint { get; set; }
|
154
|
+
|
155
|
+
[DataSourceProperty]
|
156
|
+
public HintViewModel ChangeLeaderHint { get; set; }
|
157
|
+
|
144
158
|
[DataSourceProperty]
|
145
159
|
public BasicTooltipViewModel InfantryHint { get; set; }
|
146
160
|
|
@@ -159,7 +173,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
159
173
|
[DataSourceProperty]
|
160
174
|
public MBBindingList<ClanRoleItemVM> Roles { get; set; }
|
161
175
|
|
162
|
-
public extern ClanPartyItemVM(PartyBase party, Action<ClanPartyItemVM> onAssignment, Action onExpenseChange, ClanPartyType type,
|
176
|
+
public extern ClanPartyItemVM(PartyBase party, Action<ClanPartyItemVM> onAssignment, Action onExpenseChange, Action onShowChangeLeaderPopup, ClanPartyType type, IDisbandPartyCampaignBehavior disbandBehavior, ITeleportationCampaignBehavior teleportationBehavior);
|
163
177
|
|
164
178
|
public override extern void RefreshValues();
|
165
179
|
|
@@ -167,6 +181,8 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
167
181
|
|
168
182
|
public extern void OnPartySelection();
|
169
183
|
|
184
|
+
public extern void ExecuteChangeLeader();
|
185
|
+
|
170
186
|
public override extern void OnFinalize();
|
171
187
|
}
|
172
188
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Party;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
using TaleWorlds.Localization;
|
7
7
|
|
@@ -30,12 +30,18 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
30
30
|
[DataSourceProperty]
|
31
31
|
public bool IsNotAssigned { get; set; }
|
32
32
|
|
33
|
+
[DataSourceProperty]
|
34
|
+
public bool HasEffects { get; set; }
|
35
|
+
|
33
36
|
[DataSourceProperty]
|
34
37
|
public string Name { get; set; }
|
35
38
|
|
36
39
|
[DataSourceProperty]
|
37
40
|
public string AssignedMemberEffects { get; set; }
|
38
41
|
|
42
|
+
[DataSourceProperty]
|
43
|
+
public string NoEffectText { get; set; }
|
44
|
+
|
39
45
|
public extern ClanRoleItemVM(MobileParty party, SkillEffect.PerkRole role, MBBindingList<ClanPartyMemberItemVM> heroMembers, Action<ClanRoleItemVM> onRoleSelectionToggled, Action onRoleAssigned);
|
40
46
|
|
41
47
|
public override extern void RefreshValues();
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Party;
|
4
4
|
using TaleWorlds.Core;
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
|
8
8
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
@@ -1,5 +1,7 @@
|
|
1
1
|
using System;
|
2
|
+
using TaleWorlds.CampaignSystem.CampaignBehaviors;
|
2
3
|
using TaleWorlds.CampaignSystem.Settlements;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
5
|
using TaleWorlds.Library;
|
4
6
|
|
5
7
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
@@ -26,6 +28,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
26
28
|
[DataSourceProperty]
|
27
29
|
public string NotablesText { get; set; }
|
28
30
|
|
31
|
+
[DataSourceProperty]
|
32
|
+
public string MembersText { get; set; }
|
33
|
+
|
29
34
|
[DataSourceProperty]
|
30
35
|
public bool IsFortification { get; set; }
|
31
36
|
|
@@ -35,6 +40,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
35
40
|
[DataSourceProperty]
|
36
41
|
public bool HasNotables { get; set; }
|
37
42
|
|
43
|
+
[DataSourceProperty]
|
44
|
+
public bool IsSendMembersEnabled { get; set; }
|
45
|
+
|
38
46
|
[DataSourceProperty]
|
39
47
|
public bool IsSelected { get; set; }
|
40
48
|
|
@@ -47,7 +55,13 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
47
55
|
[DataSourceProperty]
|
48
56
|
public MBBindingList<HeroVM> Notables { get; set; }
|
49
57
|
|
50
|
-
|
58
|
+
[DataSourceProperty]
|
59
|
+
public MBBindingList<HeroVM> Members { get; set; }
|
60
|
+
|
61
|
+
[DataSourceProperty]
|
62
|
+
public HintViewModel SendMembersHint { get; set; }
|
63
|
+
|
64
|
+
public extern ClanSettlementItemVM(Settlement settlement, Action<ClanSettlementItemVM> onSelection, Action onShowSendMembers, ITeleportationCampaignBehavior teleportationBehavior);
|
51
65
|
|
52
66
|
public override extern void RefreshValues();
|
53
67
|
|
@@ -58,5 +72,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
|
58
72
|
public extern void ExecuteCloseTooltip();
|
59
73
|
|
60
74
|
public extern void ExecuteOpenTooltip();
|
75
|
+
|
76
|
+
public extern void ExecuteSendMembers();
|
61
77
|
}
|
62
78
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Settlements;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
6
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categories
|
@@ -37,6 +37,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
37
37
|
[DataSourceProperty]
|
38
38
|
public string NoFiefsText { get; set; }
|
39
39
|
|
40
|
+
[DataSourceProperty]
|
41
|
+
public string NoGovernorText { get; set; }
|
42
|
+
|
40
43
|
[DataSourceProperty]
|
41
44
|
public bool IsSelected { get; set; }
|
42
45
|
|
@@ -49,7 +52,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
49
52
|
[DataSourceProperty]
|
50
53
|
public ClanSettlementItemVM CurrentSelectedFief { get; set; }
|
51
54
|
|
52
|
-
public extern ClanFiefsVM(Action onRefresh);
|
55
|
+
public extern ClanFiefsVM(Action onRefresh, Action<ClanCardSelectionInfo> openCardSelectionPopup);
|
53
56
|
|
54
57
|
public override extern void RefreshValues();
|
55
58
|
|
@@ -60,7 +63,5 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
60
63
|
public extern void SelectFief(Settlement settlement);
|
61
64
|
|
62
65
|
public extern void ExecuteAssignGovernor();
|
63
|
-
|
64
|
-
public extern Settlement GetSettlementOfGovernor(Hero hero);
|
65
66
|
}
|
66
67
|
}
|
@@ -2,6 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Settlements.Workshops;
|
4
4
|
using TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.ClanFinance;
|
5
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Supporters;
|
5
6
|
using TaleWorlds.Library;
|
6
7
|
|
7
8
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categories
|
@@ -50,7 +51,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
50
51
|
[DataSourceProperty]
|
51
52
|
public MBBindingList<ClanSupporterGroupVM> SupporterGroups { get; set; }
|
52
53
|
|
53
|
-
public extern ClanIncomeVM(Action onRefresh);
|
54
|
+
public extern ClanIncomeVM(Action onRefresh, Action<ClanCardSelectionInfo> openCardSelectionPopup);
|
54
55
|
|
55
56
|
public override extern void RefreshValues();
|
56
57
|
|
@@ -1,21 +1,13 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
2
|
using TaleWorlds.Library;
|
4
|
-
using TaleWorlds.Localization;
|
5
3
|
|
6
4
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categories
|
7
5
|
{
|
8
6
|
public class ClanMembersVM : ViewModel
|
9
7
|
{
|
10
|
-
[DataSourceProperty]
|
11
|
-
public HintViewModel KickFromClanActionHint { get; set; }
|
12
|
-
|
13
8
|
[DataSourceProperty]
|
14
9
|
public bool IsAnyValidMemberSelected { get; set; }
|
15
10
|
|
16
|
-
[DataSourceProperty]
|
17
|
-
public bool CanKickCurrentMemberFromClan { get; set; }
|
18
|
-
|
19
11
|
[DataSourceProperty]
|
20
12
|
public bool IsSelected { get; set; }
|
21
13
|
|
@@ -28,9 +20,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
28
20
|
[DataSourceProperty]
|
29
21
|
public string SkillsText { get; set; }
|
30
22
|
|
31
|
-
[DataSourceProperty]
|
32
|
-
public string KickFromClanText { get; set; }
|
33
|
-
|
34
23
|
[DataSourceProperty]
|
35
24
|
public string NameText { get; set; }
|
36
25
|
|
@@ -49,7 +38,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
49
38
|
[DataSourceProperty]
|
50
39
|
public ClanLordItemVM CurrentSelectedMember { get; set; }
|
51
40
|
|
52
|
-
public extern ClanMembersVM(Action onRefresh);
|
41
|
+
public extern ClanMembersVM(Action onRefresh, Action<Hero> showHeroOnMap);
|
53
42
|
|
54
43
|
public override extern void RefreshValues();
|
55
44
|
|
@@ -57,10 +46,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
57
46
|
|
58
47
|
public extern void SelectMember(Hero hero);
|
59
48
|
|
60
|
-
public extern bool GetCanKickMemberFromClanWithReason(ClanLordItemVM member, out TextObject disabledReason);
|
61
|
-
|
62
|
-
public extern void ExecuteKickCurrentMemberFromClan();
|
63
|
-
|
64
49
|
public override extern void OnFinalize();
|
65
50
|
}
|
66
51
|
}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Party;
|
4
|
-
using TaleWorlds.
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
6
5
|
using TaleWorlds.Library;
|
7
6
|
|
8
7
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categories
|
@@ -15,18 +14,12 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
15
14
|
public int TotalIncome { [CompilerGenerated]
|
16
15
|
get; }
|
17
16
|
|
18
|
-
[DataSourceProperty]
|
19
|
-
public HintViewModel DisbandActionHint { get; set; }
|
20
|
-
|
21
17
|
[DataSourceProperty]
|
22
18
|
public HintViewModel CreateNewPartyActionHint { get; set; }
|
23
19
|
|
24
20
|
[DataSourceProperty]
|
25
21
|
public bool IsAnyValidPartySelected { get; set; }
|
26
22
|
|
27
|
-
[DataSourceProperty]
|
28
|
-
public string DisbandPartyText { get; set; }
|
29
|
-
|
30
23
|
[DataSourceProperty]
|
31
24
|
public string NameText { get; set; }
|
32
25
|
|
@@ -54,9 +47,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
54
47
|
[DataSourceProperty]
|
55
48
|
public bool IsSelected { get; set; }
|
56
49
|
|
57
|
-
[DataSourceProperty]
|
58
|
-
public bool CanDisbandCurrentParty { get; set; }
|
59
|
-
|
60
50
|
[DataSourceProperty]
|
61
51
|
public bool CanCreateNewParty { get; set; }
|
62
52
|
|
@@ -72,7 +62,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
72
62
|
[DataSourceProperty]
|
73
63
|
public ClanPartyItemVM CurrentSelectedParty { get; set; }
|
74
64
|
|
75
|
-
public extern ClanPartiesVM(Action onExpenseChange, Action<Hero> openPartyAsManage, Action onRefresh,
|
65
|
+
public extern ClanPartiesVM(Action onExpenseChange, Action<Hero> openPartyAsManage, Action onRefresh, Action<ClanCardSelectionInfo> openCardSelectionPopup);
|
76
66
|
|
77
67
|
public override extern void RefreshValues();
|
78
68
|
|
@@ -82,10 +72,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categorie
|
|
82
72
|
|
83
73
|
public extern void ExecuteCreateNewParty();
|
84
74
|
|
85
|
-
public extern void ExecuteDisbandCurrentParty();
|
86
|
-
|
87
75
|
public extern void SelectParty(PartyBase party);
|
88
76
|
|
89
77
|
public override extern void OnFinalize();
|
78
|
+
|
79
|
+
public extern void OnShowChangeLeaderPopup();
|
90
80
|
}
|
91
81
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Settlements;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
7
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.ClanFinance
|
@@ -1,6 +1,8 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Settlements.Workshops;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
|
+
using TaleWorlds.Library;
|
4
6
|
|
5
7
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.ClanFinance
|
6
8
|
{
|
@@ -9,6 +11,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.ClanFinan
|
|
9
11
|
public Workshop Workshop { [CompilerGenerated]
|
10
12
|
get; }
|
11
13
|
|
14
|
+
[DataSourceProperty]
|
15
|
+
public HintViewModel ManageWorkshopHint { get; set; }
|
16
|
+
|
12
17
|
public string WorkshopTypeId { get; set; }
|
13
18
|
|
14
19
|
public string InputsText { get; set; }
|
@@ -19,20 +24,16 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.ClanFinan
|
|
19
24
|
|
20
25
|
public string OutputProducts { get; set; }
|
21
26
|
|
22
|
-
public extern ClanFinanceWorkshopItemVM(Workshop workshop, Action<ClanFinanceWorkshopItemVM> onSelection, Action onRefresh);
|
27
|
+
public extern ClanFinanceWorkshopItemVM(Workshop workshop, Action<ClanFinanceWorkshopItemVM> onSelection, Action onRefresh, Action<ClanCardSelectionInfo> openCardSelectionPopup);
|
23
28
|
|
24
29
|
public override extern void RefreshValues();
|
25
30
|
|
26
|
-
protected override extern void PopulateActionList();
|
27
|
-
|
28
31
|
protected override extern void PopulateStatsList();
|
29
32
|
|
30
|
-
public extern void ExecuteUpgradeWorkshop(object identifier);
|
31
|
-
|
32
|
-
public extern void ExecuteDowngradeWorkshop(object identifier);
|
33
|
-
|
34
33
|
public extern void ExecuteBeginWorkshopHint();
|
35
34
|
|
36
35
|
public extern void ExecuteEndHint();
|
36
|
+
|
37
|
+
public extern void ExecuteManageWorkshop();
|
37
38
|
}
|
38
39
|
}
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Supporters
|
6
6
|
{
|
7
7
|
public class ClanSupporterGroupVM : ViewModel
|
8
8
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Supporters
|
4
4
|
{
|
5
5
|
public class ClanSupporterItemVM : ViewModel
|
6
6
|
{
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.Party;
|
2
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Quests;
|
2
3
|
using TaleWorlds.Core;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
|
@@ -14,6 +15,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Conversation
|
|
14
15
|
[DataSourceProperty]
|
15
16
|
public int HealthyAmount { get; set; }
|
16
17
|
|
18
|
+
[DataSourceProperty]
|
19
|
+
public MBBindingList<QuestMarkerVM> Quests { get; set; }
|
20
|
+
|
17
21
|
public extern ConversationAggressivePartyItemVM(MobileParty party, CharacterObject leader = null);
|
18
22
|
|
19
23
|
public extern void ExecuteShowPartyTooltip();
|
@@ -1,10 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Conversation;
|
3
|
-
using TaleWorlds.
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
4
|
using TaleWorlds.Library;
|
6
5
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Conversation
|
8
7
|
{
|
9
8
|
public class ConversationItemVM : ViewModel
|
10
9
|
{
|
@@ -1,11 +1,11 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Conversation;
|
4
3
|
using TaleWorlds.Core;
|
5
4
|
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
|
8
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Conversation
|
9
9
|
{
|
10
10
|
public class MissionConversationVM : ViewModel
|
11
11
|
{
|
@@ -43,6 +43,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
43
43
|
[DataSourceProperty]
|
44
44
|
public string MoreOptionText { get; set; }
|
45
45
|
|
46
|
+
[DataSourceProperty]
|
47
|
+
public string GoldText { get; set; }
|
48
|
+
|
46
49
|
[DataSourceProperty]
|
47
50
|
public string PersuasionText { get; set; }
|
48
51
|
|
@@ -94,6 +97,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
94
97
|
[DataSourceProperty]
|
95
98
|
public HintViewModel FactionHint { get; set; }
|
96
99
|
|
100
|
+
[DataSourceProperty]
|
101
|
+
public HintViewModel GoldHint { get; set; }
|
102
|
+
|
97
103
|
public extern MissionConversationVM(Func<string> getContinueInputText);
|
98
104
|
|
99
105
|
public override extern void RefreshValues();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Conversation;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
6
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Conversation
|
@@ -1,7 +1,8 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Conversation;
|
3
3
|
using TaleWorlds.CampaignSystem.Conversation.Persuasion;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
6
|
using TaleWorlds.Library;
|
6
7
|
|
7
8
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Conversation
|
@@ -44,7 +45,5 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Conversation
|
|
44
45
|
public extern void SetCurrentOption(PersuasionOptionVM option);
|
45
46
|
|
46
47
|
public extern void RefreshPersusasion();
|
47
|
-
|
48
|
-
public override extern void OnFinalize();
|
49
48
|
}
|
50
49
|
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
-
using TaleWorlds.Localization;
|
3
|
-
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Craft
|
5
|
-
{
|
6
|
-
public class CraftingSecondaryUsageItemVM : SelectorItemVM
|
7
|
-
{
|
8
|
-
public extern CraftingSecondaryUsageItemVM(TextObject name, int index, SelectorVM<CraftingSecondaryUsageItemVM> parentSelector);
|
9
|
-
|
10
|
-
public extern void ExecuteSelect();
|
11
|
-
}
|
12
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Library;
|
3
|
-
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Craft.WeaponDesign
|
5
|
-
{
|
6
|
-
public class WeaponAttributeVM : ViewModel
|
7
|
-
{
|
8
|
-
public int AttributeType { [CompilerGenerated]
|
9
|
-
get; }
|
10
|
-
|
11
|
-
public float AttributeValue { [CompilerGenerated]
|
12
|
-
get; }
|
13
|
-
|
14
|
-
[DataSourceProperty]
|
15
|
-
public string AttributeFieldText { get; set; }
|
16
|
-
|
17
|
-
public extern WeaponAttributeVM(int type, string attributeName, float attributeValue);
|
18
|
-
}
|
19
|
-
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Education
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
2
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
7
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Education
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.CampaignBehaviors;
|
4
4
|
using TaleWorlds.Core;
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
using TaleWorlds.Localization;
|
8
8
|
|
@@ -1,4 +1,5 @@
|
|
1
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
1
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List;
|
2
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages;
|
2
3
|
using TaleWorlds.Library;
|
3
4
|
|
4
5
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
4
4
|
{
|
5
5
|
public class EncyclopediaLinkVM : ViewModel
|
6
6
|
{
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System;
|
2
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages;
|
2
3
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
3
4
|
using TaleWorlds.InputSystem;
|
4
5
|
using TaleWorlds.Library;
|
@@ -6,6 +6,8 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
|
6
6
|
{
|
7
7
|
public class EncyclopediaSearchResultVM : ViewModel
|
8
8
|
{
|
9
|
+
public readonly int MatchStartIndex;
|
10
|
+
|
9
11
|
public string LinkId;
|
10
12
|
|
11
13
|
public string PageType;
|
@@ -18,7 +20,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
|
18
20
|
[DataSourceProperty]
|
19
21
|
public string NameText { get; set; }
|
20
22
|
|
21
|
-
public extern EncyclopediaSearchResultVM(EncyclopediaListItem source, string searchedText);
|
23
|
+
public extern EncyclopediaSearchResultVM(EncyclopediaListItem source, string searchedText, int matchStartIndex);
|
22
24
|
|
23
25
|
public extern void UpdateSearchedText(string searchedText);
|
24
26
|
|
@@ -1,18 +0,0 @@
|
|
1
|
-
using TaleWorlds.Library;
|
2
|
-
using TaleWorlds.Localization;
|
3
|
-
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.EncyclopediaItems
|
5
|
-
{
|
6
|
-
public class EncyclopediaQuestGiverVM : EncyclopediaLinkVM
|
7
|
-
{
|
8
|
-
[DataSourceProperty]
|
9
|
-
public string QuestGiverName { get; set; }
|
10
|
-
|
11
|
-
[DataSourceProperty]
|
12
|
-
public bool IsQuestGiverNameShown { get; set; }
|
13
|
-
|
14
|
-
public extern EncyclopediaQuestGiverVM(TextObject s);
|
15
|
-
|
16
|
-
public override extern void RefreshValues();
|
17
|
-
}
|
18
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
using TaleWorlds.Library;
|
2
|
-
using TaleWorlds.Localization;
|
3
|
-
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.EncyclopediaItems
|
5
|
-
{
|
6
|
-
public class EncyclopediaQuestStageVM : EncyclopediaLinkVM
|
7
|
-
{
|
8
|
-
[DataSourceProperty]
|
9
|
-
public string StageText { get; set; }
|
10
|
-
|
11
|
-
public extern EncyclopediaQuestStageVM(TextObject s);
|
12
|
-
|
13
|
-
public override extern void RefreshValues();
|
14
|
-
}
|
15
|
-
}
|
@@ -2,7 +2,7 @@ using TaleWorlds.CampaignSystem.Settlements;
|
|
2
2
|
using TaleWorlds.CampaignSystem.Settlements.Workshops;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items
|
6
6
|
{
|
7
7
|
public class EncyclopediaDwellingVM : ViewModel
|
8
8
|
{
|
@@ -1,10 +1,14 @@
|
|
1
|
+
using System.Runtime.CompilerServices;
|
1
2
|
using TaleWorlds.Core;
|
2
3
|
using TaleWorlds.Library;
|
3
4
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items
|
5
6
|
{
|
6
7
|
public class EncyclopediaFactionVM : ViewModel
|
7
8
|
{
|
9
|
+
public IFaction Faction { [CompilerGenerated]
|
10
|
+
get; }
|
11
|
+
|
8
12
|
[DataSourceProperty]
|
9
13
|
public ImageIdentifierVM ImageIdentifier { get; set; }
|
10
14
|
|
@@ -18,6 +22,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Encyclopedi
|
|
18
22
|
|
19
23
|
public override extern void RefreshValues();
|
20
24
|
|
21
|
-
|
25
|
+
public extern void ExecuteLink();
|
22
26
|
}
|
23
27
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items
|
4
4
|
{
|
5
5
|
public class EncyclopediaFamilyMemberVM : HeroVM
|
6
6
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.LogEntries;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items
|
5
5
|
{
|
6
6
|
public class EncyclopediaHistoryEventVM : EncyclopediaLinkVM
|
7
7
|
{
|
@@ -14,5 +14,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Encyclopedi
|
|
14
14
|
public extern EncyclopediaHistoryEventVM(IEncyclopediaLog log);
|
15
15
|
|
16
16
|
public override extern void RefreshValues();
|
17
|
+
|
18
|
+
public extern void ExecuteLink(string link);
|
17
19
|
}
|
18
20
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.Settlements;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items
|
5
5
|
{
|
6
6
|
public class EncyclopediaSettlementVM : ViewModel
|
7
7
|
{
|
@@ -15,6 +15,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Encyclopedi
|
|
15
15
|
|
16
16
|
public override extern void RefreshValues();
|
17
17
|
|
18
|
-
|
18
|
+
public extern void ExecuteLink();
|
19
|
+
|
20
|
+
public extern void ExecuteEndHint();
|
21
|
+
|
22
|
+
public extern void ExecuteBeginHint();
|
19
23
|
}
|
20
24
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items
|
6
6
|
{
|
7
7
|
public class EncyclopediaSkillVM : ViewModel
|
8
8
|
{
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.CharacterDevelopment;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items
|
6
6
|
{
|
7
7
|
public class EncyclopediaTraitItemVM : ViewModel
|
8
8
|
{
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.CharacterDevelopment;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items
|
6
6
|
{
|
7
7
|
public class EncyclopediaTroopTreeNodeVM : ViewModel
|
8
8
|
{
|
@@ -12,9 +12,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Encyclopedi
|
|
12
12
|
[DataSourceProperty]
|
13
13
|
public bool IsAlternativeUpgrade { get; set; }
|
14
14
|
|
15
|
-
[DataSourceProperty]
|
16
|
-
public bool IsAlternativeUpgradePossible { get; set; }
|
17
|
-
|
18
15
|
[DataSourceProperty]
|
19
16
|
public MBBindingList<EncyclopediaTroopTreeNodeVM> Branch { get; set; }
|
20
17
|
|
@@ -24,7 +21,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Encyclopedi
|
|
24
21
|
[DataSourceProperty]
|
25
22
|
public BasicTooltipViewModel AlternativeUpgradeTooltip { get; set; }
|
26
23
|
|
27
|
-
public extern EncyclopediaTroopTreeNodeVM(CharacterObject rootCharacter, CharacterObject activeCharacter, bool isAlternativeUpgrade,
|
24
|
+
public extern EncyclopediaTroopTreeNodeVM(CharacterObject rootCharacter, CharacterObject activeCharacter, bool isAlternativeUpgrade, PerkObject alternativeUpgradePerk = null);
|
28
25
|
|
29
26
|
public override extern void RefreshValues();
|
30
27
|
}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
4
5
|
using TaleWorlds.Library;
|
5
6
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items
|
7
8
|
{
|
8
9
|
public class EncyclopediaUnitEquipmentSetSelectorItemVM : SelectorItemVM
|
9
10
|
{
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items
|
6
6
|
{
|
7
7
|
public class EncyclopediaUnitVM : ViewModel
|
8
8
|
{
|
@@ -25,10 +25,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Encyclopedi
|
|
25
25
|
|
26
26
|
public override extern void RefreshValues();
|
27
27
|
|
28
|
-
|
28
|
+
public extern void ExecuteLink();
|
29
29
|
|
30
|
-
|
30
|
+
public virtual extern void ExecuteBeginHint();
|
31
31
|
|
32
|
-
|
32
|
+
public virtual extern void ExecuteEndHint();
|
33
33
|
}
|
34
34
|
}
|
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|
3
3
|
using TaleWorlds.CampaignSystem.Encyclopedia;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List
|
7
7
|
{
|
8
8
|
public class EncyclopediaFilterGroupVM : ViewModel
|
9
9
|
{
|
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|
3
3
|
using TaleWorlds.CampaignSystem.Encyclopedia;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List
|
7
7
|
{
|
8
8
|
public class EncyclopediaListFilterVM : ViewModel
|
9
9
|
{
|
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Encyclopedia;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List
|
6
6
|
{
|
7
7
|
public class EncyclopediaListItemComparer : IComparer<EncyclopediaListItemVM>
|
8
8
|
{
|
@@ -2,7 +2,7 @@ using System.Runtime.CompilerServices;
|
|
2
2
|
using TaleWorlds.CampaignSystem.Encyclopedia;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List
|
6
6
|
{
|
7
7
|
public class EncyclopediaListItemVM : ViewModel
|
8
8
|
{
|
@@ -15,6 +15,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Encyclopedi
|
|
15
15
|
[DataSourceProperty]
|
16
16
|
public bool IsFiltered { get; set; }
|
17
17
|
|
18
|
+
[DataSourceProperty]
|
19
|
+
public bool PlayerCanSeeValues { get; set; }
|
20
|
+
|
18
21
|
[DataSourceProperty]
|
19
22
|
public string Id { get; set; }
|
20
23
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
2
2
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List
|
4
4
|
{
|
5
5
|
public class EncyclopediaListSelectorItemVM : SelectorItemVM
|
6
6
|
{
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.Encyclopedia;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List
|
6
6
|
{
|
7
7
|
public class EncyclopediaListSortControllerVM : ViewModel
|
8
8
|
{
|
@@ -1,8 +1,9 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.CampaignSystem.Encyclopedia;
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List
|
6
7
|
{
|
7
8
|
public class EncyclopediaListVM : EncyclopediaPageVM
|
8
9
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.Encyclopedia;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List
|
5
5
|
{
|
6
6
|
public class ListTypeVM : ViewModel
|
7
7
|
{
|
@@ -1,9 +1,10 @@
|
|
1
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
1
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
5
|
using TaleWorlds.Library;
|
5
6
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
7
8
|
{
|
8
9
|
[EncyclopediaViewModel(typeof(Clan))]
|
9
10
|
public class EncyclopediaClanPageVM : EncyclopediaContentPageVM
|
@@ -99,6 +100,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
|
99
100
|
|
100
101
|
public override extern string GetNavigationBarURL();
|
101
102
|
|
102
|
-
|
103
|
+
public override extern void ExecuteSwitchBookmarkedState();
|
103
104
|
}
|
104
105
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
4
4
|
{
|
5
5
|
[EncyclopediaViewModel(typeof(Concept))]
|
6
6
|
public class EncyclopediaConceptPageVM : EncyclopediaContentPageVM
|
@@ -19,10 +19,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
|
19
19
|
|
20
20
|
public override extern string GetName();
|
21
21
|
|
22
|
-
|
22
|
+
public extern void ExecuteLink(string link);
|
23
23
|
|
24
24
|
public override extern string GetNavigationBarURL();
|
25
25
|
|
26
|
-
|
26
|
+
public override extern void ExecuteSwitchBookmarkedState();
|
27
27
|
}
|
28
28
|
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
6
6
|
{
|
7
7
|
public class EncyclopediaContentPageVM : EncyclopediaPageVM
|
8
8
|
{
|
@@ -1,9 +1,9 @@
|
|
1
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
1
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
7
7
|
{
|
8
8
|
[EncyclopediaViewModel(typeof(Kingdom))]
|
9
9
|
public class EncyclopediaFactionPageVM : EncyclopediaContentPageVM
|
@@ -75,6 +75,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
|
75
75
|
|
76
76
|
public override extern string GetNavigationBarURL();
|
77
77
|
|
78
|
-
|
78
|
+
public override extern void ExecuteSwitchBookmarkedState();
|
79
79
|
}
|
80
80
|
}
|
@@ -1,8 +1,9 @@
|
|
1
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
6
7
|
{
|
7
8
|
[EncyclopediaViewModel(typeof(Hero))]
|
8
9
|
public class EncyclopediaHeroPageVM : EncyclopediaContentPageVM
|
@@ -119,7 +120,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
|
119
120
|
|
120
121
|
public override extern string GetNavigationBarURL();
|
121
122
|
|
122
|
-
|
123
|
+
public extern void ExecuteLink(string link);
|
124
|
+
|
125
|
+
public override extern void ExecuteSwitchBookmarkedState();
|
123
126
|
|
124
127
|
public override extern void OnFinalize();
|
125
128
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
1
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
2
2
|
{
|
3
3
|
public struct EncyclopediaPageArgs
|
4
4
|
{
|
@@ -1,8 +1,8 @@
|
|
1
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
6
6
|
{
|
7
7
|
public class EncyclopediaPageVM : ViewModel
|
8
8
|
{
|
@@ -36,7 +36,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
|
36
36
|
|
37
37
|
public virtual extern void OnTick();
|
38
38
|
|
39
|
-
|
39
|
+
public virtual extern void ExecuteSwitchBookmarkedState();
|
40
40
|
|
41
41
|
protected extern void UpdateBookmarkHintText();
|
42
42
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.Settlements;
|
2
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
7
7
|
{
|
8
8
|
[EncyclopediaViewModel(typeof(Settlement))]
|
9
9
|
public class EncyclopediaSettlementPageVM : EncyclopediaContentPageVM
|
@@ -130,9 +130,13 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
|
130
130
|
|
131
131
|
public override extern string GetName();
|
132
132
|
|
133
|
+
public extern void ExecuteTrack();
|
134
|
+
|
133
135
|
public override extern string GetNavigationBarURL();
|
134
136
|
|
135
|
-
|
137
|
+
public extern void ExecuteBoundSettlementLink();
|
138
|
+
|
139
|
+
public override extern void ExecuteSwitchBookmarkedState();
|
136
140
|
|
137
141
|
public override extern void OnFinalize();
|
138
142
|
}
|
@@ -1,8 +1,10 @@
|
|
1
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
1
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
2
2
|
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
5
|
using TaleWorlds.Library;
|
4
6
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
6
8
|
{
|
7
9
|
[EncyclopediaViewModel(typeof(CharacterObject))]
|
8
10
|
public class EncyclopediaUnitPageVM : EncyclopediaContentPageVM
|
@@ -48,6 +50,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
|
48
50
|
|
49
51
|
public override extern string GetNavigationBarURL();
|
50
52
|
|
51
|
-
|
53
|
+
public override extern void ExecuteSwitchBookmarkedState();
|
52
54
|
}
|
53
55
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
5
5
|
{
|
6
6
|
public class EncyclopediaViewModel : Attribute
|
7
7
|
{
|
@@ -2,7 +2,7 @@ using System.Runtime.CompilerServices;
|
|
2
2
|
using TaleWorlds.CampaignSystem.Settlements;
|
3
3
|
using TaleWorlds.Library.EventSystem;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Pages
|
6
6
|
{
|
7
7
|
public class PlayerToggleTrackSettlementFromEncyclopediaEvent : EventBase
|
8
8
|
{
|
@@ -3,7 +3,8 @@ using TaleWorlds.CampaignSystem.GameMenus;
|
|
3
3
|
using TaleWorlds.CampaignSystem.GameState;
|
4
4
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
5
5
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Quests;
|
6
|
-
using TaleWorlds.Core.ViewModelCollection;
|
6
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
7
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
7
8
|
using TaleWorlds.InputSystem;
|
8
9
|
using TaleWorlds.Library;
|
9
10
|
using TaleWorlds.Localization;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Tutorial;
|
3
5
|
using TaleWorlds.Library;
|
4
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.GameMenu;
|
5
6
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Overlay
|
7
8
|
{
|
8
9
|
[MenuOverlay("ArmyMenuOverlay")]
|
9
10
|
public class ArmyMenuOverlayVM : GameMenuOverlay
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
2
|
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
4
|
using TaleWorlds.Library;
|
4
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.GameMenu;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Overlay
|
7
7
|
{
|
8
8
|
[MenuOverlay("EncounterMenuOverlay")]
|
9
9
|
public class EncounterMenuOverlayVM : GameMenuOverlay
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.Overlay;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Overlay
|
6
6
|
{
|
7
7
|
public class GameMenuOverlay : ViewModel
|
8
8
|
{
|
@@ -23,6 +23,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameMenu
|
|
23
23
|
|
24
24
|
protected GameMenuPartyItemVM _contextMenuItem;
|
25
25
|
|
26
|
+
[DataSourceProperty]
|
27
|
+
public bool IsContextMenuEnabled { get; set; }
|
28
|
+
|
26
29
|
[DataSourceProperty]
|
27
30
|
public bool IsInitializationOver { get; set; }
|
28
31
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.Localization;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Overlay
|
7
7
|
{
|
8
8
|
public class GameMenuOverlayActionVM : StringItemWithEnabledAndHintVM
|
9
9
|
{
|
@@ -1,12 +1,11 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.CampaignSystem;
|
3
2
|
using TaleWorlds.CampaignSystem.Party;
|
4
3
|
using TaleWorlds.CampaignSystem.Settlements;
|
5
4
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Quests;
|
6
5
|
using TaleWorlds.Core;
|
7
6
|
using TaleWorlds.Library;
|
8
7
|
|
9
|
-
namespace TaleWorlds.
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Overlay
|
10
9
|
{
|
11
10
|
public class GameMenuPartyItemVM : ViewModel
|
12
11
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
|
3
|
-
namespace TaleWorlds.
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Overlay
|
4
4
|
{
|
5
5
|
public class MenuOverlay : Attribute
|
6
6
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.
|
1
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Overlay
|
2
2
|
{
|
3
3
|
public enum OverlayType
|
4
4
|
{
|
@@ -2,13 +2,13 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Overlay;
|
4
4
|
using TaleWorlds.Core;
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
6
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
6
7
|
using TaleWorlds.Library;
|
7
8
|
using TaleWorlds.Library.EventSystem;
|
8
9
|
using TaleWorlds.Localization;
|
9
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.GameMenu;
|
10
10
|
|
11
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
11
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Overlay
|
12
12
|
{
|
13
13
|
[MenuOverlay("SettlementMenuOverlay")]
|
14
14
|
public class SettlementMenuOverlayVM : GameMenuOverlay
|
@@ -163,8 +163,6 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
|
163
163
|
|
164
164
|
public override extern void UpdateOverlayType(GameOverlays.MenuOverlayType newType);
|
165
165
|
|
166
|
-
public override extern void OnFrameTick(float dt);
|
167
|
-
|
168
166
|
public override extern void Refresh();
|
169
167
|
|
170
168
|
public extern void ExecuteAddCompanion();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Recruitment
|
4
4
|
{
|
5
5
|
public class RecruitVolunteerOwnerVM : HeroVM
|
6
6
|
{
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Recruitment
|
7
7
|
{
|
8
8
|
public class RecruitVolunteerTroopVM : ViewModel
|
9
9
|
{
|
@@ -1,10 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Recruitment
|
8
8
|
{
|
9
9
|
public class RecruitVolunteerVM : ViewModel
|
10
10
|
{
|
@@ -1,12 +1,12 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.InputSystem;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
using TaleWorlds.Localization;
|
8
8
|
|
9
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
9
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Recruitment
|
10
10
|
{
|
11
11
|
public class RecruitmentVM : ViewModel
|
12
12
|
{
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TournamentLeaderboard
|
6
6
|
{
|
7
7
|
public class TournamentLeaderboardEntryItemVM : ViewModel
|
8
8
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TournamentLeaderboard
|
5
5
|
{
|
6
6
|
public class TournamentLeaderboardSortControllerVM : ViewModel
|
7
7
|
{
|
@@ -1,9 +1,14 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
2
|
+
using TaleWorlds.InputSystem;
|
1
3
|
using TaleWorlds.Library;
|
2
4
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TournamentLeaderboard
|
4
6
|
{
|
5
7
|
public class TournamentLeaderboardVM : ViewModel
|
6
8
|
{
|
9
|
+
[DataSourceProperty]
|
10
|
+
public InputKeyItemVM DoneInputKey { get; set; }
|
11
|
+
|
7
12
|
[DataSourceProperty]
|
8
13
|
public bool IsEnabled { get; set; }
|
9
14
|
|
@@ -32,6 +37,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
|
32
37
|
|
33
38
|
public override extern void RefreshValues();
|
34
39
|
|
40
|
+
public override extern void OnFinalize();
|
41
|
+
|
35
42
|
public extern void ExecuteDone();
|
43
|
+
|
44
|
+
public extern void SetDoneInputKey(HotKey hotKey);
|
36
45
|
}
|
37
46
|
}
|
@@ -6,6 +6,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TownManagement
|
|
6
6
|
{
|
7
7
|
public class SettlementBuildingProjectVM : SettlementProjectVM
|
8
8
|
{
|
9
|
+
[DataSourceProperty]
|
10
|
+
public bool IsSelected { get; set; }
|
11
|
+
|
9
12
|
[DataSourceProperty]
|
10
13
|
public string DevelopmentLevelText { get; set; }
|
11
14
|
|
@@ -7,10 +7,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TownManagement
|
|
7
7
|
public class SettlementDailyProjectVM : SettlementProjectVM
|
8
8
|
{
|
9
9
|
[DataSourceProperty]
|
10
|
-
public
|
10
|
+
public bool IsDefault { get; set; }
|
11
11
|
|
12
12
|
[DataSourceProperty]
|
13
|
-
public
|
13
|
+
public string DefaultText { get; set; }
|
14
14
|
|
15
15
|
public extern SettlementDailyProjectVM(Action<SettlementProjectVM, bool> onSelection, Action<SettlementProjectVM> onSetAsCurrent, Action onResetCurrent, Building building);
|
16
16
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
7
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TownManagement
|
@@ -3,10 +3,9 @@ using System.Collections.Generic;
|
|
3
3
|
using System.Runtime.CompilerServices;
|
4
4
|
using TaleWorlds.CampaignSystem.Settlements;
|
5
5
|
using TaleWorlds.CampaignSystem.Settlements.Buildings;
|
6
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TownManagement;
|
7
6
|
using TaleWorlds.Library;
|
8
7
|
|
9
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TownManagement
|
10
9
|
{
|
11
10
|
public class SettlementProjectSelectionVM : ViewModel
|
12
11
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
@@ -1,10 +1,15 @@
|
|
1
|
-
using TaleWorlds.
|
1
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
|
+
using TaleWorlds.InputSystem;
|
2
4
|
using TaleWorlds.Library;
|
3
5
|
|
4
6
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TownManagement
|
5
7
|
{
|
6
8
|
public class TownManagementVM : ViewModel
|
7
9
|
{
|
10
|
+
[DataSourceProperty]
|
11
|
+
public InputKeyItemVM DoneInputKey { get; set; }
|
12
|
+
|
8
13
|
[DataSourceProperty]
|
9
14
|
public string CompletionText { get; set; }
|
10
15
|
|
@@ -29,6 +34,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TownManagement
|
|
29
34
|
[DataSourceProperty]
|
30
35
|
public bool HasGovernor { get; set; }
|
31
36
|
|
37
|
+
[DataSourceProperty]
|
38
|
+
public bool IsGovernorSelectionEnabled { get; set; }
|
39
|
+
|
32
40
|
[DataSourceProperty]
|
33
41
|
public bool IsTown { get; set; }
|
34
42
|
|
@@ -38,6 +46,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TownManagement
|
|
38
46
|
[DataSourceProperty]
|
39
47
|
public bool IsThereCurrentProject { get; set; }
|
40
48
|
|
49
|
+
[DataSourceProperty]
|
50
|
+
public bool IsSelectingGovernor { get; set; }
|
51
|
+
|
41
52
|
[DataSourceProperty]
|
42
53
|
public MBBindingList<TownManagementDescriptionItemVM> MiddleFirstTextList { get; set; }
|
43
54
|
|
@@ -50,6 +61,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TownManagement
|
|
50
61
|
[DataSourceProperty]
|
51
62
|
public MBBindingList<TownManagementVillageItemVM> Villages { get; set; }
|
52
63
|
|
64
|
+
[DataSourceProperty]
|
65
|
+
public HintViewModel GovernorSelectionDisabledHint { get; set; }
|
66
|
+
|
53
67
|
[DataSourceProperty]
|
54
68
|
public string VillagesText { get; set; }
|
55
69
|
|
@@ -82,5 +96,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TownManagement
|
|
82
96
|
public override extern void RefreshValues();
|
83
97
|
|
84
98
|
public extern void ExecuteDone();
|
99
|
+
|
100
|
+
public override extern void OnFinalize();
|
101
|
+
|
102
|
+
public extern void SetDoneInputKey(HotKey hotKey);
|
85
103
|
}
|
86
104
|
}
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Roster;
|
4
4
|
using TaleWorlds.Core;
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
|
8
8
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TroopSelection
|
@@ -26,6 +26,8 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Input
|
|
26
26
|
|
27
27
|
public override extern void RefreshValues();
|
28
28
|
|
29
|
+
public extern void SetForcedVisibility(bool? isVisible);
|
30
|
+
|
29
31
|
public static extern InputKeyItemVM CreateFromGameKey(GameKey gameKey, bool isConsoleOnly);
|
30
32
|
|
31
33
|
public static extern InputKeyItemVM CreateFromHotKey(HotKey hotKey, bool isConsoleOnly);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
|
6
6
|
{
|
7
7
|
public class InventoryCharacterSelectorItemVM : SelectorItemVM
|
8
8
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Library.EventSystem;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
|
5
5
|
{
|
6
6
|
public class InventoryEquipmentTypeChangedEvent : EventBase
|
7
7
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Library.EventSystem;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
|
5
5
|
{
|
6
6
|
public class InventoryFilterChangedEvent : EventBase
|
7
7
|
{
|
@@ -1,10 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Inventory;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
|
8
8
|
{
|
9
9
|
public class InventoryTradeVM : ViewModel
|
10
10
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
|
@@ -1,11 +1,11 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Inventory;
|
3
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Inventory;
|
4
3
|
using TaleWorlds.Core;
|
5
4
|
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
|
8
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
|
9
9
|
{
|
10
10
|
public class ItemMenuVM : ViewModel
|
11
11
|
{
|
@@ -3,7 +3,7 @@ using TaleWorlds.Core;
|
|
3
3
|
using TaleWorlds.Core.ViewModelCollection;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
|
7
7
|
{
|
8
8
|
public class ItemPreviewVM : ViewModel
|
9
9
|
{
|
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
|
6
6
|
{
|
7
7
|
public class SPInventorySortControllerVM : ViewModel
|
8
8
|
{
|
@@ -5,11 +5,13 @@ using TaleWorlds.CampaignSystem.Roster;
|
|
5
5
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
6
6
|
using TaleWorlds.Core;
|
7
7
|
using TaleWorlds.Core.ViewModelCollection;
|
8
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
9
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
8
10
|
using TaleWorlds.InputSystem;
|
9
11
|
using TaleWorlds.Library;
|
10
12
|
using TaleWorlds.Localization;
|
11
13
|
|
12
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
14
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
|
13
15
|
{
|
14
16
|
public class SPInventoryVM : ViewModel, IInventoryStateHandler
|
15
17
|
{
|
@@ -44,6 +46,12 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
44
46
|
[DataSourceProperty]
|
45
47
|
public bool IsDoneDisabled { get; set; }
|
46
48
|
|
49
|
+
[DataSourceProperty]
|
50
|
+
public bool IsSearchAvailable { get; set; }
|
51
|
+
|
52
|
+
[DataSourceProperty]
|
53
|
+
public bool IsOtherInventoryGoldRelevant { get; set; }
|
54
|
+
|
47
55
|
[DataSourceProperty]
|
48
56
|
public string CancelLbl { get; set; }
|
49
57
|
|
@@ -62,6 +70,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
62
70
|
[DataSourceProperty]
|
63
71
|
public string CostText { get; set; }
|
64
72
|
|
73
|
+
[DataSourceProperty]
|
74
|
+
public string SearchPlaceholderText { get; set; }
|
75
|
+
|
65
76
|
[DataSourceProperty]
|
66
77
|
public BasicTooltipViewModel ProductionTooltip { get; set; }
|
67
78
|
|
@@ -206,6 +217,12 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
206
217
|
[DataSourceProperty]
|
207
218
|
public string CapacityExceededText { get; set; }
|
208
219
|
|
220
|
+
[DataSourceProperty]
|
221
|
+
public string LeftSearchText { get; set; }
|
222
|
+
|
223
|
+
[DataSourceProperty]
|
224
|
+
public string RightSearchText { get; set; }
|
225
|
+
|
209
226
|
[DataSourceProperty]
|
210
227
|
public bool HasGainedExperience { get; set; }
|
211
228
|
|
@@ -285,6 +302,15 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
285
302
|
[DataSourceProperty]
|
286
303
|
public bool IsRefreshed { get; set; }
|
287
304
|
|
305
|
+
[DataSourceProperty]
|
306
|
+
public bool IsExtendedEquipmentControlsEnabled { get; set; }
|
307
|
+
|
308
|
+
[DataSourceProperty]
|
309
|
+
public bool IsFocusedOnItemList { get; set; }
|
310
|
+
|
311
|
+
[DataSourceProperty]
|
312
|
+
public SPItemVM CurrentFocusedItem { get; set; }
|
313
|
+
|
288
314
|
[DataSourceProperty]
|
289
315
|
public SPItemVM CharacterHelmSlot { get; set; }
|
290
316
|
|
@@ -5,7 +5,7 @@ using TaleWorlds.Core;
|
|
5
5
|
using TaleWorlds.Core.ViewModelCollection;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
|
8
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
|
9
9
|
{
|
10
10
|
public class SPItemVM : ItemVM
|
11
11
|
{
|
@@ -18,6 +18,8 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
18
18
|
HighProfit
|
19
19
|
}
|
20
20
|
|
21
|
+
public static Action<SPItemVM> OnFocus;
|
22
|
+
|
21
23
|
public static Action<SPItemVM, bool> ProcessSellItem;
|
22
24
|
|
23
25
|
public static Action<SPItemVM> ProcessItemSlaughter;
|
@@ -29,6 +31,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
29
31
|
public InventoryLogic.InventorySide InventorySide { [CompilerGenerated]
|
30
32
|
get; }
|
31
33
|
|
34
|
+
[DataSourceProperty]
|
35
|
+
public bool IsFocused { get; set; }
|
36
|
+
|
32
37
|
[DataSourceProperty]
|
33
38
|
public bool IsArtifact { get; set; }
|
34
39
|
|
@@ -88,6 +93,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
88
93
|
|
89
94
|
public extern void RefreshWith(SPItemVM itemVM, InventoryLogic.InventorySide inventorySide);
|
90
95
|
|
96
|
+
public extern void ExecuteBuySingle();
|
97
|
+
|
98
|
+
public extern void ExecuteSellSingle();
|
99
|
+
|
91
100
|
public extern void ExecuteSellItem();
|
92
101
|
|
93
102
|
public extern void ExecuteConcept();
|
@@ -100,6 +109,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
100
109
|
|
101
110
|
public extern void ExecuteDonateItem();
|
102
111
|
|
112
|
+
public extern void ExecuteSetFocused();
|
113
|
+
|
114
|
+
public extern void ExecuteSetUnfocused();
|
115
|
+
|
103
116
|
public extern void UpdateIsNew();
|
104
117
|
|
105
118
|
public extern void UpdateCanBeSlaughtered();
|
@@ -107,7 +120,5 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
107
120
|
public extern void UpdateHintTexts();
|
108
121
|
|
109
122
|
public static extern ProfitTypes GetProfitTypeFromDiff(float averageValue, float currentValue);
|
110
|
-
|
111
|
-
public static extern void ReleaseStaticActions();
|
112
123
|
}
|
113
124
|
}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Settlements;
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Clans;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement
|
6
7
|
{
|
7
8
|
public class KingdomGiftFiefPopupVM : ViewModel
|
8
9
|
{
|
@@ -2,18 +2,18 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Settlements;
|
4
4
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
5
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement;
|
6
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
7
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
8
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
9
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
10
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
5
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies;
|
6
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Clans;
|
7
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions;
|
8
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy;
|
9
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Policies;
|
10
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Settlements;
|
11
11
|
using TaleWorlds.Core;
|
12
|
-
using TaleWorlds.Core.ViewModelCollection;
|
12
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
13
13
|
using TaleWorlds.InputSystem;
|
14
14
|
using TaleWorlds.Library;
|
15
15
|
|
16
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
16
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement
|
17
17
|
{
|
18
18
|
public class KingdomManagementVM : ViewModel
|
19
19
|
{
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies
|
6
6
|
{
|
7
7
|
public class KingdomArmyItemVM : KingdomItemVM
|
8
8
|
{
|
@@ -2,7 +2,7 @@ using TaleWorlds.CampaignSystem.Party;
|
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies
|
6
6
|
{
|
7
7
|
public class KingdomArmyPartyItemVM : ViewModel
|
8
8
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies
|
5
5
|
{
|
6
6
|
public class KingdomArmySortControllerVM : ViewModel
|
7
7
|
{
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies
|
6
6
|
{
|
7
7
|
public class KingdomArmyVM : KingdomCategoryVM
|
8
8
|
{
|
@@ -24,6 +24,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
24
24
|
[DataSourceProperty]
|
25
25
|
public HintViewModel CreateArmyHint { get; set; }
|
26
26
|
|
27
|
+
[DataSourceProperty]
|
28
|
+
public HintViewModel ManageArmyHint { get; set; }
|
29
|
+
|
27
30
|
[DataSourceProperty]
|
28
31
|
public bool PlayerHasArmy { get; set; }
|
29
32
|
|
@@ -2,7 +2,7 @@ using TaleWorlds.CampaignSystem.Settlements;
|
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies
|
6
6
|
{
|
7
7
|
public class KingdomSettlementVillageItemVM : ViewModel
|
8
8
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.Settlements;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Clans
|
5
5
|
{
|
6
6
|
public class KingdomClanFiefItemVM : ViewModel
|
7
7
|
{
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Clans
|
6
6
|
{
|
7
7
|
public class KingdomClanItemVM : KingdomItemVM
|
8
8
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Clans
|
5
5
|
{
|
6
6
|
public class KingdomClanSortControllerVM : ViewModel
|
7
7
|
{
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Election;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Clans
|
7
7
|
{
|
8
8
|
public class KingdomClanVM : KingdomCategoryVM
|
9
9
|
{
|
@@ -64,7 +64,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
64
64
|
[DataSourceProperty]
|
65
65
|
public HintViewModel SupportHint { get; set; }
|
66
66
|
|
67
|
-
public extern KingdomClanVM(Action<
|
67
|
+
public extern KingdomClanVM(Action<KingdomDecision> forceDecide);
|
68
68
|
|
69
69
|
public override extern void RefreshValues();
|
70
70
|
|
@@ -1,17 +1,17 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Election;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions
|
8
8
|
{
|
9
9
|
public class DecisionOptionVM : ViewModel
|
10
10
|
{
|
11
11
|
public DecisionOutcome Option { [CompilerGenerated]
|
12
12
|
get; }
|
13
13
|
|
14
|
-
public
|
14
|
+
public KingdomDecision Decision { [CompilerGenerated]
|
15
15
|
get; }
|
16
16
|
|
17
17
|
[DataSourceProperty]
|
@@ -83,7 +83,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement
|
|
83
83
|
[DataSourceProperty]
|
84
84
|
public bool IsSupportOption3Enabled { get; set; }
|
85
85
|
|
86
|
-
public extern DecisionOptionVM(DecisionOutcome option,
|
86
|
+
public extern DecisionOptionVM(DecisionOutcome option, KingdomDecision decision, KingdomElection kingdomDecisionMaker, Action<DecisionOptionVM> onSelect, Action<DecisionOptionVM> onSupportStrengthChange);
|
87
87
|
|
88
88
|
public override extern void RefreshValues();
|
89
89
|
|
@@ -3,7 +3,7 @@ using TaleWorlds.Core;
|
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.Localization;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions
|
7
7
|
{
|
8
8
|
public class DecisionSupporterVM : ViewModel
|
9
9
|
{
|
@@ -1,14 +1,19 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Election;
|
3
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
4
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.ItemTypes;
|
5
|
+
using TaleWorlds.InputSystem;
|
4
6
|
using TaleWorlds.Library;
|
5
7
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions
|
7
9
|
{
|
8
10
|
public class KingdomDecisionsVM : ViewModel
|
9
11
|
{
|
10
12
|
public bool IsCurrentDecisionActive { get; }
|
11
13
|
|
14
|
+
[DataSourceProperty]
|
15
|
+
public InputKeyItemVM DoneInputKey { get; set; }
|
16
|
+
|
12
17
|
[DataSourceProperty]
|
13
18
|
public DecisionItemBaseVM CurrentDecision { get; set; }
|
14
19
|
|
@@ -32,6 +37,8 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement
|
|
32
37
|
|
33
38
|
public extern void QueryForNextDecision();
|
34
39
|
|
35
|
-
public extern void RefreshWith(
|
40
|
+
public extern void RefreshWith(KingdomDecision decision);
|
41
|
+
|
42
|
+
public extern void SetDoneInputKey(HotKey hotKey);
|
36
43
|
}
|
37
44
|
}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Election;
|
4
|
-
using TaleWorlds.
|
4
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
6
|
using TaleWorlds.Library;
|
6
7
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.ItemTypes
|
8
9
|
{
|
9
10
|
public class DecisionItemBaseVM : ViewModel
|
10
11
|
{
|
@@ -19,11 +20,14 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
19
20
|
KingSelection
|
20
21
|
}
|
21
22
|
|
22
|
-
protected readonly
|
23
|
+
protected readonly KingdomDecision _decision;
|
23
24
|
|
24
25
|
public KingdomElection KingdomDecisionMaker { [CompilerGenerated]
|
25
26
|
get; }
|
26
27
|
|
28
|
+
[DataSourceProperty]
|
29
|
+
public InputKeyItemVM DoneInputKey { get; set; }
|
30
|
+
|
27
31
|
[DataSourceProperty]
|
28
32
|
public HintViewModel EndDecisionHint { get; set; }
|
29
33
|
|
@@ -66,7 +70,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
66
70
|
[DataSourceProperty]
|
67
71
|
public MBBindingList<DecisionOptionVM> DecisionOptionsList { get; set; }
|
68
72
|
|
69
|
-
public extern DecisionItemBaseVM(
|
73
|
+
public extern DecisionItemBaseVM(KingdomDecision decision, Action onDecisionOver);
|
70
74
|
|
71
75
|
public override extern void RefreshValues();
|
72
76
|
|
@@ -78,8 +82,10 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
78
82
|
|
79
83
|
protected extern void ExecuteHideStageTooltip();
|
80
84
|
|
81
|
-
|
85
|
+
public extern void ExecuteFinalSelection();
|
82
86
|
|
83
87
|
protected extern void ExecuteDone();
|
88
|
+
|
89
|
+
public extern void SetDoneInputKey(InputKeyItemVM inputKeyItemVM);
|
84
90
|
}
|
85
91
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Election;
|
3
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy;
|
4
4
|
using TaleWorlds.Core;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.ItemTypes
|
8
8
|
{
|
9
9
|
public class DeclareWarDecisionItemVM : DecisionItemBaseVM
|
10
10
|
{
|
@@ -1,12 +1,12 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Election;
|
3
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.ItemTypes
|
8
8
|
{
|
9
|
-
public class
|
9
|
+
public class ExpelClanDecisionItemVM : DecisionItemBaseVM
|
10
10
|
{
|
11
11
|
public ExpelClanFromKingdomDecision ExpelDecision { get; }
|
12
12
|
|
@@ -48,7 +48,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
48
48
|
[DataSourceProperty]
|
49
49
|
public BasicTooltipViewModel StrengthHint { get; set; }
|
50
50
|
|
51
|
-
public extern
|
51
|
+
public extern ExpelClanDecisionItemVM(ExpelClanFromKingdomDecision decision, Action onDecisionOver);
|
52
52
|
|
53
53
|
protected override extern void InitValues();
|
54
54
|
}
|
@@ -3,9 +3,9 @@ using TaleWorlds.CampaignSystem.Election;
|
|
3
3
|
using TaleWorlds.Core;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.ItemTypes
|
7
7
|
{
|
8
|
-
public class
|
8
|
+
public class KingSelectionDecisionItemVM : DecisionItemBaseVM
|
9
9
|
{
|
10
10
|
public IFaction TargetFaction { get; }
|
11
11
|
|
@@ -42,7 +42,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
42
42
|
[DataSourceProperty]
|
43
43
|
public string ActivePoliciesListText { get; set; }
|
44
44
|
|
45
|
-
public extern
|
45
|
+
public extern KingSelectionDecisionItemVM(KingSelectionKingdomDecision decision, Action onDecisionOver);
|
46
46
|
|
47
47
|
protected override extern void InitValues();
|
48
48
|
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.ItemTypes
|
2
|
+
{
|
3
|
+
public class KingdomPolicyDecisionItemVM
|
4
|
+
{
|
5
|
+
public extern KingdomPolicyDecisionItemVM();
|
6
|
+
}
|
7
|
+
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Election;
|
3
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy;
|
4
4
|
using TaleWorlds.Core;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.ItemTypes
|
8
8
|
{
|
9
|
-
public class
|
9
|
+
public class MakePeaceDecisionItemVM : DecisionItemBaseVM
|
10
10
|
{
|
11
11
|
public IFaction TargetFaction { get; }
|
12
12
|
|
@@ -34,7 +34,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
34
34
|
[DataSourceProperty]
|
35
35
|
public HeroVM TargetFactionLeader { get; set; }
|
36
36
|
|
37
|
-
public extern
|
37
|
+
public extern MakePeaceDecisionItemVM(MakePeaceKingdomDecision decision, Action onDecisionOver);
|
38
38
|
|
39
39
|
protected override extern void InitValues();
|
40
40
|
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Election;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.ItemTypes
|
7
7
|
{
|
8
|
-
public class
|
8
|
+
public class PolicyDecisionItemVM : DecisionItemBaseVM
|
9
9
|
{
|
10
10
|
public KingdomPolicyDecision PolicyDecision { get; }
|
11
11
|
|
@@ -20,7 +20,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
20
20
|
[DataSourceProperty]
|
21
21
|
public MBBindingList<StringItemWithHintVM> PolicyEffectList { get; set; }
|
22
22
|
|
23
|
-
public extern
|
23
|
+
public extern PolicyDecisionItemVM(KingdomPolicyDecision decision, Action onDecisionOver);
|
24
24
|
|
25
25
|
protected override extern void InitValues();
|
26
26
|
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Election;
|
3
3
|
using TaleWorlds.CampaignSystem.Settlements;
|
4
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.Items;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
|
8
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.ItemTypes
|
9
9
|
{
|
10
|
-
public class
|
10
|
+
public class SettlementDecisionItemVM : DecisionItemBaseVM
|
11
11
|
{
|
12
12
|
public Settlement Settlement { get; }
|
13
13
|
|
@@ -104,7 +104,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
104
104
|
[DataSourceProperty]
|
105
105
|
public bool HasNotables { get; set; }
|
106
106
|
|
107
|
-
public extern
|
107
|
+
public extern SettlementDecisionItemVM(Settlement settlement, KingdomDecision decision, Action onDecisionOver);
|
108
108
|
|
109
109
|
protected override extern void InitValues();
|
110
110
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy
|
6
6
|
{
|
7
7
|
public class KingdomDiplomacyFactionItemVM : ViewModel
|
8
8
|
{
|
@@ -1,10 +1,10 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.CampaignSystem.Settlements;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy
|
8
8
|
{
|
9
9
|
public abstract class KingdomDiplomacyItemVM : KingdomItemVM
|
10
10
|
{
|
@@ -1,9 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Election;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
4
5
|
using TaleWorlds.Library;
|
5
6
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy
|
7
8
|
{
|
8
9
|
public class KingdomDiplomacyVM : KingdomCategoryVM
|
9
10
|
{
|
@@ -70,7 +71,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
70
71
|
[DataSourceProperty]
|
71
72
|
public HintViewModel ActionHint { get; set; }
|
72
73
|
|
73
|
-
public extern KingdomDiplomacyVM(Action<
|
74
|
+
public extern KingdomDiplomacyVM(Action<KingdomDecision> forceDecision);
|
74
75
|
|
75
76
|
public override extern void RefreshValues();
|
76
77
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy
|
4
4
|
{
|
5
5
|
public class KingdomTruceItemVM : KingdomDiplomacyItemVM
|
6
6
|
{
|
@@ -1,8 +1,8 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy
|
6
6
|
{
|
7
7
|
public class KingdomWarComparableStatVM : ViewModel
|
8
8
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy
|
5
5
|
{
|
6
6
|
public class KingdomWarItemVM : KingdomDiplomacyItemVM
|
7
7
|
{
|
@@ -2,7 +2,7 @@ using TaleWorlds.CampaignSystem.LogEntries;
|
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy
|
6
6
|
{
|
7
7
|
public class KingdomWarLogItemVM : ViewModel
|
8
8
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy
|
5
5
|
{
|
6
6
|
public class KingdomWarSortControllerVM : ViewModel
|
7
7
|
{
|
@@ -1,7 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.KingdomDecision.DecisionTypes
|
2
|
-
{
|
3
|
-
public class KingdomPolicyDecisionVM
|
4
|
-
{
|
5
|
-
public extern KingdomPolicyDecisionVM();
|
6
|
-
}
|
7
|
-
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Election;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Policies
|
7
7
|
{
|
8
8
|
public class KingdomPoliciesVM : KingdomCategoryVM
|
9
9
|
{
|
@@ -73,7 +73,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
73
73
|
[DataSourceProperty]
|
74
74
|
public string ProposeActionExplanationText { get; set; }
|
75
75
|
|
76
|
-
public extern KingdomPoliciesVM(Action<
|
76
|
+
public extern KingdomPoliciesVM(Action<KingdomDecision> forceDecide);
|
77
77
|
|
78
78
|
public override extern void RefreshValues();
|
79
79
|
|
@@ -1,8 +1,9 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Policies
|
6
7
|
{
|
7
8
|
public class KingdomPolicyItemVM : KingdomItemVM
|
8
9
|
{
|
@@ -1,11 +1,11 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.Settlements;
|
4
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
4
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies;
|
5
5
|
using TaleWorlds.Core;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
|
8
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Settlements
|
9
9
|
{
|
10
10
|
public class KingdomSettlementItemVM : KingdomItemVM
|
11
11
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Settlements
|
5
5
|
{
|
6
6
|
public class KingdomSettlementSortControllerVM : ViewModel
|
7
7
|
{
|
@@ -1,10 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.Election;
|
3
3
|
using TaleWorlds.CampaignSystem.Settlements;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Settlements
|
8
8
|
{
|
9
9
|
public class KingdomSettlementVM : KingdomCategoryVM
|
10
10
|
{
|
@@ -68,7 +68,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Kingdo
|
|
68
68
|
[DataSourceProperty]
|
69
69
|
public bool HasCost { get; set; }
|
70
70
|
|
71
|
-
public extern KingdomSettlementVM(Action<
|
71
|
+
public extern KingdomSettlementVM(Action<KingdomDecision> forceDecision, Action<Settlement> onGrantFief);
|
72
72
|
|
73
73
|
public override extern void RefreshValues();
|
74
74
|
|
@@ -1,12 +1,21 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
4
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapNotificationTypes;
|
3
5
|
using TaleWorlds.Core;
|
6
|
+
using TaleWorlds.InputSystem;
|
4
7
|
using TaleWorlds.Library;
|
5
8
|
|
6
9
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map
|
7
10
|
{
|
8
11
|
public class MapNotificationVM : ViewModel
|
9
12
|
{
|
13
|
+
[DataSourceProperty]
|
14
|
+
public InputKeyItemVM RemoveInputKey { get; set; }
|
15
|
+
|
16
|
+
[DataSourceProperty]
|
17
|
+
public MapNotificationItemBaseVM FocusedNotificationItem { get; set; }
|
18
|
+
|
10
19
|
[DataSourceProperty]
|
11
20
|
public MBBindingList<MapNotificationItemBaseVM> NotificationItems { get; set; }
|
12
21
|
|
@@ -33,5 +42,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map
|
|
33
42
|
public extern void AddMapNotification(InformationData data);
|
34
43
|
|
35
44
|
public extern void RemoveAllNotifications();
|
45
|
+
|
46
|
+
public extern void SetRemoveInputKey(HotKey hotKey);
|
36
47
|
}
|
37
48
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
1
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapBar
|
2
2
|
{
|
3
3
|
public struct MapBarShortcuts
|
4
4
|
{
|
@@ -1,12 +1,12 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.GameState;
|
3
|
-
using TaleWorlds.
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Tutorial;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapBar
|
8
8
|
{
|
9
|
-
public class
|
9
|
+
public class MapBarVM : ViewModel
|
10
10
|
{
|
11
11
|
[DataSourceProperty]
|
12
12
|
public MapInfoVM MapInfo { get; set; }
|
@@ -41,7 +41,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
41
41
|
[DataSourceProperty]
|
42
42
|
public ElementNotificationVM TutorialNotification { get; set; }
|
43
43
|
|
44
|
-
public extern
|
44
|
+
public extern MapBarVM(INavigationHandler navigationHandler, IMapStateHandler mapStateHandler, Func<MapBarShortcuts> getMapBarShortcuts, Action openArmyManagement);
|
45
45
|
|
46
46
|
public override extern void RefreshValues();
|
47
47
|
|
@@ -1,7 +1,7 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapBar
|
5
5
|
{
|
6
6
|
public class MapInfoVM : ViewModel
|
7
7
|
{
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapBar
|
6
6
|
{
|
7
7
|
public class MapNavigationVM : ViewModel
|
8
8
|
{
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapBar
|
7
7
|
{
|
8
8
|
public class MapTimeControlVM : ViewModel
|
9
9
|
{
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System;
|
2
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Conversation;
|
2
3
|
using TaleWorlds.Library;
|
3
4
|
|
4
5
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapConversation
|
@@ -0,0 +1,9 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.MapNotificationTypes;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapNotificationTypes
|
4
|
+
{
|
5
|
+
public class HeirComeOfAgeNotificationItemVM : MapNotificationItemBaseVM
|
6
|
+
{
|
7
|
+
public extern HeirComeOfAgeNotificationItemVM(HeirComeOfAgeMapNotification data);
|
8
|
+
}
|
9
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.MapNotificationTypes;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapNotificationTypes
|
4
|
+
{
|
5
|
+
public class KingdomDestroyedNotificationItemVM : MapNotificationItemBaseVM
|
6
|
+
{
|
7
|
+
public extern KingdomDestroyedNotificationItemVM(KingdomDestroyedMapNotification data);
|
8
|
+
}
|
9
|
+
}
|
@@ -1,9 +1,11 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
3
4
|
using TaleWorlds.Core;
|
5
|
+
using TaleWorlds.InputSystem;
|
4
6
|
using TaleWorlds.Library;
|
5
7
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapNotificationTypes
|
7
9
|
{
|
8
10
|
public class MapNotificationItemBaseVM : ViewModel
|
9
11
|
{
|
@@ -18,6 +20,12 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map
|
|
18
20
|
public InformationData Data { [CompilerGenerated]
|
19
21
|
get; }
|
20
22
|
|
23
|
+
[DataSourceProperty]
|
24
|
+
public InputKeyItemVM RemoveInputKey { get; set; }
|
25
|
+
|
26
|
+
[DataSourceProperty]
|
27
|
+
public bool IsFocused { get; set; }
|
28
|
+
|
21
29
|
[DataSourceProperty]
|
22
30
|
public string NotificationIdentifier { get; set; }
|
23
31
|
|
@@ -45,6 +53,12 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map
|
|
45
53
|
|
46
54
|
public extern void ExecuteRemove();
|
47
55
|
|
56
|
+
public extern void ExecuteSetFocused();
|
57
|
+
|
58
|
+
public extern void ExecuteSetUnfocused();
|
59
|
+
|
48
60
|
public virtual extern void ManualRefreshRelevantStatus();
|
61
|
+
|
62
|
+
public extern void SetRemoveInputKey(HotKey hotKey);
|
49
63
|
}
|
50
64
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.MapNotificationTypes;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapNotificationTypes
|
4
|
+
{
|
5
|
+
public class MarriageOfferNotificationItemVM : MapNotificationItemBaseVM
|
6
|
+
{
|
7
|
+
public extern MarriageOfferNotificationItemVM(MarriageOfferMapNotification data);
|
8
|
+
|
9
|
+
public override extern void OnFinalize();
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.MapNotificationTypes;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapNotificationTypes
|
4
|
+
{
|
5
|
+
public class MercenaryOfferMapNotificationItemVM : MapNotificationItemBaseVM
|
6
|
+
{
|
7
|
+
public extern MercenaryOfferMapNotificationItemVM(MercenaryOfferMapNotification data);
|
8
|
+
|
9
|
+
public override extern void OnFinalize();
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.MapNotificationTypes;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapNotificationTypes
|
4
|
+
{
|
5
|
+
public class PartyLeaderChangeNotificationVM : MapNotificationItemBaseVM
|
6
|
+
{
|
7
|
+
public extern PartyLeaderChangeNotificationVM(PartyLeaderChangeNotification data);
|
8
|
+
|
9
|
+
public override extern void OnFinalize();
|
10
|
+
}
|
11
|
+
}
|
@@ -1,12 +1,9 @@
|
|
1
|
-
using System;
|
2
1
|
using TaleWorlds.CampaignSystem.MapNotificationTypes;
|
3
2
|
|
4
3
|
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapNotificationTypes
|
5
4
|
{
|
6
5
|
public class RansomNotificationItemVM : MapNotificationItemBaseVM
|
7
6
|
{
|
8
|
-
protected Action _onInspectAction;
|
9
|
-
|
10
7
|
public extern RansomNotificationItemVM(RansomOfferMapNotification data);
|
11
8
|
|
12
9
|
public override extern void OnFinalize();
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem.MapNotificationTypes;
|
2
|
+
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Map.MapNotificationTypes
|
4
|
+
{
|
5
|
+
public class VassalOfferMapNotificationItemVM : MapNotificationItemBaseVM
|
6
|
+
{
|
7
|
+
public extern VassalOfferMapNotificationItemVM(VassalOfferMapNotification data);
|
8
|
+
|
9
|
+
public override extern void OnFinalize();
|
10
|
+
}
|
11
|
+
}
|
@@ -3,15 +3,14 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using TaleWorlds.CampaignSystem.Party;
|
4
4
|
using TaleWorlds.CampaignSystem.Roster;
|
5
5
|
using TaleWorlds.Core;
|
6
|
-
using TaleWorlds.Core.ViewModelCollection;
|
6
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
7
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
7
8
|
using TaleWorlds.Library;
|
8
9
|
|
9
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
10
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party
|
10
11
|
{
|
11
12
|
public class PartyCharacterVM : ViewModel
|
12
13
|
{
|
13
|
-
protected const int MaxShownRelationChanges = 8;
|
14
|
-
|
15
14
|
public static bool IsShiftingDisabled;
|
16
15
|
|
17
16
|
protected readonly PartyVM _partyVm;
|
@@ -26,6 +25,8 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
26
25
|
|
27
26
|
public readonly Action<PartyCharacterVM> OnShift;
|
28
27
|
|
28
|
+
public readonly Action<PartyCharacterVM> OnFocus;
|
29
|
+
|
29
30
|
public readonly PartyScreenLogic.PartyRosterSide Side;
|
30
31
|
|
31
32
|
public readonly PartyScreenLogic.TroopType Type;
|
@@ -206,7 +207,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
206
207
|
[DataSourceProperty]
|
207
208
|
public HintViewModel LockHint { get; set; }
|
208
209
|
|
209
|
-
public extern PartyCharacterVM(PartyScreenLogic partyScreenLogic, Action<PartyCharacterVM, bool> processCharacterLock, Action<PartyCharacterVM> setSelected, Action<PartyCharacterVM, int, int, PartyScreenLogic.PartyRosterSide> onTransfer, Action<PartyCharacterVM> onShift, PartyVM partyVm, TroopRoster troops, int index, PartyScreenLogic.TroopType type, PartyScreenLogic.PartyRosterSide side, bool isTroopTransferrable, string fiveStackShortcutKeyText, string entireStackShortcutKeyText);
|
210
|
+
public extern PartyCharacterVM(PartyScreenLogic partyScreenLogic, Action<PartyCharacterVM, bool> processCharacterLock, Action<PartyCharacterVM> setSelected, Action<PartyCharacterVM, int, int, PartyScreenLogic.PartyRosterSide> onTransfer, Action<PartyCharacterVM> onShift, Action<PartyCharacterVM> onFocus, PartyVM partyVm, TroopRoster troops, int index, PartyScreenLogic.TroopType type, PartyScreenLogic.PartyRosterSide side, bool isTroopTransferrable, string fiveStackShortcutKeyText, string entireStackShortcutKeyText);
|
210
211
|
|
211
212
|
public override extern void RefreshValues();
|
212
213
|
|
@@ -226,12 +227,18 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
226
227
|
|
227
228
|
public override extern bool Equals(object obj);
|
228
229
|
|
230
|
+
public extern void ExecuteSetFocused();
|
231
|
+
|
232
|
+
public extern void ExecuteSetUnfocused();
|
233
|
+
|
229
234
|
public extern void ExecuteTransferSingle();
|
230
235
|
|
231
236
|
public extern void ExecuteResetTrade();
|
232
237
|
|
233
238
|
public extern void Upgrade(int upgradeIndex, int maxUpgradeCount);
|
234
239
|
|
240
|
+
public extern void RecruitAll();
|
241
|
+
|
235
242
|
public extern void ExecuteRecruitTroop();
|
236
243
|
|
237
244
|
public extern void ExecuteExecuteTroop();
|
@@ -3,7 +3,7 @@ using TaleWorlds.CampaignSystem.Party;
|
|
3
3
|
using TaleWorlds.CampaignSystem.Roster;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party
|
7
7
|
{
|
8
8
|
public class PartyTradeVM : ViewModel
|
9
9
|
{
|
@@ -4,13 +4,15 @@ using System.Runtime.CompilerServices;
|
|
4
4
|
using TaleWorlds.CampaignSystem.GameState;
|
5
5
|
using TaleWorlds.CampaignSystem.Party;
|
6
6
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
7
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp;
|
7
8
|
using TaleWorlds.Core;
|
8
|
-
using TaleWorlds.Core.ViewModelCollection;
|
9
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
10
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
9
11
|
using TaleWorlds.InputSystem;
|
10
12
|
using TaleWorlds.Library;
|
11
13
|
using TaleWorlds.Localization;
|
12
14
|
|
13
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
15
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party
|
14
16
|
{
|
15
17
|
public class PartyVM : ViewModel, IPartyScreenLogicHandler, PartyScreenPrisonHandler, IPartyScreenTroopHandler
|
16
18
|
{
|
@@ -33,6 +35,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
33
35
|
[DataSourceProperty]
|
34
36
|
public PartyCharacterVM CurrentCharacter { get; set; }
|
35
37
|
|
38
|
+
[DataSourceProperty]
|
39
|
+
public PartyCharacterVM CurrentFocusedCharacter { get; set; }
|
40
|
+
|
36
41
|
[DataSourceProperty]
|
37
42
|
public string HeaderLbl { get; set; }
|
38
43
|
|
@@ -78,6 +83,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
78
83
|
[DataSourceProperty]
|
79
84
|
public BasicTooltipViewModel TransferAllMainPrisonersHint { get; set; }
|
80
85
|
|
86
|
+
[DataSourceProperty]
|
87
|
+
public StringItemWithHintVM CurrentCharacterTier { get; set; }
|
88
|
+
|
81
89
|
[DataSourceProperty]
|
82
90
|
public HintViewModel ResetHint { get; set; }
|
83
91
|
|
@@ -288,7 +296,7 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
288
296
|
|
289
297
|
public extern void ExecuteUpgrade(PartyCharacterVM troop, int upgradeTargetType, int maxUpgradeCount);
|
290
298
|
|
291
|
-
public extern void ExecuteRecruit(PartyCharacterVM character);
|
299
|
+
public extern void ExecuteRecruit(PartyCharacterVM character, bool recruitAll = false);
|
292
300
|
|
293
301
|
public extern void ExecuteExecution();
|
294
302
|
|
@@ -2,7 +2,7 @@ using System.Runtime.CompilerServices;
|
|
2
2
|
using TaleWorlds.CampaignSystem.Party;
|
3
3
|
using TaleWorlds.Library.EventSystem;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party
|
6
6
|
{
|
7
7
|
public class PlayerMoveTroopEvent : EventBase
|
8
8
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Library.EventSystem;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party
|
5
5
|
{
|
6
6
|
public class PlayerRequestUpgradeTroopEvent : EventBase
|
7
7
|
{
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using TaleWorlds.CampaignSystem.CharacterDevelopment;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party
|
7
7
|
{
|
8
8
|
public class UpgradeRequirementsVM : ViewModel
|
9
9
|
{
|
@@ -1,10 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party
|
8
8
|
{
|
9
9
|
public class UpgradeTargetVM : ViewModel
|
10
10
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp
|
4
4
|
{
|
5
5
|
public class PartyRecruitTroopVM : PartyTroopManagerVM
|
6
6
|
{
|
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp
|
7
7
|
{
|
8
8
|
public class PartyTroopManagerItemVM : ViewModel
|
9
9
|
{
|
@@ -1,13 +1,12 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
4
|
-
using TaleWorlds.
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
6
5
|
using TaleWorlds.InputSystem;
|
7
6
|
using TaleWorlds.Library;
|
8
7
|
using TaleWorlds.Localization;
|
9
8
|
|
10
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
9
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp
|
11
10
|
{
|
12
11
|
public abstract class PartyTroopManagerVM : ViewModel
|
13
12
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
3
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp
|
4
4
|
{
|
5
5
|
public class PartyUpgradeTroopVM : PartyTroopManagerVM
|
6
6
|
{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.Localization;
|
5
5
|
|
@@ -16,6 +16,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Quests
|
|
16
16
|
public CampaignUIHelper.IssueQuestFlags IssueQuestFlag { [CompilerGenerated]
|
17
17
|
get; }
|
18
18
|
|
19
|
+
[DataSourceProperty]
|
20
|
+
public bool IsTrackMarker { get; set; }
|
21
|
+
|
19
22
|
[DataSourceProperty]
|
20
23
|
public int QuestMarkerType { get; set; }
|
21
24
|
|
@@ -2,7 +2,8 @@ using System;
|
|
2
2
|
using TaleWorlds.CampaignSystem.Issues;
|
3
3
|
using TaleWorlds.CampaignSystem.LogEntries;
|
4
4
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
6
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
6
7
|
using TaleWorlds.InputSystem;
|
7
8
|
using TaleWorlds.Library;
|
8
9
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.CampaignSystem.CraftingSystem;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting
|
8
8
|
{
|
9
9
|
public class CraftingAvailableHeroItemVM : ViewModel
|
10
10
|
{
|
@@ -2,7 +2,7 @@ using TaleWorlds.Core;
|
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting
|
6
6
|
{
|
7
7
|
public class CraftingListPropertyItem : ViewModel
|
8
8
|
{
|
@@ -21,6 +21,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Craft
|
|
21
21
|
[DataSourceProperty]
|
22
22
|
public bool HasValidTarget { get; set; }
|
23
23
|
|
24
|
+
[DataSourceProperty]
|
25
|
+
public bool HasValidValue { get; set; }
|
26
|
+
|
24
27
|
[DataSourceProperty]
|
25
28
|
public float TargetValue { get; set; }
|
26
29
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting
|
7
7
|
{
|
8
8
|
public class CraftingResourceItemVM : ViewModel
|
9
9
|
{
|
@@ -0,0 +1,19 @@
|
|
1
|
+
using System.Runtime.CompilerServices;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
|
+
using TaleWorlds.Localization;
|
4
|
+
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting
|
6
|
+
{
|
7
|
+
public class CraftingSecondaryUsageItemVM : SelectorItemVM
|
8
|
+
{
|
9
|
+
public int UsageIndex { [CompilerGenerated]
|
10
|
+
get; }
|
11
|
+
|
12
|
+
public int SelectorIndex { [CompilerGenerated]
|
13
|
+
get; }
|
14
|
+
|
15
|
+
public extern CraftingSecondaryUsageItemVM(TextObject name, int index, int usageIndex, SelectorVM<CraftingSecondaryUsageItemVM> parentSelector);
|
16
|
+
|
17
|
+
public extern void ExecuteSelect();
|
18
|
+
}
|
19
|
+
}
|
@@ -1,13 +1,14 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.
|
3
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.
|
4
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.
|
5
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.
|
2
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
3
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.Refinement;
|
4
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.Smelting;
|
5
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign;
|
6
6
|
using TaleWorlds.Core;
|
7
|
-
using TaleWorlds.Core.ViewModelCollection;
|
7
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
8
|
+
using TaleWorlds.InputSystem;
|
8
9
|
using TaleWorlds.Library;
|
9
10
|
|
10
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
11
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting
|
11
12
|
{
|
12
13
|
public class CraftingVM : ViewModel
|
13
14
|
{
|
@@ -15,6 +16,16 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
15
16
|
|
16
17
|
public OnItemRefreshedDelegate OnItemRefreshed;
|
17
18
|
|
19
|
+
public InputKeyItemVM ConfirmInputKey { get; set; }
|
20
|
+
|
21
|
+
public InputKeyItemVM ExitInputKey { get; set; }
|
22
|
+
|
23
|
+
public InputKeyItemVM PreviousTabInputKey { get; set; }
|
24
|
+
|
25
|
+
public InputKeyItemVM NextTabInputKey { get; set; }
|
26
|
+
|
27
|
+
public bool IsCharacterSelectionActive { get; set; }
|
28
|
+
|
18
29
|
[DataSourceProperty]
|
19
30
|
public MBBindingList<CraftingResourceItemVM> PlayerCurrentMaterials { get; set; }
|
20
31
|
|
@@ -114,6 +125,14 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection
|
|
114
125
|
|
115
126
|
public extern void ExecuteResetCamera();
|
116
127
|
|
128
|
+
public extern void SetConfirmInputKey(HotKey hotKey);
|
129
|
+
|
130
|
+
public extern void SetExitInputKey(HotKey hotKey);
|
131
|
+
|
132
|
+
public extern void SetPreviousTabInputKey(HotKey hotKey);
|
133
|
+
|
134
|
+
public extern void SetNextTabInputKey(HotKey hotKey);
|
135
|
+
|
117
136
|
public extern void ExecuteSwitchToCrafting();
|
118
137
|
|
119
138
|
public extern void ExecuteSwitchToSmelting();
|
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using TaleWorlds.Core;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.Refinement
|
7
7
|
{
|
8
8
|
public class RefinementActionItemVM : ViewModel
|
9
9
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.Refinement
|
5
5
|
{
|
6
6
|
public class RefinementVM : ViewModel
|
7
7
|
{
|
@@ -1,10 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.Smelting
|
8
8
|
{
|
9
9
|
public class SmeltingItemVM : ViewModel
|
10
10
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.Smelting
|
5
5
|
{
|
6
6
|
public class SmeltingSortControllerVM : ViewModel
|
7
7
|
{
|
@@ -1,8 +1,8 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.Smelting
|
6
6
|
{
|
7
7
|
public class SmeltingVM : ViewModel
|
8
8
|
{
|
@@ -3,11 +3,11 @@ using TaleWorlds.CampaignSystem.CampaignBehaviors;
|
|
3
3
|
using TaleWorlds.CampaignSystem.CraftingSystem;
|
4
4
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
5
5
|
using TaleWorlds.Core;
|
6
|
-
using TaleWorlds.Core.ViewModelCollection;
|
6
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
7
7
|
using TaleWorlds.InputSystem;
|
8
8
|
using TaleWorlds.Library;
|
9
9
|
|
10
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
10
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
11
11
|
{
|
12
12
|
public class CraftingHistoryVM : ViewModel
|
13
13
|
{
|
@@ -2,7 +2,7 @@ using TaleWorlds.CampaignSystem.ViewModelCollection.Inventory;
|
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
6
6
|
{
|
7
7
|
public class CraftingItemFlagVM : ItemFlagVM
|
8
8
|
{
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
6
6
|
{
|
7
7
|
public class CraftingPieceListVM : ViewModel
|
8
8
|
{
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
6
6
|
{
|
7
7
|
public class CraftingPieceVM : ViewModel
|
8
8
|
{
|
@@ -31,6 +31,9 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Craft.WeaponDesign
|
|
31
31
|
[DataSourceProperty]
|
32
32
|
public bool PlayerHasPiece { get; set; }
|
33
33
|
|
34
|
+
[DataSourceProperty]
|
35
|
+
public bool IsEmpty { get; set; }
|
36
|
+
|
34
37
|
[DataSourceProperty]
|
35
38
|
public string TierText { get; set; }
|
36
39
|
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
6
6
|
{
|
7
7
|
public class TierFilterTypeVM : ViewModel
|
8
8
|
{
|
@@ -0,0 +1,23 @@
|
|
1
|
+
using System.Runtime.CompilerServices;
|
2
|
+
using TaleWorlds.Core;
|
3
|
+
using TaleWorlds.Library;
|
4
|
+
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
6
|
+
{
|
7
|
+
public class WeaponAttributeVM : ViewModel
|
8
|
+
{
|
9
|
+
public DamageTypes DamageType { [CompilerGenerated]
|
10
|
+
get; }
|
11
|
+
|
12
|
+
public CraftingTemplate.CraftingStatTypes AttributeType { [CompilerGenerated]
|
13
|
+
get; }
|
14
|
+
|
15
|
+
public float AttributeValue { [CompilerGenerated]
|
16
|
+
get; }
|
17
|
+
|
18
|
+
[DataSourceProperty]
|
19
|
+
public string AttributeFieldText { get; set; }
|
20
|
+
|
21
|
+
public extern WeaponAttributeVM(CraftingTemplate.CraftingStatTypes type, DamageTypes damageType, string attributeName, float attributeValue);
|
22
|
+
}
|
23
|
+
}
|
@@ -1,10 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Craft.WeaponDesign;
|
4
3
|
using TaleWorlds.Core;
|
5
4
|
using TaleWorlds.Library;
|
6
5
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
8
7
|
{
|
9
8
|
public class WeaponClassSelectionPopupVM : ViewModel
|
10
9
|
{
|
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using TaleWorlds.Core;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
6
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
7
7
|
{
|
8
8
|
public class WeaponClassVM : ViewModel
|
9
9
|
{
|
@@ -4,10 +4,11 @@ using TaleWorlds.CampaignSystem.ViewModelCollection.Input;
|
|
4
4
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Inventory;
|
5
5
|
using TaleWorlds.Core;
|
6
6
|
using TaleWorlds.Core.ViewModelCollection;
|
7
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
7
8
|
using TaleWorlds.InputSystem;
|
8
9
|
using TaleWorlds.Library;
|
9
10
|
|
10
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
11
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
11
12
|
{
|
12
13
|
public class WeaponDesignResultPopupVM : ViewModel
|
13
14
|
{
|
@@ -1,8 +1,8 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
5
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
5
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
6
6
|
{
|
7
7
|
public class WeaponDesignResultPropertyItemVM : ViewModel
|
8
8
|
{
|
@@ -1,11 +1,11 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
using TaleWorlds.Localization;
|
7
7
|
|
8
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
8
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
9
9
|
{
|
10
10
|
public class WeaponDesignSelectorVM : ViewModel
|
11
11
|
{
|
@@ -3,21 +3,25 @@ using System.Collections.Generic;
|
|
3
3
|
using TaleWorlds.CampaignSystem.CampaignBehaviors;
|
4
4
|
using TaleWorlds.CampaignSystem.CraftingSystem;
|
5
5
|
using TaleWorlds.CampaignSystem.ViewModelCollection.Inventory;
|
6
|
+
using TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign.Order;
|
6
7
|
using TaleWorlds.Core;
|
7
8
|
using TaleWorlds.Core.ViewModelCollection;
|
9
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
10
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
8
11
|
using TaleWorlds.Library;
|
9
12
|
|
10
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
13
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign
|
11
14
|
{
|
12
15
|
public class WeaponDesignVM : ViewModel
|
13
16
|
{
|
17
|
+
[Flags]
|
14
18
|
public enum CraftingPieceTierFilter
|
15
19
|
{
|
16
|
-
None =
|
17
|
-
Tier1 =
|
18
|
-
Tier2 =
|
19
|
-
Tier3 =
|
20
|
-
Tier4 =
|
20
|
+
None = 0x0,
|
21
|
+
Tier1 = 0x1,
|
22
|
+
Tier2 = 0x2,
|
23
|
+
Tier3 = 0x4,
|
24
|
+
Tier4 = 0x8,
|
21
25
|
Tier5 = 0x10,
|
22
26
|
All = 0x1F
|
23
27
|
}
|
@@ -36,6 +40,13 @@ namespace TaleWorlds.CampaignSystem.ViewModelCollection.Craft.WeaponDesign
|
|
36
40
|
public extern TemplateComparer();
|
37
41
|
}
|
38
42
|
|
43
|
+
public class WeaponPropertyComparer : IComparer<CraftingListPropertyItem>
|
44
|
+
{
|
45
|
+
public extern int Compare(CraftingListPropertyItem x, CraftingListPropertyItem y);
|
46
|
+
|
47
|
+
public extern WeaponPropertyComparer();
|
48
|
+
}
|
49
|
+
|
39
50
|
public const int MAX_SKILL_LEVEL = 300;
|
40
51
|
|
41
52
|
public int ModifierTier;
|
@@ -2,12 +2,11 @@ using System;
|
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
4
|
using TaleWorlds.CampaignSystem.CraftingSystem;
|
5
|
-
using TaleWorlds.CampaignSystem.ViewModelCollection.Craft.WeaponDesign;
|
6
5
|
using TaleWorlds.Core;
|
7
|
-
using TaleWorlds.Core.ViewModelCollection;
|
6
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
8
7
|
using TaleWorlds.Library;
|
9
8
|
|
10
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
9
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign.Order
|
11
10
|
{
|
12
11
|
public class CraftingOrderItemVM : ViewModel
|
13
12
|
{
|
@@ -4,7 +4,7 @@ using TaleWorlds.CampaignSystem.CraftingSystem;
|
|
4
4
|
using TaleWorlds.Core;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
7
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign.Order
|
8
8
|
{
|
9
9
|
public class CraftingOrderPopupVM : ViewModel
|
10
10
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.CampaignSystem.CraftingSystem;
|
3
3
|
|
4
|
-
namespace TaleWorlds.CampaignSystem.ViewModelCollection.
|
4
|
+
namespace TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.WeaponDesign.Order
|
5
5
|
{
|
6
6
|
public class OrderDifficultyComparer : IComparer<CraftingOrder>
|
7
7
|
{
|