@@ -20,7 +20,7 @@ namespace SandBox
|
|
20
20
|
|
21
21
|
public readonly Agent OwnerAgent;
|
22
22
|
|
23
|
-
public UsableMachine
|
23
|
+
public UsableMachine TargetUsableMachine { [CompilerGenerated]
|
24
24
|
get; }
|
25
25
|
|
26
26
|
public WorldPosition TargetPosition { [CompilerGenerated]
|
@@ -87,8 +87,14 @@ namespace SandBox
|
|
87
87
|
|
88
88
|
public extern T GetBehaviorGroup<T>() where T : AgentBehaviorGroup;
|
89
89
|
|
90
|
+
public extern AgentBehavior GetBehavior<T>() where T : AgentBehavior;
|
91
|
+
|
92
|
+
public extern bool HasBehaviorGroup<T>();
|
93
|
+
|
90
94
|
public extern void RemoveBehaviorGroup<T>() where T : AgentBehaviorGroup;
|
91
95
|
|
96
|
+
public extern void RefreshBehaviorGroups(bool isSimulation);
|
97
|
+
|
92
98
|
public extern AgentBehavior GetActiveBehavior();
|
93
99
|
|
94
100
|
public extern AgentBehaviorGroup GetActiveBehaviorGroup();
|
@@ -50,8 +50,6 @@ namespace SandBox
|
|
50
50
|
|
51
51
|
extern IMission ICampaignMissionManager.OpenMeetingMission(string scene, CharacterObject character);
|
52
52
|
|
53
|
-
extern IMission ICampaignMissionManager.OpenSneakIntoTownFightMission(string scene, Location location, int townUpgradeLevel);
|
54
|
-
|
55
53
|
extern IMission ICampaignMissionManager.OpenSneakMission(string scene);
|
56
54
|
|
57
55
|
extern IMission ICampaignMissionManager.OpenEquipmentTestMission(string scene);
|
@@ -20,6 +20,8 @@ namespace SandBox
|
|
20
20
|
|
21
21
|
public extern List<AtmosphereState> GetAtmosphereStates();
|
22
22
|
|
23
|
+
public extern void ValidateAgentVisualsReseted();
|
24
|
+
|
23
25
|
public extern void SetAtmosphereColorgrade(TerrainType terrainType);
|
24
26
|
|
25
27
|
public extern void AddNewEntityToMapScene(string entityId, Vec2 position);
|
@@ -8,8 +8,6 @@ namespace SandBox
|
|
8
8
|
{
|
9
9
|
public extern SandBoxGameManager();
|
10
10
|
|
11
|
-
public extern SandBoxGameManager(int seed);
|
12
|
-
|
13
11
|
public extern SandBoxGameManager(LoadResult loadedGameResult);
|
14
12
|
|
15
13
|
public override extern void OnGameEnd(Game game);
|
@@ -32,9 +32,6 @@ namespace SandBox
|
|
32
32
|
[MissionMethod]
|
33
33
|
public static extern Mission OpenTownAmbushMission(string scene, Location location);
|
34
34
|
|
35
|
-
[MissionMethod]
|
36
|
-
public static extern Mission OpenTownNightStealthMission(string scene, Location location, string sceneLevels = "");
|
37
|
-
|
38
35
|
[MissionMethod]
|
39
36
|
public static extern Mission OpenIndoorMission(string scene, int townUpgradeLevel, Location location, CharacterObject talkToChar);
|
40
37
|
|
@@ -59,9 +56,6 @@ namespace SandBox
|
|
59
56
|
[MissionMethod]
|
60
57
|
public static extern Mission OpenSneakTeam3Mission(string scene);
|
61
58
|
|
62
|
-
[MissionMethod]
|
63
|
-
public static extern Mission OpenSneakIntoTownFightMission(string scene, Location location, int townUpgradeLevel);
|
64
|
-
|
65
59
|
[MissionMethod]
|
66
60
|
public static extern Mission OpenBattleMission(MissionInitializerRecord rec);
|
67
61
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System;
|
2
|
+
using System.Runtime.CompilerServices;
|
2
3
|
using TaleWorlds.SaveSystem;
|
3
4
|
using TaleWorlds.SaveSystem.Load;
|
4
5
|
|
@@ -6,6 +7,21 @@ namespace SandBox
|
|
6
7
|
{
|
7
8
|
public static class SandBoxSaveHelper
|
8
9
|
{
|
10
|
+
public enum SaveHelperState
|
11
|
+
{
|
12
|
+
Start,
|
13
|
+
Inquiry,
|
14
|
+
LoadGame
|
15
|
+
}
|
16
|
+
|
17
|
+
public static event Action<SaveHelperState> OnStateChange
|
18
|
+
{
|
19
|
+
[CompilerGenerated]
|
20
|
+
add;
|
21
|
+
[CompilerGenerated]
|
22
|
+
remove;
|
23
|
+
}
|
24
|
+
|
9
25
|
public static extern void TryLoadSave(SaveGameFileInfo saveInfo, Action<LoadResult> onStartGame, Action onCancel = null);
|
10
26
|
}
|
11
27
|
}
|
@@ -19,11 +19,7 @@ namespace SandBox.BoardGames.MissionLogics
|
|
19
19
|
public BoardGameAIBase AIOpponent { [CompilerGenerated]
|
20
20
|
get; }
|
21
21
|
|
22
|
-
public
|
23
|
-
get; }
|
24
|
-
|
25
|
-
public bool IsOpposingAgentMovingToPlayingChair { [CompilerGenerated]
|
26
|
-
get; }
|
22
|
+
public bool IsOpposingAgentMovingToPlayingChair { get; }
|
27
23
|
|
28
24
|
public bool IsGameInProgress { [CompilerGenerated]
|
29
25
|
get; }
|
@@ -69,8 +65,6 @@ namespace SandBox.BoardGames.MissionLogics
|
|
69
65
|
|
70
66
|
public extern void DetectOpposingAgent();
|
71
67
|
|
72
|
-
public extern void ClearMoveTargetOfNPC();
|
73
|
-
|
74
68
|
public extern bool CheckIfBothSidesAreSitting();
|
75
69
|
|
76
70
|
public extern void PlayerOneWon(string message = "str_boardgame_victory_message");
|
@@ -97,6 +91,10 @@ namespace SandBox.BoardGames.MissionLogics
|
|
97
91
|
|
98
92
|
public override extern InquiryData OnEndMissionRequest(out bool canLeave);
|
99
93
|
|
94
|
+
public static extern bool IsBoardGameAvailable();
|
95
|
+
|
96
|
+
public static extern bool IsThereActiveBoardGameWithHero(Hero hero);
|
97
|
+
|
100
98
|
public extern MissionBoardGameLogic();
|
101
99
|
}
|
102
100
|
}
|
@@ -40,8 +40,6 @@ namespace SandBox.CampaignBehaviors
|
|
40
40
|
|
41
41
|
public extern void HourlyTickSettlement(Settlement settlement);
|
42
42
|
|
43
|
-
public extern void DailyTickSettlement(Settlement settlement);
|
44
|
-
|
45
43
|
public extern void WeeklyTick();
|
46
44
|
|
47
45
|
public extern CommonAreaCampaignBehavior();
|
@@ -27,17 +27,15 @@ namespace SandBox.CampaignBehaviors
|
|
27
27
|
|
28
28
|
public override extern void SyncData(IDataStore dataStore);
|
29
29
|
|
30
|
-
public static extern string
|
30
|
+
public static extern string GetActionSetSuffixAndMonsterForItem(string itemId, int race, bool isFemale, out Monster monster);
|
31
31
|
|
32
|
-
public static extern string
|
32
|
+
public static extern Tuple<string, Monster> GetRandomTownsManActionSetAndMonster(int race);
|
33
33
|
|
34
|
-
public static extern Tuple<string, Monster>
|
35
|
-
|
36
|
-
public static extern Tuple<string, Monster> GetRandomTownsWomanActionSetAndMonster();
|
34
|
+
public static extern Tuple<string, Monster> GetRandomTownsWomanActionSetAndMonster(int race);
|
37
35
|
|
38
36
|
public static extern LocationCharacter CreateBroomsWoman(CultureObject culture, CharacterRelations relation);
|
39
37
|
|
40
|
-
public static extern LocationCharacter
|
38
|
+
public static extern LocationCharacter CreateMaleBeggar(CultureObject culture, CharacterRelations relation);
|
41
39
|
|
42
40
|
public static extern LocationCharacter CreateFemaleBeggar(CultureObject culture, CharacterRelations relation);
|
43
41
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
using TaleWorlds.CampaignSystem;
|
2
|
+
|
3
|
+
namespace SandBox.CampaignBehaviors
|
4
|
+
{
|
5
|
+
public class DefaultCutscenesCampaignBehavior : CampaignBehaviorBase
|
6
|
+
{
|
7
|
+
public override extern void RegisterEvents();
|
8
|
+
|
9
|
+
public override extern void SyncData(IDataStore dataStore);
|
10
|
+
|
11
|
+
public extern DefaultCutscenesCampaignBehavior();
|
12
|
+
}
|
13
|
+
}
|
@@ -5,7 +5,7 @@ namespace SandBox.CampaignBehaviors
|
|
5
5
|
{
|
6
6
|
public class GuardsCampaignBehavior : CampaignBehaviorBase
|
7
7
|
{
|
8
|
-
public const float
|
8
|
+
public const float UnarmedTownGuardSpawnRate = 0.4f;
|
9
9
|
|
10
10
|
public override extern void RegisterEvents();
|
11
11
|
|
@@ -335,6 +335,8 @@ namespace SandBox.CampaignBehaviors
|
|
335
335
|
|
336
336
|
public extern void conversation_lord_talk_ask_location_2_on_consequence();
|
337
337
|
|
338
|
+
public static extern List<Hero> GetLastKnownLocations(Hero hero);
|
339
|
+
|
338
340
|
public extern LordConversationsCampaignBehavior();
|
339
341
|
}
|
340
342
|
}
|
@@ -6,23 +6,33 @@ namespace SandBox.GameComponents
|
|
6
6
|
{
|
7
7
|
public class SandboxAgentApplyDamageModel : AgentApplyDamageModel
|
8
8
|
{
|
9
|
-
public override extern float CalculateDamage(
|
9
|
+
public override extern float CalculateDamage(in AttackInformation attackInformation, in AttackCollisionData collisionData, in MissionWeapon weapon, float baseDamage);
|
10
10
|
|
11
11
|
public override extern bool DecideCrushedThrough(Agent attackerAgent, Agent defenderAgent, float totalAttackEnergy, UsageDirection attackDirection, StrikeType strikeType, WeaponComponentData defendItem, bool isPassiveUsage);
|
12
12
|
|
13
13
|
public override extern void DecideMissileWeaponFlags(Agent attackerAgent, MissionWeapon missileWeapon, ref WeaponFlags missileWeaponFlags);
|
14
14
|
|
15
|
-
public override extern
|
15
|
+
public override extern void CalculateCollisionStunMultipliers(Agent attackerAgent, Agent defenderAgent, bool isAlternativeAttack, CombatCollisionResult collisionResult, WeaponComponentData attackerWeapon, WeaponComponentData defenderWeapon, out float attackerStunMultiplier, out float defenderStunMultiplier);
|
16
|
+
|
17
|
+
public override extern bool CanWeaponIgnoreFriendlyFireChecks(WeaponComponentData weapon);
|
16
18
|
|
17
|
-
public override extern
|
19
|
+
public override extern bool CanWeaponDismount(Agent attackerAgent, WeaponComponentData attackerWeapon, in Blow blow, in AttackCollisionData collisionData);
|
18
20
|
|
19
|
-
public override extern
|
21
|
+
public override extern bool CanWeaponKnockback(Agent attackerAgent, WeaponComponentData attackerWeapon, in Blow blow, in AttackCollisionData collisionData);
|
20
22
|
|
21
|
-
public override extern
|
23
|
+
public override extern bool CanWeaponKnockDown(Agent attackerAgent, Agent victimAgent, WeaponComponentData attackerWeapon, in Blow blow, in AttackCollisionData collisionData);
|
24
|
+
|
25
|
+
public override extern float GetDismountPenetration(Agent attackerAgent, WeaponComponentData attackerWeapon, in Blow blow, in AttackCollisionData collisionData);
|
26
|
+
|
27
|
+
public override extern float GetKnockBackPenetration(Agent attackerAgent, WeaponComponentData attackerWeapon, in Blow blow, in AttackCollisionData collisionData);
|
28
|
+
|
29
|
+
public override extern float GetKnockDownPenetration(Agent attackerAgent, WeaponComponentData attackerWeapon, in Blow blow, in AttackCollisionData collisionData);
|
30
|
+
|
31
|
+
public override extern float GetHorseChargePenetration();
|
22
32
|
|
23
33
|
public override extern float CalculateStaggerThresholdMultiplier(Agent defenderAgent);
|
24
34
|
|
25
|
-
public override extern float CalculatePassiveAttackDamage(BasicCharacterObject attackerCharacter,
|
35
|
+
public override extern float CalculatePassiveAttackDamage(BasicCharacterObject attackerCharacter, in AttackCollisionData collisionData, float baseDamage);
|
26
36
|
|
27
37
|
public override extern MeleeCollisionReaction DecidePassiveAttackCollisionReaction(Agent attacker, Agent defender, bool isFatalHit);
|
28
38
|
|
@@ -30,7 +40,15 @@ namespace SandBox.GameComponents
|
|
30
40
|
|
31
41
|
public override extern float GetDamageMultiplierForBodyPart(BoneBodyPartType bodyPart, DamageTypes type, bool isHuman);
|
32
42
|
|
33
|
-
public override extern bool
|
43
|
+
public override extern bool DecideAgentShrugOffBlow(Agent victimAgent, AttackCollisionData collisionData, in Blow blow);
|
44
|
+
|
45
|
+
public override extern bool DecideAgentDismountedByBlow(Agent attackerAgent, Agent victimAgent, in AttackCollisionData collisionData, WeaponComponentData attackerWeapon, in Blow blow);
|
46
|
+
|
47
|
+
public override extern bool DecideAgentKnockedBackByBlow(Agent attackerAgent, Agent victimAgent, in AttackCollisionData collisionData, WeaponComponentData attackerWeapon, in Blow blow);
|
48
|
+
|
49
|
+
public override extern bool DecideAgentKnockedDownByBlow(Agent attackerAgent, Agent victimAgent, in AttackCollisionData collisionData, WeaponComponentData attackerWeapon, in Blow blow);
|
50
|
+
|
51
|
+
public override extern bool DecideMountRearedByBlow(Agent attackerAgent, Agent victimAgent, in AttackCollisionData collisionData, WeaponComponentData attackerWeapon, in Blow blow);
|
34
52
|
|
35
53
|
public extern SandboxAgentApplyDamageModel();
|
36
54
|
}
|
@@ -4,10 +4,10 @@ using TaleWorlds.MountAndBlade.ComponentInterfaces;
|
|
4
4
|
|
5
5
|
namespace SandBox.GameComponents
|
6
6
|
{
|
7
|
-
public class
|
7
|
+
public class SandboxAgentDecideKilledOrUnconsciousModel : AgentDecideKilledOrUnconsciousModel
|
8
8
|
{
|
9
9
|
public override extern float GetAgentStateProbability(Agent affectorAgent, Agent effectedAgent, DamageTypes damageType, out float useSurgeryProbability);
|
10
10
|
|
11
|
-
public extern
|
11
|
+
public extern SandboxAgentDecideKilledOrUnconsciousModel();
|
12
12
|
}
|
13
13
|
}
|
@@ -20,6 +20,14 @@ namespace SandBox.GameComponents
|
|
20
20
|
|
21
21
|
public override extern int GetEffectiveSkill(BasicCharacterObject agentCharacter, IAgentOriginBase agentOrigin, Formation agentFormation, SkillObject skill);
|
22
22
|
|
23
|
+
public override extern float GetWeaponDamageMultiplier(BasicCharacterObject agentCharacter, IAgentOriginBase agentOrigin, Formation agentFormation, WeaponComponentData weapon);
|
24
|
+
|
25
|
+
public override extern float GetKnockBackResistance(Agent agent);
|
26
|
+
|
27
|
+
public override extern float GetKnockDownResistance(Agent agent, StrikeType strikeType = -1);
|
28
|
+
|
29
|
+
public override extern float GetDismountResistance(Agent agent);
|
30
|
+
|
23
31
|
public override extern float GetWeaponInaccuracy(Agent agent, WeaponComponentData weapon, int weaponSkill);
|
24
32
|
|
25
33
|
public override extern float GetInteractionDistance(Agent agent);
|
@@ -26,7 +26,7 @@ namespace SandBox.Issues
|
|
26
26
|
{
|
27
27
|
public extern FamilyFeudIssueMissionBehavior(Action<Agent, int> agentHitAction);
|
28
28
|
|
29
|
-
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent,
|
29
|
+
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent, in MissionWeapon affectorWeapon, in Blow blow, in AttackCollisionData attackCollisionData);
|
30
30
|
}
|
31
31
|
|
32
32
|
public class FamilyFeudIssue : IssueBase
|
@@ -116,7 +116,7 @@ namespace SandBox.Issues
|
|
116
116
|
|
117
117
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
118
118
|
|
119
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
119
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
120
120
|
|
121
121
|
protected override extern void LordSolutionConsequenceWithAcceptCounterOffer();
|
122
122
|
|
@@ -132,6 +132,8 @@ namespace SandBox.Issues
|
|
132
132
|
|
133
133
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
134
134
|
|
135
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
136
|
+
|
135
137
|
protected override extern void AfterIssueCreation();
|
136
138
|
|
137
139
|
protected override extern void OnGameLoad();
|
@@ -175,7 +177,7 @@ namespace SandBox.Issues
|
|
175
177
|
|
176
178
|
public extern void OnMissionStarted(IMission iMission);
|
177
179
|
|
178
|
-
public extern void
|
180
|
+
public extern void OnDailyTick();
|
179
181
|
|
180
182
|
public extern void OnSettlementLeft(MobileParty party, Settlement settlement);
|
181
183
|
|
@@ -64,13 +64,15 @@ namespace SandBox.Issues
|
|
64
64
|
|
65
65
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
66
66
|
|
67
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
68
|
+
|
67
69
|
protected override extern void OnGameLoad();
|
68
70
|
|
69
71
|
protected override extern QuestBase GenerateIssueQuest(string questId);
|
70
72
|
|
71
73
|
public override extern IssueFrequency GetFrequency();
|
72
74
|
|
73
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
75
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
74
76
|
|
75
77
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
76
78
|
|
@@ -64,7 +64,7 @@ namespace SandBox.Issues
|
|
64
64
|
|
65
65
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
66
66
|
|
67
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
67
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
68
68
|
|
69
69
|
protected override extern void OnGameLoad();
|
70
70
|
|
@@ -86,6 +86,8 @@ namespace SandBox.Issues
|
|
86
86
|
|
87
87
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
88
88
|
|
89
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
90
|
+
|
89
91
|
protected override extern void OnIssueFinalized();
|
90
92
|
|
91
93
|
protected override extern void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects);
|
@@ -73,7 +73,9 @@ namespace SandBox.Issues
|
|
73
73
|
|
74
74
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
75
75
|
|
76
|
-
|
76
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
77
|
+
|
78
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
77
79
|
|
78
80
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
79
81
|
|
@@ -110,8 +112,6 @@ namespace SandBox.Issues
|
|
110
112
|
|
111
113
|
public override extern void OnHeroCanDieInfoIsRequested(Hero hero, KillCharacterActionDetail causeOfDeath, ref bool result);
|
112
114
|
|
113
|
-
public extern void AddGameMenus();
|
114
|
-
|
115
115
|
protected override extern void RegisterEvents();
|
116
116
|
|
117
117
|
public override extern void OnHeroCanHaveQuestOrIssueInfoIsRequested(Hero hero, ref bool result);
|
@@ -61,12 +61,14 @@ namespace SandBox.Issues
|
|
61
61
|
|
62
62
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
63
63
|
|
64
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
64
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
65
65
|
|
66
66
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
67
67
|
|
68
68
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
69
69
|
|
70
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
71
|
+
|
70
72
|
public override extern bool DoTroopsSatisfyAlternativeSolution(TroopRoster troopRoster, out TextObject explanation);
|
71
73
|
|
72
74
|
public override extern IssueFrequency GetFrequency();
|
@@ -86,6 +88,8 @@ namespace SandBox.Issues
|
|
86
88
|
|
87
89
|
public class RuralNotableInnAndOutIssueQuest : QuestBase
|
88
90
|
{
|
91
|
+
public const int LesserReward = 800;
|
92
|
+
|
89
93
|
public override TextObject Title { get; }
|
90
94
|
|
91
95
|
public override bool IsRemainingTimeHidden { get; }
|
@@ -3,6 +3,7 @@ using TaleWorlds.CampaignSystem;
|
|
3
3
|
using TaleWorlds.CampaignSystem.Issues;
|
4
4
|
using TaleWorlds.CampaignSystem.Roster;
|
5
5
|
using TaleWorlds.CampaignSystem.Settlements;
|
6
|
+
using TaleWorlds.CampaignSystem.Settlements.Locations;
|
6
7
|
using TaleWorlds.Core;
|
7
8
|
using TaleWorlds.Localization;
|
8
9
|
using TaleWorlds.SaveSystem;
|
@@ -86,7 +87,7 @@ namespace SandBox.Issues
|
|
86
87
|
|
87
88
|
protected override extern Dictionary<IssueEffect, float> GetIssueEffectsAndAmountInternal();
|
88
89
|
|
89
|
-
public override extern List<SkillObject> GetAlternativeSolutionRequiredCompanionSkill(
|
90
|
+
public override extern List<(SkillObject, int)> GetAlternativeSolutionRequiredCompanionSkill();
|
90
91
|
|
91
92
|
public override extern bool AlternativeSolutionCondition(out TextObject explanation);
|
92
93
|
|
@@ -94,6 +95,8 @@ namespace SandBox.Issues
|
|
94
95
|
|
95
96
|
protected override extern void AlternativeSolutionEndWithSuccessConsequence();
|
96
97
|
|
98
|
+
protected override extern void AlternativeSolutionEndWithFailureConsequence();
|
99
|
+
|
97
100
|
protected override extern void OnGameLoad();
|
98
101
|
|
99
102
|
protected override extern QuestBase GenerateIssueQuest(string questId);
|
@@ -131,6 +134,8 @@ namespace SandBox.Issues
|
|
131
134
|
|
132
135
|
protected override extern void RegisterEvents();
|
133
136
|
|
137
|
+
public override extern bool IsLocationMarked(Location location);
|
138
|
+
|
134
139
|
public override extern void OnFailed();
|
135
140
|
|
136
141
|
protected override extern void OnFinalize();
|
@@ -11,15 +11,15 @@ namespace SandBox.Missions.AgentBehaviors
|
|
11
11
|
|
12
12
|
public extern ScriptBehavior(AgentBehaviorGroup behaviorGroup);
|
13
13
|
|
14
|
-
public extern void
|
14
|
+
public static extern void AddUsableMachineTarget(Agent ownerAgent, UsableMachine targetUsableMachine);
|
15
15
|
|
16
|
-
public extern void
|
16
|
+
public static extern void AddAgentTarget(Agent ownerAgent, Agent targetAgent);
|
17
17
|
|
18
|
-
public extern void
|
18
|
+
public static extern void AddWorldFrameTarget(Agent ownerAgent, WorldFrame targetWorldFrame);
|
19
19
|
|
20
|
-
public extern void
|
20
|
+
public static extern void AddTargetWithDelegate(Agent ownerAgent, SelectTargetDelegate selectTargetDelegate, OnTargetReachedDelegate onTargetReachedDelegate);
|
21
21
|
|
22
|
-
public extern bool IsNearTarget();
|
22
|
+
public extern bool IsNearTarget(Agent targetAgent);
|
23
23
|
|
24
24
|
public override extern void Tick(float dt, bool isSimulation);
|
25
25
|
|
@@ -9,11 +9,11 @@ namespace SandBox.Missions.MissionLogics
|
|
9
9
|
|
10
10
|
public override extern void OnAgentBuild(Agent agent, Banner banner);
|
11
11
|
|
12
|
-
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent,
|
12
|
+
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent, in MissionWeapon attackerWeapon, in Blow blow, in AttackCollisionData attackCollisionData);
|
13
13
|
|
14
14
|
public override extern void OnAgentTeamChanged(Team prevTeam, Team newTeam, Agent agent);
|
15
15
|
|
16
|
-
public override extern void OnScoreHit(Agent affectedAgent, Agent affectorAgent, WeaponComponentData attackerWeapon, bool isBlocked, bool isSiegeEngineHit,
|
16
|
+
public override extern void OnScoreHit(Agent affectedAgent, Agent affectorAgent, WeaponComponentData attackerWeapon, bool isBlocked, bool isSiegeEngineHit, in Blow blow, in AttackCollisionData collisionData, float damagedHp, float hitDistance, float shotDifficulty);
|
17
17
|
|
18
18
|
public override extern void OnAgentRemoved(Agent affectedAgent, Agent affectorAgent, AgentState agentState, KillingBlow killingBlow);
|
19
19
|
|
@@ -13,7 +13,7 @@ namespace SandBox.Missions.MissionLogics
|
|
13
13
|
|
14
14
|
public override extern void OnMissionTick(float dt);
|
15
15
|
|
16
|
-
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent,
|
16
|
+
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent, in MissionWeapon affectorWeapon, in Blow blow, in AttackCollisionData attackCollisionData);
|
17
17
|
|
18
18
|
public extern void StartFight(bool hasPlayerChangedSide);
|
19
19
|
|
@@ -21,6 +21,8 @@ namespace SandBox.Missions.MissionLogics
|
|
21
21
|
|
22
22
|
public extern void StopSpawner();
|
23
23
|
|
24
|
+
public extern float GetReinforcementInterval();
|
25
|
+
|
24
26
|
public extern bool IsSideDepleted(BattleSideEnum side);
|
25
27
|
}
|
26
28
|
}
|
@@ -21,6 +21,8 @@ namespace SandBox.Missions.MissionLogics
|
|
21
21
|
|
22
22
|
public extern void StopSpawner();
|
23
23
|
|
24
|
+
public extern float GetReinforcementInterval();
|
25
|
+
|
24
26
|
public extern bool IsSideDepleted(BattleSideEnum side);
|
25
27
|
|
26
28
|
public static extern void StartBossFightDuelMode();
|
@@ -1,6 +1,5 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using System.Diagnostics;
|
3
|
-
using TaleWorlds.CampaignSystem;
|
4
3
|
using TaleWorlds.CampaignSystem.Settlements.Locations;
|
5
4
|
using TaleWorlds.Core;
|
6
5
|
using TaleWorlds.Engine;
|
@@ -82,7 +81,7 @@ namespace SandBox.Missions.MissionLogics
|
|
82
81
|
|
83
82
|
public static extern uint GetRandomTournamentTeamColor(int teamIndex);
|
84
83
|
|
85
|
-
public static extern (uint color1, uint color2)
|
84
|
+
public static extern (uint color1, uint color2) GetAgentSettlementColors(LocationCharacter locationCharacter);
|
86
85
|
|
87
86
|
public extern UsableMachine FindUnusedPointWithTagForAgent(Agent agent, string tag);
|
88
87
|
|
@@ -39,7 +39,7 @@ namespace SandBox.Missions.MissionLogics
|
|
39
39
|
|
40
40
|
public override extern void OnMissionTick(float dt);
|
41
41
|
|
42
|
-
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent,
|
42
|
+
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent, in MissionWeapon attackerWeapon, in Blow blow, in AttackCollisionData attackCollisionData);
|
43
43
|
|
44
44
|
protected override extern void OnEndMission();
|
45
45
|
|
@@ -1,15 +0,0 @@
|
|
1
|
-
using TaleWorlds.MountAndBlade;
|
2
|
-
|
3
|
-
namespace SandBox.Missions.MissionLogics
|
4
|
-
{
|
5
|
-
public class SallyOutMissionTroopSpawnHandler : MissionLogic
|
6
|
-
{
|
7
|
-
public override extern void OnBehaviorInitialize();
|
8
|
-
|
9
|
-
public override extern void AfterStart();
|
10
|
-
|
11
|
-
public override extern void OnMissionTick(float dt);
|
12
|
-
|
13
|
-
public extern SallyOutMissionTroopSpawnHandler();
|
14
|
-
}
|
15
|
-
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
using TaleWorlds.MountAndBlade;
|
2
|
+
|
3
|
+
namespace SandBox.Missions.MissionLogics
|
4
|
+
{
|
5
|
+
public class SandBoxSallyOutMissionSpawnHandler : SallyOutMissionSpawnHandler
|
6
|
+
{
|
7
|
+
public override extern void OnBehaviorInitialize();
|
8
|
+
|
9
|
+
protected override extern void GetInitialTroopCounts(out int besiegedTotalTroopCount, out int besiegerTotalTroopCount);
|
10
|
+
|
11
|
+
public extern SandBoxSallyOutMissionSpawnHandler();
|
12
|
+
}
|
13
|
+
}
|
@@ -2,12 +2,12 @@ using TaleWorlds.MountAndBlade;
|
|
2
2
|
|
3
3
|
namespace SandBox.Missions.MissionLogics
|
4
4
|
{
|
5
|
-
public class
|
5
|
+
public class SandBoxSiegeMissionSpawnHandler : MissionLogic
|
6
6
|
{
|
7
7
|
public override extern void OnBehaviorInitialize();
|
8
8
|
|
9
9
|
public override extern void AfterStart();
|
10
10
|
|
11
|
-
public extern
|
11
|
+
public extern SandBoxSiegeMissionSpawnHandler();
|
12
12
|
}
|
13
13
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
|
-
using TaleWorlds.CampaignSystem;
|
3
2
|
using TaleWorlds.Core;
|
4
3
|
using TaleWorlds.MountAndBlade;
|
5
4
|
|
@@ -7,12 +6,12 @@ namespace SandBox.Missions.MissionLogics
|
|
7
6
|
{
|
8
7
|
public class VisualTrackerMissionBehavior : MissionLogic
|
9
8
|
{
|
10
|
-
public List<TrackedObject> _currentTrackedObjects;
|
11
|
-
|
12
9
|
public override extern void OnAgentCreated(Agent agent);
|
13
10
|
|
14
11
|
public override extern void AfterStart();
|
15
12
|
|
13
|
+
public override extern void OnMissionTick(float dt);
|
14
|
+
|
16
15
|
public extern void RegisterLocalOnlyObject(ITrackableBase obj);
|
17
16
|
|
18
17
|
public override extern List<CompassItemUpdateParams> GetCompassTargets();
|
@@ -21,8 +20,6 @@ namespace SandBox.Missions.MissionLogics
|
|
21
20
|
|
22
21
|
public override extern void OnAgentDeleted(Agent affectedAgent);
|
23
22
|
|
24
|
-
protected override extern void OnEndMission();
|
25
|
-
|
26
23
|
public extern VisualTrackerMissionBehavior();
|
27
24
|
}
|
28
25
|
}
|
@@ -13,6 +13,8 @@ namespace SandBox.Missions.MissionLogics
|
|
13
13
|
|
14
14
|
public extern void StopSpawner();
|
15
15
|
|
16
|
+
public extern float GetReinforcementInterval();
|
17
|
+
|
16
18
|
public extern bool IsSideDepleted(BattleSideEnum side);
|
17
19
|
}
|
18
20
|
}
|
@@ -1,4 +1,7 @@
|
|
1
|
+
using System.Collections.Generic;
|
1
2
|
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.CampaignSystem;
|
4
|
+
using TaleWorlds.CampaignSystem.Settlements;
|
2
5
|
using TaleWorlds.Core;
|
3
6
|
using TaleWorlds.Library;
|
4
7
|
using TaleWorlds.MountAndBlade;
|
@@ -29,7 +32,7 @@ namespace SandBox.Missions.MissionLogics.Arena
|
|
29
32
|
|
30
33
|
public override extern void AfterStart();
|
31
34
|
|
32
|
-
public override extern void OnScoreHit(Agent affectedAgent, Agent affectorAgent, WeaponComponentData attackerWeapon, bool isBlocked, bool isSiegeEngineHit,
|
35
|
+
public override extern void OnScoreHit(Agent affectedAgent, Agent affectorAgent, WeaponComponentData attackerWeapon, bool isBlocked, bool isSiegeEngineHit, in Blow blow, in AttackCollisionData collisionData, float damagedHp, float hitDistance, float shotDifficulty);
|
33
36
|
|
34
37
|
public override extern void OnMissionTick(float dt);
|
35
38
|
|
@@ -41,6 +44,8 @@ namespace SandBox.Missions.MissionLogics.Arena
|
|
41
44
|
|
42
45
|
public extern void StartPlayerPractice();
|
43
46
|
|
47
|
+
public static extern List<CharacterObject> GetParticipantCharacters(Settlement settlement);
|
48
|
+
|
44
49
|
public extern ArenaPracticeFightMissionController();
|
45
50
|
}
|
46
51
|
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.Library;
|
3
|
-
using TaleWorlds.MountAndBlade;
|
4
|
-
|
5
|
-
namespace SandBox.Missions.MissionLogics.Towns
|
6
|
-
{
|
7
|
-
public class SneakIntoTownFightMissionController : MissionLogic
|
8
|
-
{
|
9
|
-
public extern SneakIntoTownFightMissionController();
|
10
|
-
|
11
|
-
public override extern void OnBehaviorInitialize();
|
12
|
-
|
13
|
-
public override extern void AfterStart();
|
14
|
-
|
15
|
-
public override extern void OnAgentRemoved(Agent affectedAgent, Agent affectorAgent, AgentState agentState, KillingBlow blow);
|
16
|
-
|
17
|
-
public override extern void OnMissionTick(float dt);
|
18
|
-
|
19
|
-
public override extern bool MissionEnded(ref MissionResult missionResult);
|
20
|
-
|
21
|
-
public override extern InquiryData OnEndMissionRequest(out bool canLeave);
|
22
|
-
|
23
|
-
protected override extern void OnEndMission();
|
24
|
-
}
|
25
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.MountAndBlade;
|
3
|
-
|
4
|
-
namespace SandBox.Missions.MissionLogics.Towns
|
5
|
-
{
|
6
|
-
public class TownNightStealthMissionController : MissionLogic
|
7
|
-
{
|
8
|
-
public override extern void OnBehaviorInitialize();
|
9
|
-
|
10
|
-
public override extern void AfterStart();
|
11
|
-
|
12
|
-
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent, int damage, in MissionWeapon attackerWeapon);
|
13
|
-
|
14
|
-
public override extern void OnAgentRemoved(Agent affectedAgent, Agent affectorAgent, AgentState agentState, KillingBlow killingBlow);
|
15
|
-
|
16
|
-
public override extern void OnMissionTick(float dt);
|
17
|
-
|
18
|
-
public override extern bool MissionEnded(ref MissionResult missionResult);
|
19
|
-
|
20
|
-
public extern TownNightStealthMissionController();
|
21
|
-
}
|
22
|
-
}
|
@@ -17,13 +17,16 @@ namespace SandBox.Objects
|
|
17
17
|
public string Tag { [CompilerGenerated]
|
18
18
|
get; }
|
19
19
|
|
20
|
+
public bool IsDataWithoutInstrument { [CompilerGenerated]
|
21
|
+
get; }
|
22
|
+
|
20
23
|
public extern IReadOnlyList<(HumanBone, string)> GetInstrumentEntities();
|
21
24
|
|
22
25
|
public extern InstrumentData();
|
23
26
|
|
24
27
|
public extern InstrumentData(string stringId);
|
25
28
|
|
26
|
-
public extern void InitializeInstrumentData(string sittingAction, string standingAction);
|
29
|
+
public extern void InitializeInstrumentData(string sittingAction, string standingAction, bool isDataWithoutInstrument);
|
27
30
|
|
28
31
|
public override extern void Deserialize(MBObjectManager objectManager, XmlNode node);
|
29
32
|
}
|
@@ -87,6 +87,8 @@ namespace SandBox.Objects.AnimationPoints
|
|
87
87
|
|
88
88
|
protected override extern void OnEditorVariableChanged(string variableName);
|
89
89
|
|
90
|
+
public extern void RequestResync();
|
91
|
+
|
90
92
|
public override extern void AfterMissionStart();
|
91
93
|
|
92
94
|
protected virtual extern bool ShouldUpdateOnEditorVariableChanged(string variableName);
|
@@ -0,0 +1,30 @@
|
|
1
|
+
using TaleWorlds.Engine;
|
2
|
+
using TaleWorlds.Library;
|
3
|
+
|
4
|
+
namespace SandBox.Objects.Cinematics
|
5
|
+
{
|
6
|
+
public class SkeletonAnimatedCamera : ScriptComponentBehavior
|
7
|
+
{
|
8
|
+
public string SkeletonName;
|
9
|
+
|
10
|
+
public int BoneIndex;
|
11
|
+
|
12
|
+
public Vec3 AttachmentOffset;
|
13
|
+
|
14
|
+
public string AnimationName;
|
15
|
+
|
16
|
+
public SimpleButton Restart;
|
17
|
+
|
18
|
+
protected override extern void OnInit();
|
19
|
+
|
20
|
+
protected override extern void OnEditorInit();
|
21
|
+
|
22
|
+
protected override extern void OnTick(float dt);
|
23
|
+
|
24
|
+
protected override extern void OnEditorTick(float dt);
|
25
|
+
|
26
|
+
protected override extern void OnEditorVariableChanged(string variableName);
|
27
|
+
|
28
|
+
public extern SkeletonAnimatedCamera();
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
using SandBox.Missions.AgentBehaviors;
|
2
|
+
using SandBox.Objects.Usables;
|
3
|
+
using TaleWorlds.MountAndBlade;
|
4
|
+
|
5
|
+
namespace SandBox.Source.Missions.AgentBehaviors
|
6
|
+
{
|
7
|
+
public class BoardGameAgentBehavior : AgentBehavior
|
8
|
+
{
|
9
|
+
public extern BoardGameAgentBehavior(AgentBehaviorGroup behaviorGroup);
|
10
|
+
|
11
|
+
public override extern void Tick(float dt, bool isSimulation);
|
12
|
+
|
13
|
+
protected override extern void OnDeactivate();
|
14
|
+
|
15
|
+
public override extern string GetDebugInfo();
|
16
|
+
|
17
|
+
public override extern float GetAvailability(bool isSimulation);
|
18
|
+
|
19
|
+
public static extern void AddTargetChair(Agent ownerAgent, Chair chair);
|
20
|
+
|
21
|
+
public static extern void RemoveBoardGameBehaviorOfAgent(Agent ownerAgent);
|
22
|
+
|
23
|
+
public static extern bool IsAgentMovingToChair(Agent ownerAgent);
|
24
|
+
}
|
25
|
+
}
|
@@ -29,6 +29,6 @@ namespace SandBox.Tournaments.MissionLogics
|
|
29
29
|
|
30
30
|
public override extern void OnMissionTick(float dt);
|
31
31
|
|
32
|
-
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent,
|
32
|
+
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent, in MissionWeapon attackerWeapon, in Blow blow, in AttackCollisionData attackCollisionData);
|
33
33
|
}
|
34
34
|
}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
using System;
|
2
|
+
using System.Collections.Generic;
|
2
3
|
using System.Runtime.CompilerServices;
|
4
|
+
using TaleWorlds.CampaignSystem;
|
3
5
|
using TaleWorlds.CampaignSystem.Settlements;
|
4
6
|
using TaleWorlds.CampaignSystem.TournamentGames;
|
5
7
|
using TaleWorlds.Core;
|
@@ -75,6 +77,8 @@ namespace SandBox.Tournaments.MissionLogics
|
|
75
77
|
|
76
78
|
public extern TournamentBehavior(TournamentGame tournamentGame, Settlement settlement, ITournamentGameBehavior gameBehavior, bool isPlayerParticipating);
|
77
79
|
|
80
|
+
public extern List<CharacterObject> GetAllPossibleParticipants();
|
81
|
+
|
78
82
|
public static extern void DeleteTournamentSetsExcept(GameEntity selectedSetEntity);
|
79
83
|
|
80
84
|
public static extern void DeleteAllTournamentSets();
|
@@ -26,7 +26,7 @@ namespace SandBox.Tournaments.MissionLogics
|
|
26
26
|
|
27
27
|
public override extern void OnAgentRemoved(Agent affectedAgent, Agent affectorAgent, AgentState agentState, KillingBlow killingBlow);
|
28
28
|
|
29
|
-
public override extern void OnScoreHit(Agent affectedAgent, Agent affectorAgent, WeaponComponentData attackerWeapon, bool isBlocked, bool isSiegeEngineHit,
|
29
|
+
public override extern void OnScoreHit(Agent affectedAgent, Agent affectorAgent, WeaponComponentData attackerWeapon, bool isBlocked, bool isSiegeEngineHit, in Blow blow, in AttackCollisionData collisionData, float damagedHp, float hitDistance, float shotDifficulty);
|
30
30
|
|
31
31
|
public extern bool CheckIfIsThereAnyEnemies();
|
32
32
|
|
@@ -86,7 +86,7 @@ namespace SandBox.Tournaments.MissionLogics
|
|
86
86
|
|
87
87
|
public override extern void OnMissionTick(float dt);
|
88
88
|
|
89
|
-
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent,
|
89
|
+
public override extern void OnAgentHit(Agent affectedAgent, Agent affectorAgent, in MissionWeapon attackerWeapon, in Blow blow, in AttackCollisionData attackCollisionData);
|
90
90
|
|
91
91
|
public override extern void OnAgentRemoved(Agent affectedAgent, Agent affectorAgent, AgentState agentState, KillingBlow killingBlow);
|
92
92
|
|