@@ -2,118 +2,92 @@ namespace TaleWorlds.Core
|
|
2
2
|
{
|
3
3
|
public static class ActionSetCode
|
4
4
|
{
|
5
|
-
public const string
|
5
|
+
public const string WarriorActionSetSuffix = "_warrior";
|
6
6
|
|
7
|
-
public const string
|
7
|
+
public const string HideoutBanditActionSetSuffix = "_hideout_bandit";
|
8
8
|
|
9
|
-
public const string
|
9
|
+
public const string ChildActionSetSuffix = "_child";
|
10
10
|
|
11
|
-
public const string
|
11
|
+
public const string Villager1ActionSetSuffix = "_villager";
|
12
12
|
|
13
|
-
public const string
|
13
|
+
public const string Villager2ActionSetSuffix = "_villager_2";
|
14
14
|
|
15
|
-
public const string
|
15
|
+
public const string Villager3ActionSetSuffix = "_villager_3";
|
16
16
|
|
17
|
-
public const string
|
17
|
+
public const string VillagerInTavernActionSetSuffix = "_villager_in_tavern";
|
18
18
|
|
19
|
-
public const string
|
19
|
+
public const string WarriorInTavernActionSetSuffix = "_warrior_in_tavern";
|
20
20
|
|
21
|
-
public const string
|
21
|
+
public const string VillagerInAseraiTavernActionSetSuffix = "_villager_in_aserai_tavern";
|
22
22
|
|
23
|
-
public const string
|
23
|
+
public const string WarriorInAseraiTavernActionSetSuffix = "_warrior_in_aserai_tavern";
|
24
24
|
|
25
|
-
public const string
|
25
|
+
public const string VillainActionSetSuffix = "_villain";
|
26
26
|
|
27
|
-
public const string
|
27
|
+
public const string LordActionSetSuffix = "_lord";
|
28
28
|
|
29
|
-
public const string
|
29
|
+
public const string BarmaidActionSetSuffix = "_barmaid";
|
30
30
|
|
31
|
-
public const string
|
31
|
+
public const string TavernKeeperSuffix = "_tavern_keeper";
|
32
32
|
|
33
|
-
public const string
|
33
|
+
public const string WeaponsmithSuffix = "_weaponsmith";
|
34
34
|
|
35
|
-
public const string
|
35
|
+
public const string SellerSuffix = "_seller";
|
36
36
|
|
37
|
-
public const string
|
37
|
+
public const string MusicianSuffix = "_musician";
|
38
38
|
|
39
|
-
public const string
|
39
|
+
public const string GuardSuffix = "_guard";
|
40
40
|
|
41
|
-
public const string
|
41
|
+
public const string UnarmedGuardSuffix = "_unarmed_guard";
|
42
42
|
|
43
|
-
public const string
|
43
|
+
public const string DancerSuffix = "_dancer";
|
44
44
|
|
45
|
-
public const string
|
45
|
+
public const string BeggarSuffix = "_beggar";
|
46
46
|
|
47
|
-
public const string
|
47
|
+
public const string VillagerWithBackPackSuffix = "_villager_with_backpack";
|
48
48
|
|
49
|
-
public const string
|
49
|
+
public const string VillagerWithStaffSuffix = "_villager_with_staff";
|
50
50
|
|
51
|
-
public const string
|
51
|
+
public const string VillagerCarryOnShoulderSuffix = "_villager_carry_on_shoulder";
|
52
52
|
|
53
|
-
public const string
|
53
|
+
public const string VillagerCarryAxeSuffix = "_villager_carry_axe";
|
54
54
|
|
55
|
-
public const string
|
55
|
+
public const string MerchantSuffix = "_villager_merchant";
|
56
56
|
|
57
|
-
public const string
|
57
|
+
public const string ArtisanSuffix = "_villager_artisan";
|
58
58
|
|
59
|
-
public const string
|
59
|
+
public const string PreacherSuffix = "_villager_preacher";
|
60
60
|
|
61
|
-
public const string
|
61
|
+
public const string GangLeaderSuffix = "_villager_gangleader";
|
62
62
|
|
63
|
-
public const string
|
63
|
+
public const string RuralNotableSuffix = "_villager_ruralnotable";
|
64
64
|
|
65
|
-
public const string
|
65
|
+
public const string GangLeaderBodyGuardSuffix = "_gangleader_bodyguard";
|
66
66
|
|
67
|
-
public const string
|
67
|
+
public const string MerchantNotarySuffix = "_merchant_notary";
|
68
68
|
|
69
|
-
public const string
|
69
|
+
public const string VillagerCarryRightSideSuffix = "_villager_carry_right_side";
|
70
70
|
|
71
|
-
public const string
|
71
|
+
public const string VillagerCarryFrontSuffix = "_villager_carry_front";
|
72
72
|
|
73
|
-
public const string
|
73
|
+
public const string VillagerCarryFront2Suffix = "_villager_carry_front_v2";
|
74
74
|
|
75
|
-
public const string
|
75
|
+
public const string VillagerCarryRightHandSuffix = "_villager_carry_right_hand";
|
76
76
|
|
77
|
-
public const string
|
77
|
+
public const string VillagerCarryRightArmSuffix = "_villager_carry_right_arm";
|
78
78
|
|
79
|
-
public const string
|
79
|
+
public const string VillagerCarryOverHeadSuffix = "_villager_carry_over_head";
|
80
80
|
|
81
|
-
public const string
|
81
|
+
public const string VillagerCarryOverHead2Suffix = "_villager_carry_over_head_v2";
|
82
82
|
|
83
|
-
public const string
|
83
|
+
public const string PosesSuffix = "_poses";
|
84
84
|
|
85
|
-
public const string
|
85
|
+
public const string FaceGenActionSetSuffix = "_facegen";
|
86
86
|
|
87
|
-
public const string
|
87
|
+
public const string MapActionSetSuffix = "_map";
|
88
88
|
|
89
|
-
public const string
|
89
|
+
public const string MapWithBannerActionSetSuffix = "_map_with_banner";
|
90
90
|
|
91
|
-
public
|
92
|
-
|
93
|
-
public const string HumanVillagerCarryRightSide = "as_human_villager_carry_right_side";
|
94
|
-
|
95
|
-
public const string HumanVillagerCarryFront = "as_human_villager_carry_front";
|
96
|
-
|
97
|
-
public const string HumanVillagerCarryFront2 = "as_human_villager_carry_front_v2";
|
98
|
-
|
99
|
-
public const string HumanVillagerCarryRightHand = "as_human_villager_carry_right_hand";
|
100
|
-
|
101
|
-
public const string HumanVillagerCarryRightArm = "as_human_villager_carry_right_arm";
|
102
|
-
|
103
|
-
public const string HumanVillagerCarryOverHead = "as_human_villager_carry_over_head";
|
104
|
-
|
105
|
-
public const string HumanVillagerCarryOverHead2 = "as_human_villager_carry_over_head_v2";
|
106
|
-
|
107
|
-
public const string HumanPoses = "as_human_poses";
|
108
|
-
|
109
|
-
public const string HumanMaleFaceGenActionSet = "as_human_male_facegen";
|
110
|
-
|
111
|
-
public const string HumanFemaleFaceGenActionSet = "as_human_female_facegen";
|
112
|
-
|
113
|
-
public const string HumanMapActionSet = "as_human_map";
|
114
|
-
|
115
|
-
public const string HumanMapWithBannerActionSet = "as_human_map_with_banner";
|
116
|
-
|
117
|
-
public const string PlayerMaleActionSet = "as_player_male";
|
91
|
+
public static extern string GenerateActionSetNameWithSuffix(Monster monster, bool isFemale, string suffix);
|
118
92
|
}
|
119
93
|
}
|
@@ -7,7 +7,8 @@ namespace TaleWorlds.Core
|
|
7
7
|
public BasicCharacterObject AgentCharacter { [CompilerGenerated]
|
8
8
|
get; }
|
9
9
|
|
10
|
-
public Monster AgentMonster {
|
10
|
+
public Monster AgentMonster { [CompilerGenerated]
|
11
|
+
get; }
|
11
12
|
|
12
13
|
public IBattleCombatant AgentOwnerParty { [CompilerGenerated]
|
13
14
|
get; }
|
@@ -60,6 +61,9 @@ namespace TaleWorlds.Core
|
|
60
61
|
public bool AgentIsFemale { [CompilerGenerated]
|
61
62
|
get; }
|
62
63
|
|
64
|
+
public int AgentRace { [CompilerGenerated]
|
65
|
+
get; }
|
66
|
+
|
63
67
|
public IAgentOriginBase AgentOrigin { [CompilerGenerated]
|
64
68
|
get; }
|
65
69
|
|
@@ -99,6 +103,8 @@ namespace TaleWorlds.Core
|
|
99
103
|
|
100
104
|
public extern AgentData IsFemale(bool isFemale);
|
101
105
|
|
106
|
+
public extern AgentData Race(int race);
|
107
|
+
|
102
108
|
public extern AgentData MountKey(string mountKey);
|
103
109
|
}
|
104
110
|
}
|
@@ -53,7 +53,7 @@ namespace TaleWorlds.Core
|
|
53
53
|
|
54
54
|
public static extern Banner CreateRandomClanBanner(int seed = -1);
|
55
55
|
|
56
|
-
public static extern Banner CreateRandomBanner(
|
56
|
+
public static extern Banner CreateRandomBanner();
|
57
57
|
|
58
58
|
public static extern Banner CreateOneColoredEmptyBanner(int colorIndex);
|
59
59
|
|
@@ -65,6 +65,8 @@ namespace TaleWorlds.Core
|
|
65
65
|
|
66
66
|
public extern uint GetFirstIconColor();
|
67
67
|
|
68
|
+
public extern int GetVersionNo();
|
69
|
+
|
68
70
|
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
69
71
|
}
|
70
72
|
}
|
@@ -6,13 +6,28 @@ namespace TaleWorlds.Core
|
|
6
6
|
{
|
7
7
|
public class BannerComponent : WeaponComponent
|
8
8
|
{
|
9
|
-
public
|
9
|
+
public enum BannerItemEffects
|
10
|
+
{
|
11
|
+
None,
|
12
|
+
IncreasedDamageAgainstMountedTroops,
|
13
|
+
IncreasedRangedDamage,
|
14
|
+
IncreasedRangedWeaponAccuracy,
|
15
|
+
IncreasedChargeDamage,
|
16
|
+
DecreasedMoraleShock,
|
17
|
+
DecreasedMeleeAttackDamage,
|
18
|
+
DecreasedRangedAttackDamage,
|
19
|
+
DecreasedShieldDamage,
|
20
|
+
IncreasedTroopMovementSpeed,
|
21
|
+
IncreasedMountMovementSpeed
|
22
|
+
}
|
23
|
+
|
24
|
+
public int BannerLevel { [CompilerGenerated]
|
10
25
|
get; }
|
11
26
|
|
12
|
-
public
|
27
|
+
public BannerItemEffects BannerEffect { [CompilerGenerated]
|
13
28
|
get; }
|
14
29
|
|
15
|
-
public
|
30
|
+
public float BannerEffectAmount { [CompilerGenerated]
|
16
31
|
get; }
|
17
32
|
|
18
33
|
public extern BannerComponent(ItemObject item);
|
@@ -8,29 +8,41 @@ namespace TaleWorlds.Core
|
|
8
8
|
{
|
9
9
|
public const float RotationPrecision = 0.00278f;
|
10
10
|
|
11
|
-
[SaveableField(1)]
|
12
|
-
public int MeshId;
|
13
|
-
|
14
|
-
[SaveableField(2)]
|
15
|
-
public int ColorId;
|
16
|
-
|
17
11
|
[SaveableField(3)]
|
18
|
-
public int
|
12
|
+
public int _colorId2;
|
19
13
|
|
20
14
|
[SaveableField(4)]
|
21
|
-
public Vec2
|
15
|
+
public Vec2 _size;
|
22
16
|
|
23
17
|
[SaveableField(5)]
|
24
|
-
public Vec2
|
18
|
+
public Vec2 _position;
|
25
19
|
|
26
20
|
[SaveableField(6)]
|
27
|
-
public bool
|
21
|
+
public bool _drawStroke;
|
28
22
|
|
29
23
|
[SaveableField(7)]
|
30
|
-
public bool
|
24
|
+
public bool _mirror;
|
31
25
|
|
32
26
|
[SaveableField(8)]
|
33
|
-
public float
|
27
|
+
public float _rotationValue;
|
28
|
+
|
29
|
+
public int LocalVersion { get; }
|
30
|
+
|
31
|
+
public int MeshId { get; set; }
|
32
|
+
|
33
|
+
public int ColorId { get; set; }
|
34
|
+
|
35
|
+
public int ColorId2 { get; set; }
|
36
|
+
|
37
|
+
public Vec2 Size { get; set; }
|
38
|
+
|
39
|
+
public Vec2 Position { get; set; }
|
40
|
+
|
41
|
+
public bool DrawStroke { get; set; }
|
42
|
+
|
43
|
+
public bool Mirror { get; set; }
|
44
|
+
|
45
|
+
public float RotationValue { get; set; }
|
34
46
|
|
35
47
|
public float Rotation { get; }
|
36
48
|
|
@@ -38,6 +50,10 @@ namespace TaleWorlds.Core
|
|
38
50
|
|
39
51
|
public extern BannerData(BannerData bannerData);
|
40
52
|
|
53
|
+
public override extern bool Equals(object obj);
|
54
|
+
|
55
|
+
public override extern int GetHashCode();
|
56
|
+
|
41
57
|
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
42
58
|
}
|
43
59
|
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
namespace TaleWorlds.Core
|
2
|
+
{
|
3
|
+
public static class BannerExtensions
|
4
|
+
{
|
5
|
+
public static extern bool IsContentsSameWith(this Banner banner, Banner otherBanner);
|
6
|
+
}
|
7
|
+
}
|
@@ -37,7 +37,7 @@ namespace TaleWorlds.Core
|
|
37
37
|
|
38
38
|
public static extern void Initialize();
|
39
39
|
|
40
|
-
public static extern uint GetColor(int
|
40
|
+
public static extern uint GetColor(int id);
|
41
41
|
|
42
42
|
public static extern int GetColorId(uint color);
|
43
43
|
|
@@ -27,15 +27,19 @@ namespace TaleWorlds.Core
|
|
27
27
|
get; [CompilerGenerated]
|
28
28
|
protected set; }
|
29
29
|
|
30
|
+
public FormationPositionPreference FormationPositionPreference { [CompilerGenerated]
|
31
|
+
get; [CompilerGenerated]
|
32
|
+
protected set; }
|
33
|
+
|
30
34
|
public bool IsInfantry { get; }
|
31
35
|
|
32
36
|
public virtual bool IsMounted { get; }
|
33
37
|
|
34
38
|
public virtual bool IsRanged { get; }
|
35
39
|
|
36
|
-
public
|
40
|
+
public int Race { [CompilerGenerated]
|
37
41
|
get; [CompilerGenerated]
|
38
|
-
|
42
|
+
set; }
|
39
43
|
|
40
44
|
public virtual bool IsFemale { [CompilerGenerated]
|
41
45
|
get; [CompilerGenerated]
|
@@ -98,7 +102,7 @@ namespace TaleWorlds.Core
|
|
98
102
|
|
99
103
|
public virtual extern BodyProperties GetBodyProperties(Equipment equipment, int seed = -1);
|
100
104
|
|
101
|
-
public virtual extern void UpdatePlayerCharacterBodyProperties(BodyProperties properties, bool isFemale);
|
105
|
+
public virtual extern void UpdatePlayerCharacterBodyProperties(BodyProperties properties, int race, bool isFemale);
|
102
106
|
|
103
107
|
public extern BasicCharacterObject();
|
104
108
|
|
@@ -40,7 +40,7 @@ namespace TaleWorlds.Core
|
|
40
40
|
|
41
41
|
public static extern bool FromString(string keyValue, out BodyProperties bodyProperties);
|
42
42
|
|
43
|
-
public static extern BodyProperties GetRandomBodyProperties(bool isFemale, BodyProperties bodyPropertiesMin, BodyProperties bodyPropertiesMax, int hairCoverType, int seed, string hairTags, string beardTags, string tattooTags);
|
43
|
+
public static extern BodyProperties GetRandomBodyProperties(int race, bool isFemale, BodyProperties bodyPropertiesMin, BodyProperties bodyPropertiesMax, int hairCoverType, int seed, string hairTags, string beardTags, string tattooTags);
|
44
44
|
|
45
45
|
public static extern bool operator ==(BodyProperties a, BodyProperties b);
|
46
46
|
|
@@ -38,11 +38,14 @@ namespace TaleWorlds.Core
|
|
38
38
|
get; [CompilerGenerated]
|
39
39
|
set; }
|
40
40
|
|
41
|
+
public int Race { [CompilerGenerated]
|
42
|
+
get; }
|
43
|
+
|
41
44
|
public extern Equipment CalculateEquipment();
|
42
45
|
|
43
46
|
public static extern CharacterCode CreateFrom(BasicCharacterObject character);
|
44
47
|
|
45
|
-
public static extern CharacterCode CreateFrom(string equipmentCode, BodyProperties bodyProperties, bool isFemale, bool isHero, uint color1, uint color2, FormationClass formationClass);
|
48
|
+
public static extern CharacterCode CreateFrom(string equipmentCode, BodyProperties bodyProperties, bool isFemale, bool isHero, uint color1, uint color2, FormationClass formationClass, int race);
|
46
49
|
|
47
50
|
public extern string CreateNewCodeString();
|
48
51
|
|
@@ -20,10 +20,6 @@ namespace TaleWorlds.Core
|
|
20
20
|
|
21
21
|
public static extern float CalculateStrikeMagnitudeForThrust(float thrustWeaponSpeed, float weaponWeight, float extraLinearSpeed, bool isThrown);
|
22
22
|
|
23
|
-
public static extern float ComputeRawDamageOld(DamageTypes damageType, float magnitude, float armorEffectiveness, float absorbedDamageRatio);
|
24
|
-
|
25
|
-
public static extern float ComputeRawDamageNew(DamageTypes damageType, float magnitude, float armorEffectiveness, float absorbedDamageRatio);
|
26
|
-
|
27
23
|
public static extern float CalculateBaseBlowMagnitudeForSwing(float angularSpeed, float weaponReach, float weaponWeight, float weaponInertia, float weaponCoM, float impactPoint, float exraLinearSpeed);
|
28
24
|
|
29
25
|
public static extern float CalculateBaseBlowMagnitudeForThrust(float linearSpeed, float weaponWeight, float exraLinearSpeed);
|
@@ -12,6 +12,8 @@ namespace TaleWorlds.Core
|
|
12
12
|
|
13
13
|
public const string PlayerIsFamousTag = "PlayerIsFamousTag";
|
14
14
|
|
15
|
+
public const string PlayerIsKnownButNotFamousTag = "PlayerIsKnownButNotFamousTag";
|
16
|
+
|
15
17
|
public const string PlayerIsNobleTag = "PlayerIsNobleTag";
|
16
18
|
|
17
19
|
public const string AttractedToPlayerTag = "AttractedToPlayerTag";
|
@@ -12,8 +12,10 @@ namespace TaleWorlds.Core
|
|
12
12
|
|
13
13
|
public readonly CraftingTemplate.CraftingStatTypes Type;
|
14
14
|
|
15
|
+
public readonly DamageTypes DamageType;
|
16
|
+
|
15
17
|
public bool IsValid { get; }
|
16
18
|
|
17
|
-
public extern CraftingStatData(TextObject descriptionText, float curValue, float maxValue, CraftingTemplate.CraftingStatTypes type);
|
19
|
+
public extern CraftingStatData(TextObject descriptionText, float curValue, float maxValue, CraftingTemplate.CraftingStatTypes type, DamageTypes damageType = DamageTypes.Invalid);
|
18
20
|
}
|
19
21
|
}
|
@@ -33,6 +33,9 @@ namespace TaleWorlds.Core
|
|
33
33
|
|
34
34
|
public IEnumerable<CraftingPiece> Pieces { get; }
|
35
35
|
|
36
|
+
public ItemObject.ItemTypeEnum ItemType { [CompilerGenerated]
|
37
|
+
get; }
|
38
|
+
|
36
39
|
public ItemModifierGroup ItemModifierGroup { [CompilerGenerated]
|
37
40
|
get; }
|
38
41
|
|
@@ -64,7 +67,7 @@ namespace TaleWorlds.Core
|
|
64
67
|
|
65
68
|
public extern bool IsPieceTypeHiddenOnHolster(CraftingPiece.PieceTypes pieceType);
|
66
69
|
|
67
|
-
[IteratorStateMachine(typeof(
|
70
|
+
[IteratorStateMachine(typeof(_003CGetStatDatas_003Ed__50))]
|
68
71
|
public extern IEnumerable<KeyValuePair<CraftingStatTypes, float>> GetStatDatas(int usageIndex, DamageTypes thrustDamageType, DamageTypes swingDamageType);
|
69
72
|
|
70
73
|
public override extern string ToString();
|
@@ -1,35 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.Core
|
2
|
-
{
|
3
|
-
public class DefaultItems
|
4
|
-
{
|
5
|
-
public static ItemObject Grain { get; }
|
6
|
-
|
7
|
-
public static ItemObject Meat { get; }
|
8
|
-
|
9
|
-
public static ItemObject Hides { get; }
|
10
|
-
|
11
|
-
public static ItemObject Tools { get; }
|
12
|
-
|
13
|
-
public static ItemObject IronOre { get; }
|
14
|
-
|
15
|
-
public static ItemObject HardWood { get; }
|
16
|
-
|
17
|
-
public static ItemObject Charcoal { get; }
|
18
|
-
|
19
|
-
public static ItemObject IronIngot1 { get; }
|
20
|
-
|
21
|
-
public static ItemObject IronIngot2 { get; }
|
22
|
-
|
23
|
-
public static ItemObject IronIngot3 { get; }
|
24
|
-
|
25
|
-
public static ItemObject IronIngot4 { get; }
|
26
|
-
|
27
|
-
public static ItemObject IronIngot5 { get; }
|
28
|
-
|
29
|
-
public static ItemObject IronIngot6 { get; }
|
30
|
-
|
31
|
-
public static ItemObject Trash { get; }
|
32
|
-
|
33
|
-
public extern DefaultItems();
|
34
|
-
}
|
35
|
-
}
|
@@ -2,14 +2,16 @@ namespace TaleWorlds.Core
|
|
2
2
|
{
|
3
3
|
public class DefaultStrikeMagnitudeModel : StrikeMagnitudeCalculationModel
|
4
4
|
{
|
5
|
-
public override extern float CalculateStrikeMagnitudeForSwing(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float swingSpeed, float impactPointAsPercent, float weaponWeight, float weaponLength, float weaponInertia, float weaponCoM, float extraLinearSpeed, bool doesAttackerHaveMount
|
5
|
+
public override extern float CalculateStrikeMagnitudeForSwing(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float swingSpeed, float impactPointAsPercent, float weaponWeight, WeaponComponentData weaponUsageComponent, float weaponLength, float weaponInertia, float weaponCoM, float extraLinearSpeed, bool doesAttackerHaveMount);
|
6
6
|
|
7
|
-
public override extern float CalculateStrikeMagnitudeForThrust(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float thrustWeaponSpeed, float weaponWeight, float extraLinearSpeed, bool doesAttackerHaveMount,
|
7
|
+
public override extern float CalculateStrikeMagnitudeForThrust(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float thrustWeaponSpeed, float weaponWeight, WeaponComponentData weaponUsageComponent, float extraLinearSpeed, bool doesAttackerHaveMount, bool isThrown = false);
|
8
8
|
|
9
9
|
public override extern float CalculateSpeedBonusMultiplierForMissile(BasicCharacterObject attackerCharacter, WeaponClass ammoClass);
|
10
10
|
|
11
11
|
public override extern float ComputeRawDamage(DamageTypes damageType, float magnitude, float armorEffectiveness, float absorbedDamageRatio);
|
12
12
|
|
13
|
+
public override extern float GetBluntDamageFactorByDamageType(DamageTypes damageType);
|
14
|
+
|
13
15
|
public override extern float CalculateHorseArcheryFactor(BasicCharacterObject characterObject);
|
14
16
|
|
15
17
|
public extern DefaultStrikeMagnitudeModel();
|
@@ -1,21 +0,0 @@
|
|
1
|
-
using System.Collections.Generic;
|
2
|
-
|
3
|
-
namespace TaleWorlds.Core
|
4
|
-
{
|
5
|
-
public class DeterministicRandom
|
6
|
-
{
|
7
|
-
public const int MaxDeterministicRandomValue = 100;
|
8
|
-
|
9
|
-
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
10
|
-
|
11
|
-
public extern DeterministicRandom(int capacity);
|
12
|
-
|
13
|
-
public extern int GetValue(int index);
|
14
|
-
|
15
|
-
public extern float GetValueNormalized(int index);
|
16
|
-
|
17
|
-
public extern float GetValue(int index, float max);
|
18
|
-
|
19
|
-
public extern float GetValue(int index, float min, float max);
|
20
|
-
}
|
21
|
-
}
|
@@ -26,7 +26,7 @@ namespace TaleWorlds.Core
|
|
26
26
|
AiAttackingShieldDefenseChance = 20,
|
27
27
|
AiAttackingShieldDefenseTimer = 21,
|
28
28
|
AiCheckMovementIntervalFactor = 22,
|
29
|
-
|
29
|
+
AiMovementDelayFactor = 23,
|
30
30
|
AiParryDecisionChangeValue = 24,
|
31
31
|
AiDefendWithShieldDecisionChanceValue = 25,
|
32
32
|
AiMoveEnemySideTimeValue = 26,
|
@@ -73,25 +73,23 @@ namespace TaleWorlds.Core
|
|
73
73
|
WeaponUnsteadyBeginTime = 67,
|
74
74
|
WeaponUnsteadyEndTime = 68,
|
75
75
|
WeaponRotationalAccuracyPenaltyInRadians = 69,
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
BipedalRangedReloadSpeedMultiplier = 87,
|
94
|
-
Count = 88,
|
76
|
+
AttributeRiding = 70,
|
77
|
+
AttributeShield = 71,
|
78
|
+
AttributeShieldMissileCollisionBodySizeAdder = 72,
|
79
|
+
ShieldBashStunDurationMultiplier = 73,
|
80
|
+
KickStunDurationMultiplier = 74,
|
81
|
+
ReloadMovementPenaltyFactor = 75,
|
82
|
+
TopSpeedReachDuration = 76,
|
83
|
+
MaxSpeedMultiplier = 77,
|
84
|
+
CombatMaxSpeedMultiplier = 78,
|
85
|
+
AttributeHorseArchery = 79,
|
86
|
+
AttributeCourage = 80,
|
87
|
+
MountManeuver = 81,
|
88
|
+
MountSpeed = 82,
|
89
|
+
MountDashAccelerationMultiplier = 83,
|
90
|
+
BipedalRangedReadySpeedMultiplier = 84,
|
91
|
+
BipedalRangedReloadSpeedMultiplier = 85,
|
92
|
+
Count = 86,
|
95
93
|
DrivenPropertiesCalculatedAtSpawnEnd = 57
|
96
94
|
}
|
97
95
|
}
|
@@ -20,7 +20,7 @@ namespace TaleWorlds.Core
|
|
20
20
|
IsStoicTemplate = 0x800u,
|
21
21
|
IsNomadTemplate = 0x1000u,
|
22
22
|
IsWoodlandTemplate = 0x2000u,
|
23
|
-
|
24
|
-
|
23
|
+
IsChildEquipmentTemplate = 0x4000u,
|
24
|
+
IsTeenagerEquipmentTemplate = 0x8000u
|
25
25
|
}
|
26
26
|
}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
using System.Runtime.CompilerServices;
|
2
|
-
|
3
|
-
namespace TaleWorlds.Core
|
4
|
-
{
|
5
|
-
public class EventManager<T>
|
6
|
-
{
|
7
|
-
public delegate void DelegateEvent(T arguments);
|
8
|
-
|
9
|
-
public class EventRegistry
|
10
|
-
{
|
11
|
-
public int EventType { [CompilerGenerated]
|
12
|
-
get; [CompilerGenerated]
|
13
|
-
protected set; }
|
14
|
-
|
15
|
-
public DelegateEvent RegisteredDelegates { [CompilerGenerated]
|
16
|
-
get; [CompilerGenerated]
|
17
|
-
protected set; }
|
18
|
-
|
19
|
-
public extern EventRegistry(int eventType, DelegateEvent firstDelegateEvent);
|
20
|
-
|
21
|
-
public extern void RegisterDelegate(DelegateEvent delegateEvent);
|
22
|
-
|
23
|
-
public extern bool UnregisterDelegate(DelegateEvent delegateEvent);
|
24
|
-
}
|
25
|
-
|
26
|
-
public extern void RunEvent(int eventType, T arguments);
|
27
|
-
|
28
|
-
public extern void RegisterToEvent(int eventType, DelegateEvent delegateEvent);
|
29
|
-
|
30
|
-
public extern void UnregisterFromEvent(int eventType, DelegateEvent delegateEvent);
|
31
|
-
|
32
|
-
public extern EventManager();
|
33
|
-
}
|
34
|
-
}
|
@@ -1,14 +1,38 @@
|
|
1
1
|
namespace TaleWorlds.Core
|
2
2
|
{
|
3
|
-
public class FaceGen
|
3
|
+
public static class FaceGen
|
4
4
|
{
|
5
|
+
public const string MonsterSuffixSettlement = "_settlement";
|
6
|
+
|
7
|
+
public const string MonsterSuffixSettlementSlow = "_settlement_slow";
|
8
|
+
|
9
|
+
public const string MonsterSuffixSettlementFast = "_settlement_fast";
|
10
|
+
|
11
|
+
public const string MonsterSuffixChild = "_child";
|
12
|
+
|
5
13
|
public static bool ShowDebugValues;
|
6
14
|
|
15
|
+
public static bool UpdateDeformKeys;
|
16
|
+
|
7
17
|
public static extern void SetInstance(IFaceGen faceGen);
|
8
18
|
|
9
|
-
public static extern BodyProperties GetRandomBodyProperties(bool isFemale, BodyProperties bodyPropertiesMin, BodyProperties bodyPropertiesMax, int hairCoverType, int seed, string hairTags, string beardTags, string tatooTags);
|
19
|
+
public static extern BodyProperties GetRandomBodyProperties(int race, bool isFemale, BodyProperties bodyPropertiesMin, BodyProperties bodyPropertiesMax, int hairCoverType, int seed, string hairTags, string beardTags, string tatooTags);
|
20
|
+
|
21
|
+
public static extern int GetRaceCount();
|
22
|
+
|
23
|
+
public static extern int GetRaceOrDefault(string raceId);
|
10
24
|
|
11
|
-
public static extern
|
25
|
+
public static extern string GetBaseMonsterNameFromRace(int race);
|
26
|
+
|
27
|
+
public static extern string[] GetRaceNames();
|
28
|
+
|
29
|
+
public static extern Monster GetMonster(string monsterID);
|
30
|
+
|
31
|
+
public static extern Monster GetMonsterWithSuffix(int race, string suffix);
|
32
|
+
|
33
|
+
public static extern Monster GetBaseMonsterFromRace(int race);
|
34
|
+
|
35
|
+
public static extern void GenerateParentKey(BodyProperties childBodyProperties, int race, ref BodyProperties motherBodyProperties, ref BodyProperties fatherBodyProperties);
|
12
36
|
|
13
37
|
public static extern void SetHair(ref BodyProperties bodyProperties, int hair, int beard, int tattoo);
|
14
38
|
|
@@ -19,7 +43,5 @@ namespace TaleWorlds.Core
|
|
19
43
|
public static extern BodyProperties GetBodyPropertiesWithAge(ref BodyProperties originalBodyProperties, float age);
|
20
44
|
|
21
45
|
public static extern BodyMeshMaturityType GetMaturityTypeWithAge(float age);
|
22
|
-
|
23
|
-
public extern FaceGen();
|
24
46
|
}
|
25
47
|
}
|
@@ -21,15 +21,14 @@ namespace TaleWorlds.Core
|
|
21
21
|
|
22
22
|
public Action<float> AfterTick;
|
23
23
|
|
24
|
-
public State CurrentState {
|
24
|
+
public State CurrentState { [CompilerGenerated]
|
25
|
+
get; }
|
25
26
|
|
26
27
|
public IMonsterMissionDataCreator MonsterMissionDataCreator { [CompilerGenerated]
|
27
28
|
get; [CompilerGenerated]
|
28
29
|
set; }
|
29
30
|
|
30
|
-
public Monster
|
31
|
-
|
32
|
-
public Monster HorseMonster { get; }
|
31
|
+
public Monster DefaultMonster { get; }
|
33
32
|
|
34
33
|
[SaveableProperty(3)]
|
35
34
|
public GameType GameType { [CompilerGenerated]
|
@@ -46,11 +45,9 @@ namespace TaleWorlds.Core
|
|
46
45
|
get; [CompilerGenerated]
|
47
46
|
set; }
|
48
47
|
|
49
|
-
public
|
48
|
+
public BasicGameModels BasicModels { [CompilerGenerated]
|
50
49
|
get; }
|
51
50
|
|
52
|
-
public BasicGameModels BasicModels { get; }
|
53
|
-
|
54
51
|
public GameManagerBase GameManager { [CompilerGenerated]
|
55
52
|
get; }
|
56
53
|
|
@@ -66,15 +63,15 @@ namespace TaleWorlds.Core
|
|
66
63
|
|
67
64
|
public bool IsEditModeOn { get; }
|
68
65
|
|
69
|
-
public bool DeterministicMode { get; }
|
70
|
-
|
71
66
|
public UnitSpawnPrioritizations UnitSpawnPrioritization { get; }
|
72
67
|
|
73
68
|
public float ApplicationTime { get; }
|
74
69
|
|
75
70
|
public static Game Current { get; }
|
76
71
|
|
77
|
-
public IBannerVisualCreator BannerVisualCreator {
|
72
|
+
public IBannerVisualCreator BannerVisualCreator { [CompilerGenerated]
|
73
|
+
get; [CompilerGenerated]
|
74
|
+
set; }
|
78
75
|
|
79
76
|
public int NextUniqueTroopSeed { get; }
|
80
77
|
|
@@ -87,9 +84,6 @@ namespace TaleWorlds.Core
|
|
87
84
|
public DefaultItemCategories DefaultItemCategories { [CompilerGenerated]
|
88
85
|
get; }
|
89
86
|
|
90
|
-
public DefaultItems DefaultItems { [CompilerGenerated]
|
91
|
-
get; }
|
92
|
-
|
93
87
|
public EventManager EventManager { [CompilerGenerated]
|
94
88
|
get; }
|
95
89
|
|
@@ -117,11 +111,13 @@ namespace TaleWorlds.Core
|
|
117
111
|
|
118
112
|
public extern void SetDefaultEquipments(IReadOnlyDictionary<string, Equipment> defaultEquipments);
|
119
113
|
|
114
|
+
public static extern Game CreateGame(GameType gameType, GameManagerBase gameManager, int seed);
|
115
|
+
|
120
116
|
public static extern Game CreateGame(GameType gameType, GameManagerBase gameManager);
|
121
117
|
|
122
118
|
public static extern Game LoadSaveGame(LoadResult loadResult, GameManagerBase gameManager);
|
123
119
|
|
124
|
-
public extern
|
120
|
+
public extern void Save(MetaData metaData, string saveName, ISaveDriver driver, Action<SaveResult> onSaveCompleted);
|
125
121
|
|
126
122
|
extern void IGameStateManagerOwner.OnStateStackEmpty();
|
127
123
|
|
@@ -129,8 +125,6 @@ namespace TaleWorlds.Core
|
|
129
125
|
|
130
126
|
public extern void CreateGameManager();
|
131
127
|
|
132
|
-
public extern void SetRandomSeed(int randomSeed);
|
133
|
-
|
134
128
|
public extern void OnStateChanged(GameState oldState);
|
135
129
|
|
136
130
|
public extern T AddGameHandler<T>() where T : GameHandler, new();
|
@@ -139,8 +133,6 @@ namespace TaleWorlds.Core
|
|
139
133
|
|
140
134
|
public extern void RemoveGameHandler<T>() where T : GameHandler;
|
141
135
|
|
142
|
-
public extern void SetRandomGenerators();
|
143
|
-
|
144
136
|
public extern void Initialize();
|
145
137
|
|
146
138
|
public static extern void RegisterTypes(GameType gameType, MBObjectManager objectManager);
|
@@ -151,8 +143,6 @@ namespace TaleWorlds.Core
|
|
151
143
|
|
152
144
|
public extern bool DoLoading();
|
153
145
|
|
154
|
-
public extern void ResetRandomGenerator(int randomSeed);
|
155
|
-
|
156
146
|
public extern void OnMissionIsStarting(string missionName, MissionInitializerRecord rec);
|
157
147
|
|
158
148
|
public extern void OnFinalize();
|
@@ -161,8 +151,6 @@ namespace TaleWorlds.Core
|
|
161
151
|
|
162
152
|
public extern void LoadBasicFiles();
|
163
153
|
|
164
|
-
public extern void InitializeOnCampaignStart();
|
165
|
-
|
166
154
|
public extern void ItemObjectDeserialized(ItemObject itemObject);
|
167
155
|
}
|
168
156
|
}
|
@@ -21,8 +21,6 @@ namespace TaleWorlds.Core
|
|
21
21
|
|
22
22
|
public abstract bool IsEditModeOn { get; }
|
23
23
|
|
24
|
-
public abstract bool DeterministicMode { get; }
|
25
|
-
|
26
24
|
public abstract UnitSpawnPrioritizations UnitSpawnPrioritization { get; }
|
27
25
|
|
28
26
|
public extern void Initialize();
|
@@ -15,22 +15,28 @@ namespace TaleWorlds.Core
|
|
15
15
|
|
16
16
|
public static GameStateManager Current { get; set; }
|
17
17
|
|
18
|
+
public IGameStateManagerListener GameStateManagerListener { [CompilerGenerated]
|
19
|
+
get; [CompilerGenerated]
|
20
|
+
set; }
|
21
|
+
|
18
22
|
public GameStateManagerType CurrentType { [CompilerGenerated]
|
19
23
|
get; }
|
20
24
|
|
21
25
|
public IGameStateManagerOwner Owner { [CompilerGenerated]
|
22
26
|
get; }
|
23
27
|
|
24
|
-
public IGameStateManagerListener GameStateManagerListener { get; set; }
|
25
|
-
|
26
28
|
public IEnumerable<GameState> GameStates { get; }
|
27
29
|
|
28
|
-
public
|
30
|
+
public bool ActiveStateDisabledByUser { get; }
|
29
31
|
|
30
|
-
public
|
32
|
+
public GameState ActiveState { get; }
|
31
33
|
|
32
34
|
public extern GameStateManager(IGameStateManagerOwner owner, GameStateManagerType gameStateManagerType);
|
33
35
|
|
36
|
+
public extern void RegisterActiveStateDisableRequest(object requestingInstance);
|
37
|
+
|
38
|
+
public extern void UnregisterActiveStateDisableRequest(object requestingInstance);
|
39
|
+
|
34
40
|
public extern void OnSavedGameLoadFinished();
|
35
41
|
|
36
42
|
public extern T LastOrDefault<T>() where T : GameState;
|
@@ -33,6 +33,8 @@ namespace TaleWorlds.Core
|
|
33
33
|
[IteratorStateMachine(typeof(_003CFindAllTextVariations_003Ed__7))]
|
34
34
|
public extern IEnumerable<TextObject> FindAllTextVariations(string id);
|
35
35
|
|
36
|
-
public extern void LoadGameTexts(
|
36
|
+
public extern void LoadGameTexts();
|
37
|
+
|
38
|
+
public extern void LoadDefaultTexts();
|
37
39
|
}
|
38
40
|
}
|
@@ -10,6 +10,10 @@ namespace TaleWorlds.Core
|
|
10
10
|
public extern GameTextHelper(string id);
|
11
11
|
|
12
12
|
public extern GameTextHelper Variation(string text, params object[] propertiesAndWeights);
|
13
|
+
|
14
|
+
public static extern TextObject MergeTextObjectsWithComma(List<TextObject> textObjects, bool includeAnd);
|
15
|
+
|
16
|
+
public static extern TextObject MergeTextObjectsWithSymbol(List<TextObject> textObjects, TextObject symbol, TextObject lastSymbol = null);
|
13
17
|
}
|
14
18
|
|
15
19
|
public static extern void Initialize(GameTextManager gameTextManager);
|
@@ -31,7 +35,5 @@ namespace TaleWorlds.Core
|
|
31
35
|
public static extern void ClearInstance();
|
32
36
|
|
33
37
|
public static extern GameTextHelper AddGameTextWithVariation(string id);
|
34
|
-
|
35
|
-
public static extern TextObject MergeTextObjectsWithComma(List<TextObject> textObjects, bool includeAnd);
|
36
38
|
}
|
37
39
|
}
|
@@ -24,7 +24,8 @@ namespace TaleWorlds.Core
|
|
24
24
|
|
25
25
|
public List<KeyValuePair<string, bool>> AdditionalMeshesNameList;
|
26
26
|
|
27
|
-
public Monster Monster {
|
27
|
+
public Monster Monster { [CompilerGenerated]
|
28
|
+
get; }
|
28
29
|
|
29
30
|
public int Maneuver { [CompilerGenerated]
|
30
31
|
get; }
|
@@ -72,7 +73,5 @@ namespace TaleWorlds.Core
|
|
72
73
|
public override extern ItemComponent GetCopy();
|
73
74
|
|
74
75
|
public override extern void Deserialize(MBObjectManager objectManager, XmlNode node);
|
75
|
-
|
76
|
-
public override extern void Reset();
|
77
76
|
}
|
78
77
|
}
|
@@ -14,12 +14,16 @@ namespace TaleWorlds.Core
|
|
14
14
|
|
15
15
|
public const string IssueActiveIcon = "{=!}<img src=\"General\\Icons\\icon_issue_active_square\" extend=\"4\">";
|
16
16
|
|
17
|
+
public const string TrackedIssueIcon = "{=!}<img src=\"General\\Icons\\issue_target_icon\" extend=\"4\">";
|
18
|
+
|
17
19
|
public const string QuestAvailableIcon = "{=!}<img src=\"General\\Icons\\icon_quest_available_square\" extend=\"4\">";
|
18
20
|
|
19
21
|
public const string QuestActiveIcon = "{=!}<img src=\"General\\Icons\\icon_issue_active_square\" extend=\"4\">";
|
20
22
|
|
21
23
|
public const string StoryQuestActiveIcon = "{=!}<img src=\"General\\Icons\\icon_story_quest_active_square\" extend=\"4\">";
|
22
24
|
|
25
|
+
public const string TrackedStoryQuestIcon = "{=!}<img src=\"General\\Icons\\quest_target_icon\" extend=\"4\">";
|
26
|
+
|
23
27
|
public const string InPrisonIcon = "{=!}<img src=\"Clan\\Status\\icon_inprison\">";
|
24
28
|
|
25
29
|
public const string ChildIcon = "{=!}<img src=\"Clan\\Status\\icon_ischild\">";
|
@@ -2,9 +2,9 @@ namespace TaleWorlds.Core
|
|
2
2
|
{
|
3
3
|
public interface IFaceGen
|
4
4
|
{
|
5
|
-
BodyProperties GetRandomBodyProperties(bool isFemale, BodyProperties bodyPropertiesMin, BodyProperties bodyPropertiesMax, int hairCoverType, int seed, string hairTags, string beardTags, string tatooTags);
|
5
|
+
BodyProperties GetRandomBodyProperties(int race, bool isFemale, BodyProperties bodyPropertiesMin, BodyProperties bodyPropertiesMax, int hairCoverType, int seed, string hairTags, string beardTags, string tatooTags);
|
6
6
|
|
7
|
-
void GenerateParentBody(BodyProperties childBodyProperties, ref BodyProperties motherBodyProperties, ref BodyProperties fatherBodyProperties);
|
7
|
+
void GenerateParentBody(BodyProperties childBodyProperties, int race, ref BodyProperties motherBodyProperties, ref BodyProperties fatherBodyProperties);
|
8
8
|
|
9
9
|
void SetBody(ref BodyProperties bodyProperties, int build, int weight);
|
10
10
|
|
@@ -15,5 +15,19 @@ namespace TaleWorlds.Core
|
|
15
15
|
BodyProperties GetBodyPropertiesWithAge(ref BodyProperties bodyProperties, float age);
|
16
16
|
|
17
17
|
BodyMeshMaturityType GetMaturityTypeWithAge(float age);
|
18
|
+
|
19
|
+
int GetRaceCount();
|
20
|
+
|
21
|
+
int GetRaceOrDefault(string raceId);
|
22
|
+
|
23
|
+
string GetBaseMonsterNameFromRace(int race);
|
24
|
+
|
25
|
+
string[] GetRaceNames();
|
26
|
+
|
27
|
+
Monster GetMonster(string monsterID);
|
28
|
+
|
29
|
+
Monster GetMonsterWithSuffix(int race, string suffix);
|
30
|
+
|
31
|
+
Monster GetBaseMonsterFromRace(int race);
|
18
32
|
}
|
19
33
|
}
|
@@ -4,8 +4,6 @@ namespace TaleWorlds.Core
|
|
4
4
|
{
|
5
5
|
public interface IMissionTroopSupplier
|
6
6
|
{
|
7
|
-
int NumActiveTroops { get; }
|
8
|
-
|
9
7
|
int NumRemovedTroops { get; }
|
10
8
|
|
11
9
|
int NumTroopsNotSupplied { get; }
|
@@ -14,6 +12,8 @@ namespace TaleWorlds.Core
|
|
14
12
|
|
15
13
|
IEnumerable<IAgentOriginBase> SupplyTroops(int numberToAllocate);
|
16
14
|
|
15
|
+
IEnumerable<IAgentOriginBase> GetAllTroops();
|
16
|
+
|
17
17
|
int GetNumberOfPlayerControllableTroops();
|
18
18
|
}
|
19
19
|
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
namespace TaleWorlds.Core
|
2
|
+
{
|
3
|
+
public interface ISceneNotificationContextProvider
|
4
|
+
{
|
5
|
+
bool IsContextAllowed(SceneNotificationData.RelevantContextType relevantType);
|
6
|
+
}
|
7
|
+
}
|
@@ -1,182 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.Library;
|
4
|
-
using TaleWorlds.Localization;
|
5
|
-
|
6
|
-
namespace TaleWorlds.Core
|
7
|
-
{
|
8
|
-
public static class InformationManager
|
9
|
-
{
|
10
|
-
public static Func<bool> IsAnyInquiryActive;
|
11
|
-
|
12
|
-
public static event Action<InformationMessage> DisplayMessageInternal
|
13
|
-
{
|
14
|
-
[CompilerGenerated]
|
15
|
-
add;
|
16
|
-
[CompilerGenerated]
|
17
|
-
remove;
|
18
|
-
}
|
19
|
-
|
20
|
-
public static event Action ClearAllMessagesInternal
|
21
|
-
{
|
22
|
-
[CompilerGenerated]
|
23
|
-
add;
|
24
|
-
[CompilerGenerated]
|
25
|
-
remove;
|
26
|
-
}
|
27
|
-
|
28
|
-
public static event Action<string, int, BasicCharacterObject, string> FiringQuickInformation
|
29
|
-
{
|
30
|
-
[CompilerGenerated]
|
31
|
-
add;
|
32
|
-
[CompilerGenerated]
|
33
|
-
remove;
|
34
|
-
}
|
35
|
-
|
36
|
-
public static event Action<string> OnAddSystemNotification
|
37
|
-
{
|
38
|
-
[CompilerGenerated]
|
39
|
-
add;
|
40
|
-
[CompilerGenerated]
|
41
|
-
remove;
|
42
|
-
}
|
43
|
-
|
44
|
-
public static event Action<InformationData> OnAddMapNotice
|
45
|
-
{
|
46
|
-
[CompilerGenerated]
|
47
|
-
add;
|
48
|
-
[CompilerGenerated]
|
49
|
-
remove;
|
50
|
-
}
|
51
|
-
|
52
|
-
public static event Action<InformationData> OnRemoveMapNotice
|
53
|
-
{
|
54
|
-
[CompilerGenerated]
|
55
|
-
add;
|
56
|
-
[CompilerGenerated]
|
57
|
-
remove;
|
58
|
-
}
|
59
|
-
|
60
|
-
public static event Action<string> OnAddHintInformation
|
61
|
-
{
|
62
|
-
[CompilerGenerated]
|
63
|
-
add;
|
64
|
-
[CompilerGenerated]
|
65
|
-
remove;
|
66
|
-
}
|
67
|
-
|
68
|
-
public static event Action<Type, object[]> OnAddTooltipInformation
|
69
|
-
{
|
70
|
-
[CompilerGenerated]
|
71
|
-
add;
|
72
|
-
[CompilerGenerated]
|
73
|
-
remove;
|
74
|
-
}
|
75
|
-
|
76
|
-
public static event Action<int, int, object[]> OnBuildTooltipFromArray
|
77
|
-
{
|
78
|
-
[CompilerGenerated]
|
79
|
-
add;
|
80
|
-
[CompilerGenerated]
|
81
|
-
remove;
|
82
|
-
}
|
83
|
-
|
84
|
-
public static event Action OnHideHintInformation
|
85
|
-
{
|
86
|
-
[CompilerGenerated]
|
87
|
-
add;
|
88
|
-
[CompilerGenerated]
|
89
|
-
remove;
|
90
|
-
}
|
91
|
-
|
92
|
-
public static event Action OnHideTooltipInformation
|
93
|
-
{
|
94
|
-
[CompilerGenerated]
|
95
|
-
add;
|
96
|
-
[CompilerGenerated]
|
97
|
-
remove;
|
98
|
-
}
|
99
|
-
|
100
|
-
public static event Action<InquiryData, bool> OnShowInquiry
|
101
|
-
{
|
102
|
-
[CompilerGenerated]
|
103
|
-
add;
|
104
|
-
[CompilerGenerated]
|
105
|
-
remove;
|
106
|
-
}
|
107
|
-
|
108
|
-
public static event Action<TextInquiryData, bool> OnShowTextInquiry
|
109
|
-
{
|
110
|
-
[CompilerGenerated]
|
111
|
-
add;
|
112
|
-
[CompilerGenerated]
|
113
|
-
remove;
|
114
|
-
}
|
115
|
-
|
116
|
-
public static event Action<MultiSelectionInquiryData, bool> OnShowMultiSelectionInquiry
|
117
|
-
{
|
118
|
-
[CompilerGenerated]
|
119
|
-
add;
|
120
|
-
[CompilerGenerated]
|
121
|
-
remove;
|
122
|
-
}
|
123
|
-
|
124
|
-
public static event Action<SceneNotificationData, bool> OnShowSceneNotification
|
125
|
-
{
|
126
|
-
[CompilerGenerated]
|
127
|
-
add;
|
128
|
-
[CompilerGenerated]
|
129
|
-
remove;
|
130
|
-
}
|
131
|
-
|
132
|
-
public static event Action OnHideSceneNotification
|
133
|
-
{
|
134
|
-
[CompilerGenerated]
|
135
|
-
add;
|
136
|
-
[CompilerGenerated]
|
137
|
-
remove;
|
138
|
-
}
|
139
|
-
|
140
|
-
public static event Action OnHideInquiry
|
141
|
-
{
|
142
|
-
[CompilerGenerated]
|
143
|
-
add;
|
144
|
-
[CompilerGenerated]
|
145
|
-
remove;
|
146
|
-
}
|
147
|
-
|
148
|
-
public static extern void DisplayMessage(InformationMessage message);
|
149
|
-
|
150
|
-
public static extern void ClearAllMessages();
|
151
|
-
|
152
|
-
public static extern void MapNoticeRemoved(InformationData data);
|
153
|
-
|
154
|
-
public static extern void AddNotice(InformationData data);
|
155
|
-
|
156
|
-
public static extern void AddQuickInformation(TextObject message, int priorty = 0, BasicCharacterObject announcerCharacter = null, string soundEventPath = "");
|
157
|
-
|
158
|
-
public static extern void AddSystemNotification(string message);
|
159
|
-
|
160
|
-
public static extern void AddHintInformation(string message);
|
161
|
-
|
162
|
-
public static extern void AddTooltipInformation(Type type, params object[] args);
|
163
|
-
|
164
|
-
public static extern void UpdateTooltipFromArray(int id, int mode, object[] props);
|
165
|
-
|
166
|
-
public static extern void HideInformations();
|
167
|
-
|
168
|
-
public static extern void ShowInquiry(InquiryData data, bool pauseGameActiveState = false);
|
169
|
-
|
170
|
-
public static extern void ShowTextInquiry(TextInquiryData textData, bool pauseGameActiveState = false);
|
171
|
-
|
172
|
-
public static extern void ShowMultiSelectionInquiry(MultiSelectionInquiryData data, bool pauseGameActiveState = false);
|
173
|
-
|
174
|
-
public static extern void ShowSceneNotification(SceneNotificationData data, bool pauseGameActiveState = false);
|
175
|
-
|
176
|
-
public static extern void HideSceneNotification();
|
177
|
-
|
178
|
-
public static extern void HideInquiry();
|
179
|
-
|
180
|
-
public static extern void Clear();
|
181
|
-
}
|
182
|
-
}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Library;
|
3
|
-
|
4
|
-
namespace TaleWorlds.Core
|
5
|
-
{
|
6
|
-
public class InformationMessage
|
7
|
-
{
|
8
|
-
public string Information { [CompilerGenerated]
|
9
|
-
get; [CompilerGenerated]
|
10
|
-
set; }
|
11
|
-
|
12
|
-
public string Detail { [CompilerGenerated]
|
13
|
-
get; [CompilerGenerated]
|
14
|
-
set; }
|
15
|
-
|
16
|
-
public Color Color { [CompilerGenerated]
|
17
|
-
get; [CompilerGenerated]
|
18
|
-
set; }
|
19
|
-
|
20
|
-
public string SoundEventPath { [CompilerGenerated]
|
21
|
-
get; [CompilerGenerated]
|
22
|
-
set; }
|
23
|
-
|
24
|
-
public string Category { [CompilerGenerated]
|
25
|
-
get; [CompilerGenerated]
|
26
|
-
set; }
|
27
|
-
|
28
|
-
public extern InformationMessage(string information);
|
29
|
-
|
30
|
-
public extern InformationMessage(string information, Color color);
|
31
|
-
|
32
|
-
public extern InformationMessage(string information, Color color, string category);
|
33
|
-
|
34
|
-
public extern InformationMessage(string information, string soundEventPath);
|
35
|
-
|
36
|
-
public extern InformationMessage();
|
37
|
-
}
|
38
|
-
}
|
@@ -20,7 +20,5 @@ namespace TaleWorlds.Core
|
|
20
20
|
public override extern void Deserialize(MBObjectManager objectManager, XmlNode node);
|
21
21
|
|
22
22
|
public abstract ItemComponent GetCopy();
|
23
|
-
|
24
|
-
public virtual extern void Reset();
|
25
23
|
}
|
26
24
|
}
|
@@ -219,6 +219,8 @@ namespace TaleWorlds.Core
|
|
219
219
|
|
220
220
|
public extern ItemObject(ItemObject itemToCopy);
|
221
221
|
|
222
|
+
public static extern ItemObject InitializeTradeGood(ItemObject item, TextObject name, string meshName, ItemCategory category, int value, float weight, ItemTypeEnum itemType, bool isFood = false);
|
223
|
+
|
222
224
|
public static extern void InitAsPlayerCraftedItem(ref ItemObject itemObject);
|
223
225
|
|
224
226
|
public override extern int GetHashCode();
|
@@ -15,56 +15,14 @@ namespace TaleWorlds.Core
|
|
15
15
|
public EquipmentFlags EquipmentFlags { [CompilerGenerated]
|
16
16
|
get; }
|
17
17
|
|
18
|
-
public bool IsWandererEquipment { get; }
|
19
|
-
|
20
|
-
public bool IsGentryEquipment { get; }
|
21
|
-
|
22
|
-
public bool IsRebelHeroEquipment { get; }
|
23
|
-
|
24
|
-
public bool IsChildTemplate { get; }
|
25
|
-
|
26
|
-
public bool IsMediumNobleEquipmentTemplate { get; }
|
27
|
-
|
28
|
-
public bool IsHeavyNobleEquipmentTemplate { get; }
|
29
|
-
|
30
|
-
public bool IsFlamboyantNobleEquipmentTemplate { get; }
|
31
|
-
|
32
|
-
public bool IsStoicNobleEquipmentTemplate { get; }
|
33
|
-
|
34
|
-
public bool IsNomadNobleEquipmentTemplate { get; }
|
35
|
-
|
36
|
-
public bool IsWoodlandNobleEquipmentTemplate { get; }
|
37
|
-
|
38
|
-
public bool IsLadyNobleEquipmentTemplate { get; }
|
39
|
-
|
40
|
-
public bool IsCombatantCivilianEquipmentDefaultTemplate { get; }
|
41
|
-
|
42
|
-
public bool IsCombatantCivilianEquipmentStoicTemplate { get; }
|
43
|
-
|
44
|
-
public bool IsCombatantCivilianEquipmentFlamboyantTemplate { get; }
|
45
|
-
|
46
|
-
public bool IsCombatantCivilianEquipmentNomadTemplate { get; }
|
47
|
-
|
48
|
-
public bool IsCombatantCivilianEquipmentWoodlandTemplate { get; }
|
49
|
-
|
50
|
-
public bool IsNoncombatantFemaleEquipmentDefaultTemplate { get; }
|
51
|
-
|
52
|
-
public bool IsNoncombatantFemaleEquipmentFlamboyantTemplate { get; }
|
53
|
-
|
54
|
-
public bool IsNoncombatantFemaleEquipmentStoicTemplate { get; }
|
55
|
-
|
56
|
-
public bool IsNoncombatantFemaleEquipmentNomadTemplate { get; }
|
57
|
-
|
58
|
-
public bool IsNoncombatantFemaleEquipmentWoodlandTemplate { get; }
|
59
|
-
|
60
|
-
public bool IsFemaleChildTemplate { get; }
|
61
|
-
|
62
|
-
public bool IsEquipmentTemplate { get; }
|
63
|
-
|
64
18
|
public MBReadOnlyList<Equipment> AllEquipments { get; }
|
65
19
|
|
66
20
|
public Equipment DefaultEquipment { get; }
|
67
21
|
|
22
|
+
public extern bool HasEquipmentFlags(EquipmentFlags flags);
|
23
|
+
|
24
|
+
public extern bool IsEquipmentTemplate();
|
25
|
+
|
68
26
|
public extern MBEquipmentRoster();
|
69
27
|
|
70
28
|
public extern void Init(MBObjectManager objectManager, XmlNode node);
|
@@ -1,30 +1,14 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
|
1
3
|
namespace TaleWorlds.Core
|
2
4
|
{
|
3
5
|
public class MBFastRandom
|
4
6
|
{
|
5
|
-
|
6
|
-
|
7
|
-
public const uint DefaultSeedZ = 3579807591u;
|
8
|
-
|
9
|
-
public const uint DefaultSeedW = 273326509u;
|
10
|
-
|
11
|
-
public uint SeedX { get; }
|
12
|
-
|
13
|
-
public uint SeedY { get; }
|
14
|
-
|
15
|
-
public uint SeedZ { get; }
|
16
|
-
|
17
|
-
public uint SeedW { get; }
|
7
|
+
protected virtual extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
18
8
|
|
19
9
|
public extern MBFastRandom();
|
20
10
|
|
21
|
-
public extern MBFastRandom(
|
22
|
-
|
23
|
-
public extern MBFastRandom(uint seedX, uint seedY = 842502087u, uint seedZ = 3579807591u, uint seedW = 273326509u);
|
24
|
-
|
25
|
-
public extern void SetSeed(int seed);
|
26
|
-
|
27
|
-
public extern void SetSeed(uint seedX, uint seedY = 842502087u, uint seedZ = 3579807591u, uint seedW = 273326509u);
|
11
|
+
public extern MBFastRandom(uint seed1, uint seed2 = 842502087u, uint seed3 = 3579807591u, uint seed4 = 273326509u);
|
28
12
|
|
29
13
|
public extern int Next();
|
30
14
|
|
@@ -0,0 +1,75 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Localization;
|
4
|
+
|
5
|
+
namespace TaleWorlds.Core
|
6
|
+
{
|
7
|
+
public static class MBInformationManager
|
8
|
+
{
|
9
|
+
public static event Action<string, int, BasicCharacterObject, string> FiringQuickInformation
|
10
|
+
{
|
11
|
+
[CompilerGenerated]
|
12
|
+
add;
|
13
|
+
[CompilerGenerated]
|
14
|
+
remove;
|
15
|
+
}
|
16
|
+
|
17
|
+
public static event Action<MultiSelectionInquiryData, bool> OnShowMultiSelectionInquiry
|
18
|
+
{
|
19
|
+
[CompilerGenerated]
|
20
|
+
add;
|
21
|
+
[CompilerGenerated]
|
22
|
+
remove;
|
23
|
+
}
|
24
|
+
|
25
|
+
public static event Action<InformationData> OnAddMapNotice
|
26
|
+
{
|
27
|
+
[CompilerGenerated]
|
28
|
+
add;
|
29
|
+
[CompilerGenerated]
|
30
|
+
remove;
|
31
|
+
}
|
32
|
+
|
33
|
+
public static event Action<InformationData> OnRemoveMapNotice
|
34
|
+
{
|
35
|
+
[CompilerGenerated]
|
36
|
+
add;
|
37
|
+
[CompilerGenerated]
|
38
|
+
remove;
|
39
|
+
}
|
40
|
+
|
41
|
+
public static event Action<SceneNotificationData> OnShowSceneNotification
|
42
|
+
{
|
43
|
+
[CompilerGenerated]
|
44
|
+
add;
|
45
|
+
[CompilerGenerated]
|
46
|
+
remove;
|
47
|
+
}
|
48
|
+
|
49
|
+
public static event Action OnHideSceneNotification
|
50
|
+
{
|
51
|
+
[CompilerGenerated]
|
52
|
+
add;
|
53
|
+
[CompilerGenerated]
|
54
|
+
remove;
|
55
|
+
}
|
56
|
+
|
57
|
+
public static extern void AddQuickInformation(TextObject message, int priorty = 0, BasicCharacterObject announcerCharacter = null, string soundEventPath = "");
|
58
|
+
|
59
|
+
public static extern void ShowMultiSelectionInquiry(MultiSelectionInquiryData data, bool pauseGameActiveState = false);
|
60
|
+
|
61
|
+
public static extern void AddNotice(InformationData data);
|
62
|
+
|
63
|
+
public static extern void MapNoticeRemoved(InformationData data);
|
64
|
+
|
65
|
+
public static extern void ShowHint(string hint);
|
66
|
+
|
67
|
+
public static extern void HideInformations();
|
68
|
+
|
69
|
+
public static extern void ShowSceneNotification(SceneNotificationData data);
|
70
|
+
|
71
|
+
public static extern void HideSceneNotification();
|
72
|
+
|
73
|
+
public static extern void Clear();
|
74
|
+
}
|
75
|
+
}
|
@@ -1,10 +1,9 @@
|
|
1
|
-
using System;
|
2
1
|
using TaleWorlds.ObjectSystem;
|
3
2
|
|
4
3
|
namespace TaleWorlds.Core
|
5
4
|
{
|
6
5
|
public static class MBObjectManagerExtensions
|
7
6
|
{
|
8
|
-
public static extern void LoadXML(this MBObjectManager objectManager, string id,
|
7
|
+
public static extern void LoadXML(this MBObjectManager objectManager, string id, bool skipXmlFilterForEditor = false);
|
9
8
|
}
|
10
9
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
|
-
using TaleWorlds.Library;
|
3
2
|
|
4
3
|
namespace TaleWorlds.Core
|
5
4
|
{
|
@@ -7,15 +6,13 @@ namespace TaleWorlds.Core
|
|
7
6
|
{
|
8
7
|
public const int MaxSeed = 2000;
|
9
8
|
|
10
|
-
public static MBFastRandom Random { get; }
|
11
|
-
|
12
|
-
public static MBFastRandom DeterministicRandom { get; }
|
13
|
-
|
14
9
|
public static float RandomFloat { get; }
|
15
10
|
|
16
11
|
public static float RandomFloatNormal { get; }
|
17
12
|
|
18
|
-
public static
|
13
|
+
public static float NondeterministicRandomFloat { get; }
|
14
|
+
|
15
|
+
public static int NondeterministicRandomInt { get; }
|
19
16
|
|
20
17
|
public static extern float RandomFloatRanged(float maxVal);
|
21
18
|
|
@@ -27,12 +24,14 @@ namespace TaleWorlds.Core
|
|
27
24
|
|
28
25
|
public static extern int RandomInt(int minValue, int maxValue);
|
29
26
|
|
30
|
-
public static extern int DeterministicRandomInt(int maxValue);
|
31
|
-
|
32
27
|
public static extern int RoundRandomized(float f);
|
33
28
|
|
34
29
|
public static extern T ChooseWeighted<T>(List<(T, float)> weightList);
|
35
30
|
|
36
31
|
public static extern T ChooseWeighted<T>(List<(T, float)> weightList, out int chosenIndex);
|
32
|
+
|
33
|
+
public static extern int RandomIntWithSeed(uint seed1, uint seed4 = 273326509u, uint seed2 = 842502087u, uint seed3 = 3579807591u);
|
34
|
+
|
35
|
+
public static extern float RandomFloatWithSeed(uint seed1, uint seed4 = 273326509u, uint seed2 = 842502087u, uint seed3 = 3579807591u);
|
37
36
|
}
|
38
37
|
}
|
@@ -11,6 +11,8 @@ namespace TaleWorlds.Core
|
|
11
11
|
public static ApplicationVersion LastLoadedGameVersion { [CompilerGenerated]
|
12
12
|
get; }
|
13
13
|
|
14
|
+
public static bool IsUpdatingGameVersion { get; }
|
15
|
+
|
14
16
|
public static int NumberOfCurrentSaves { [CompilerGenerated]
|
15
17
|
get; }
|
16
18
|
|
@@ -26,11 +28,11 @@ namespace TaleWorlds.Core
|
|
26
28
|
|
27
29
|
public static extern SaveGameFileInfo GetSaveFileWithName(string saveName);
|
28
30
|
|
29
|
-
public static extern (SaveResult, string)
|
31
|
+
public static extern void QuickSaveCurrentGame(CampaignSaveMetaDataArgs campaignMetaData, Action<(SaveResult, string)> onSaveCompleted);
|
30
32
|
|
31
|
-
public static extern (SaveResult, string)
|
33
|
+
public static extern void AutoSaveCurrentGame(CampaignSaveMetaDataArgs campaignMetaData, Action<(SaveResult, string)> onSaveCompleted);
|
32
34
|
|
33
|
-
public static extern
|
35
|
+
public static extern void SaveAsCurrentGame(CampaignSaveMetaDataArgs campaignMetaData, string saveName, Action<(SaveResult, string)> onSaveCompleted);
|
34
36
|
|
35
37
|
public static extern bool DeleteSaveGame(string saveName);
|
36
38
|
|
@@ -10,6 +10,9 @@ namespace TaleWorlds.Core
|
|
10
10
|
{
|
11
11
|
public static Func<string, string, sbyte> GetBoneIndexWithId;
|
12
12
|
|
13
|
+
public string BaseMonster { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
13
16
|
public float BodyCapsuleRadius { [CompilerGenerated]
|
14
17
|
get; }
|
15
18
|
|
@@ -121,6 +124,12 @@ namespace TaleWorlds.Core
|
|
121
124
|
public sbyte RiderSitBoneIndex { [CompilerGenerated]
|
122
125
|
get; }
|
123
126
|
|
127
|
+
public string ReinSkeleton { [CompilerGenerated]
|
128
|
+
get; }
|
129
|
+
|
130
|
+
public string ReinCollisionBody { [CompilerGenerated]
|
131
|
+
get; }
|
132
|
+
|
124
133
|
public sbyte ReinHandleBoneIndex { [CompilerGenerated]
|
125
134
|
get; }
|
126
135
|
|
@@ -130,6 +139,21 @@ namespace TaleWorlds.Core
|
|
130
139
|
public sbyte ReinCollision2BoneIndex { [CompilerGenerated]
|
131
140
|
get; }
|
132
141
|
|
142
|
+
public sbyte ReinBoneIndexHead { [CompilerGenerated]
|
143
|
+
get; }
|
144
|
+
|
145
|
+
public sbyte ReinBoneIndexHeadRightAttachment { [CompilerGenerated]
|
146
|
+
get; }
|
147
|
+
|
148
|
+
public sbyte ReinBoneIndexHeadLeftAttachment { [CompilerGenerated]
|
149
|
+
get; }
|
150
|
+
|
151
|
+
public sbyte ReinBoneIndexRightHand { [CompilerGenerated]
|
152
|
+
get; }
|
153
|
+
|
154
|
+
public sbyte ReinBoneIndexLeftHand { [CompilerGenerated]
|
155
|
+
get; }
|
156
|
+
|
133
157
|
public sbyte HeadLookDirectionBoneIndex { [CompilerGenerated]
|
134
158
|
get; }
|
135
159
|
|
@@ -1,11 +1,15 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using System.Xml;
|
3
3
|
using TaleWorlds.ObjectSystem;
|
4
|
+
using TaleWorlds.SaveSystem;
|
4
5
|
|
5
6
|
namespace TaleWorlds.Core
|
6
7
|
{
|
7
8
|
public class PropertyOwner<T> : MBObjectBase where T : MBObjectBase
|
8
9
|
{
|
10
|
+
[SaveableField(10)]
|
11
|
+
protected readonly Dictionary<T, int> _attributes;
|
12
|
+
|
9
13
|
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
10
14
|
|
11
15
|
public extern PropertyOwner();
|
@@ -1,35 +1,94 @@
|
|
1
|
-
using System;
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Localization;
|
2
4
|
|
3
5
|
namespace TaleWorlds.Core
|
4
6
|
{
|
5
7
|
public class SceneNotificationData
|
6
8
|
{
|
7
|
-
public
|
9
|
+
public readonly struct SceneNotificationCharacter
|
10
|
+
{
|
11
|
+
public readonly BasicCharacterObject Character;
|
8
12
|
|
9
|
-
|
13
|
+
public readonly Equipment OverriddenEquipment;
|
10
14
|
|
11
|
-
|
15
|
+
public readonly BodyProperties OverriddenBodyProperties;
|
12
16
|
|
13
|
-
|
17
|
+
public readonly bool UseCivilianEquipment;
|
14
18
|
|
15
|
-
|
19
|
+
public readonly bool UseHorse;
|
16
20
|
|
17
|
-
|
21
|
+
public readonly uint CustomColor1;
|
18
22
|
|
19
|
-
|
23
|
+
public readonly uint CustomColor2;
|
20
24
|
|
21
|
-
|
25
|
+
public extern SceneNotificationCharacter(BasicCharacterObject character, Equipment overriddenEquipment = null, BodyProperties overriddenBodyProperties = default(BodyProperties), bool useCivilianEquipment = false, uint customColor1 = uint.MaxValue, uint customColor2 = uint.MaxValue, bool useHorse = false);
|
26
|
+
}
|
22
27
|
|
23
|
-
public
|
28
|
+
public enum RelevantContextType
|
29
|
+
{
|
30
|
+
Any,
|
31
|
+
MPLobby,
|
32
|
+
CustomBattle,
|
33
|
+
Mission,
|
34
|
+
Map
|
35
|
+
}
|
24
36
|
|
25
|
-
public
|
37
|
+
public virtual string SceneID { [CompilerGenerated]
|
38
|
+
get; }
|
26
39
|
|
27
|
-
public
|
40
|
+
public virtual string SoundEventPath { [CompilerGenerated]
|
41
|
+
get; }
|
28
42
|
|
29
|
-
public
|
43
|
+
public virtual TextObject TitleText { [CompilerGenerated]
|
44
|
+
get; }
|
30
45
|
|
31
|
-
public
|
46
|
+
public virtual TextObject AffirmativeDescriptionText { [CompilerGenerated]
|
47
|
+
get; }
|
32
48
|
|
33
|
-
public
|
49
|
+
public virtual TextObject NegativeDescriptionText { [CompilerGenerated]
|
50
|
+
get; }
|
51
|
+
|
52
|
+
public virtual TextObject AffirmativeHintText { [CompilerGenerated]
|
53
|
+
get; }
|
54
|
+
|
55
|
+
public virtual TextObject AffirmativeHintTextExtended { [CompilerGenerated]
|
56
|
+
get; }
|
57
|
+
|
58
|
+
public virtual TextObject AffirmativeTitleText { [CompilerGenerated]
|
59
|
+
get; }
|
60
|
+
|
61
|
+
public virtual TextObject NegativeTitleText { [CompilerGenerated]
|
62
|
+
get; }
|
63
|
+
|
64
|
+
public virtual TextObject AffirmativeText { [CompilerGenerated]
|
65
|
+
get; }
|
66
|
+
|
67
|
+
public virtual TextObject NegativeText { [CompilerGenerated]
|
68
|
+
get; }
|
69
|
+
|
70
|
+
public virtual bool IsAffirmativeOptionShown { [CompilerGenerated]
|
71
|
+
get; }
|
72
|
+
|
73
|
+
public virtual bool IsNegativeOptionShown { [CompilerGenerated]
|
74
|
+
get; }
|
75
|
+
|
76
|
+
public virtual bool PauseActiveState { [CompilerGenerated]
|
77
|
+
get; }
|
78
|
+
|
79
|
+
public virtual RelevantContextType RelevantContext { [CompilerGenerated]
|
80
|
+
get; }
|
81
|
+
|
82
|
+
public virtual extern void OnAffirmativeAction();
|
83
|
+
|
84
|
+
public virtual extern void OnNegativeAction();
|
85
|
+
|
86
|
+
public virtual extern void OnCloseAction();
|
87
|
+
|
88
|
+
public virtual extern IEnumerable<Banner> GetBanners();
|
89
|
+
|
90
|
+
public virtual extern IEnumerable<SceneNotificationCharacter> GetSceneNotificationCharacters();
|
91
|
+
|
92
|
+
public extern SceneNotificationData();
|
34
93
|
}
|
35
94
|
}
|
@@ -23,6 +23,29 @@ namespace TaleWorlds.Core
|
|
23
23
|
public int this[int index] { get; set; }
|
24
24
|
}
|
25
25
|
|
26
|
+
public struct StackArray5Bool
|
27
|
+
{
|
28
|
+
public const int Length = 5;
|
29
|
+
|
30
|
+
public bool this[int index] { get; set; }
|
31
|
+
}
|
32
|
+
|
33
|
+
public struct StackArray6Bool
|
34
|
+
{
|
35
|
+
public const int Length = 6;
|
36
|
+
|
37
|
+
public bool this[int index] { get; set; }
|
38
|
+
}
|
39
|
+
|
40
|
+
public struct StackArray32Bool
|
41
|
+
{
|
42
|
+
public const int Length = 32;
|
43
|
+
|
44
|
+
public bool this[int index] { get; set; }
|
45
|
+
|
46
|
+
public extern StackArray32Bool(int init);
|
47
|
+
}
|
48
|
+
|
26
49
|
public extern StackArray();
|
27
50
|
}
|
28
51
|
}
|
@@ -2,14 +2,16 @@ namespace TaleWorlds.Core
|
|
2
2
|
{
|
3
3
|
public abstract class StrikeMagnitudeCalculationModel : GameModel
|
4
4
|
{
|
5
|
-
public abstract float CalculateStrikeMagnitudeForSwing(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float swingSpeed, float impactPointAsPercent, float weaponWeight, float weaponLength, float weaponInertia, float weaponCoM, float extraLinearSpeed, bool doesAttackerHaveMount
|
5
|
+
public abstract float CalculateStrikeMagnitudeForSwing(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float swingSpeed, float impactPointAsPercent, float weaponWeight, WeaponComponentData weaponUsageComponent, float weaponLength, float weaponInertia, float weaponCoM, float extraLinearSpeed, bool doesAttackerHaveMount);
|
6
6
|
|
7
|
-
public abstract float CalculateStrikeMagnitudeForThrust(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float thrustWeaponSpeed, float weaponWeight, float extraLinearSpeed, bool doesAtttackerHaveMount,
|
7
|
+
public abstract float CalculateStrikeMagnitudeForThrust(BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, float thrustWeaponSpeed, float weaponWeight, WeaponComponentData weaponUsageComponent, float extraLinearSpeed, bool doesAtttackerHaveMount, bool isThrown = false);
|
8
8
|
|
9
9
|
public abstract float CalculateSpeedBonusMultiplierForMissile(BasicCharacterObject attackerCharacter, WeaponClass ammoClass);
|
10
10
|
|
11
11
|
public abstract float ComputeRawDamage(DamageTypes damageType, float magnitude, float armorEffectiveness, float absorbedDamageRatio);
|
12
12
|
|
13
|
+
public abstract float GetBluntDamageFactorByDamageType(DamageTypes damageType);
|
14
|
+
|
13
15
|
public abstract float CalculateHorseArcheryFactor(BasicCharacterObject characterObject);
|
14
16
|
|
15
17
|
public virtual extern float CalculateAdjustedArmorForBlow(float baseArmor, BasicCharacterObject attackerCharacter, BasicCharacterObject attackerCaptainCharacter, BasicCharacterObject victimCharacter, BasicCharacterObject victimCaptainCharacter, WeaponComponentData weaponComponent);
|
@@ -1,33 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
|
3
|
-
namespace TaleWorlds.Core
|
4
|
-
{
|
5
|
-
public class TextInquiryData
|
6
|
-
{
|
7
|
-
public string TitleText;
|
8
|
-
|
9
|
-
public string Text;
|
10
|
-
|
11
|
-
public readonly bool IsAffirmativeOptionShown;
|
12
|
-
|
13
|
-
public readonly bool IsNegativeOptionShown;
|
14
|
-
|
15
|
-
public readonly bool IsInputObfuscated;
|
16
|
-
|
17
|
-
public readonly string AffirmativeText;
|
18
|
-
|
19
|
-
public readonly string NegativeText;
|
20
|
-
|
21
|
-
public readonly string SoundEventPath;
|
22
|
-
|
23
|
-
public readonly string DefaultInputText;
|
24
|
-
|
25
|
-
public readonly Action<string> AffirmativeAction;
|
26
|
-
|
27
|
-
public readonly Action NegativeAction;
|
28
|
-
|
29
|
-
public readonly Func<string, Tuple<bool, string>> TextCondition;
|
30
|
-
|
31
|
-
public extern TextInquiryData(string titleText, string text, bool isAffirmativeOptionShown, bool isNegativeOptionShown, string affirmativeText, string negativeText, Action<string> affirmativeAction, Action negativeAction, bool shouldInputBeObfuscated = false, Func<string, Tuple<bool, string>> textCondition = null, string soundEventPath = "", string defaultInputText = "");
|
32
|
-
}
|
33
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.Core
|
2
|
-
{
|
3
|
-
public static class TroopSupplierProbabilityHelper
|
4
|
-
{
|
5
|
-
public static extern float GetProbabilityForTroopAndUpdateStructures(IBattleCombatant battleCombatant, BasicCharacterObject character, int troopCountTotal, UnitSpawnPrioritizations unitSpawnPrioritization, ref float heroProbability, ref int[] troopCountByFormationType, ref int[] enqueuedTroopCountByFormationType);
|
6
|
-
}
|
7
|
-
}
|
@@ -19,6 +19,10 @@ namespace TaleWorlds.Core
|
|
19
19
|
get; [CompilerGenerated]
|
20
20
|
set; }
|
21
21
|
|
22
|
+
public int Race { [CompilerGenerated]
|
23
|
+
get; [CompilerGenerated]
|
24
|
+
set; }
|
25
|
+
|
22
26
|
public bool IsFemale { [CompilerGenerated]
|
23
27
|
get; [CompilerGenerated]
|
24
28
|
set; }
|
@@ -43,7 +47,7 @@ namespace TaleWorlds.Core
|
|
43
47
|
|
44
48
|
public static extern void Reset();
|
45
49
|
|
46
|
-
public extern VirtualPlayer(int index, string name, ICommunicator communicator);
|
50
|
+
public extern VirtualPlayer(int index, string name, PlayerId playerID, ICommunicator communicator);
|
47
51
|
|
48
52
|
public extern T AddComponent<T>() where T : PeerComponent, new();
|
49
53
|
|
@@ -22,7 +22,8 @@ namespace TaleWorlds.Core
|
|
22
22
|
get; }
|
23
23
|
|
24
24
|
public bool IsHiddenFromUI { [CompilerGenerated]
|
25
|
-
get;
|
25
|
+
get; [CompilerGenerated]
|
26
|
+
set; }
|
26
27
|
|
27
28
|
public IReadOnlyList<CraftingPiece> AvailablePieces { get; }
|
28
29
|
|
@@ -31,16 +31,17 @@ namespace TaleWorlds.Core
|
|
31
31
|
NoBlood = 0x400000uL,
|
32
32
|
PenaltyWithShield = 0x800000uL,
|
33
33
|
CanDismount = 0x1000000uL,
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
CanHook = 0x2000000uL,
|
35
|
+
CanKnockDown = 0x4000000uL,
|
36
|
+
CanCrushThrough = 0x8000000uL,
|
37
37
|
CanBlockRanged = 0x10000000uL,
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
38
|
+
MissileWithPhysics = 0x20000000uL,
|
39
|
+
MultiplePenetration = 0x40000000uL,
|
40
|
+
LeavesTrail = 0x80000000uL,
|
41
|
+
UseHandAsThrowBase = 0x100000000uL,
|
42
|
+
AmmoBreaksOnBounceBack = 0x1000000000uL,
|
43
|
+
AmmoCanBreakOnBounceBack = 0x2000000000uL,
|
44
|
+
AmmoBreakOnBounceBackMask = 0x3000000000uL,
|
45
|
+
AmmoSticksWhenShot = 0x4000000000uL
|
45
46
|
}
|
46
47
|
}
|