@@ -1,7 +1,8 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
6
|
using TaleWorlds.Library;
|
6
7
|
using TaleWorlds.MountAndBlade.CustomBattle.CustomBattle;
|
7
8
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
4
5
|
using TaleWorlds.Library;
|
5
6
|
using TaleWorlds.Localization;
|
6
7
|
using TaleWorlds.MountAndBlade.CustomBattle.CustomBattle;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
using TaleWorlds.Core;
|
2
|
+
|
3
|
+
namespace TaleWorlds.MountAndBlade.CustomBattle
|
4
|
+
{
|
5
|
+
public class CustomBattleSceneNotificationContextProvider : ISceneNotificationContextProvider
|
6
|
+
{
|
7
|
+
public extern bool IsContextAllowed(RelevantContextType relevantType);
|
8
|
+
|
9
|
+
public extern CustomBattleSceneNotificationContextProvider();
|
10
|
+
}
|
11
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.MountAndBlade.View.
|
2
|
+
using TaleWorlds.MountAndBlade.View.Screens;
|
3
3
|
using TaleWorlds.ScreenSystem;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.CustomBattle
|
@@ -4,6 +4,8 @@ namespace TaleWorlds.MountAndBlade.CustomBattle
|
|
4
4
|
{
|
5
5
|
protected override extern void OnSubModuleLoad();
|
6
6
|
|
7
|
+
protected override extern void OnBeforeInitialModuleScreenSetAsRoot();
|
8
|
+
|
7
9
|
public extern CustomBattleSubModule();
|
8
10
|
}
|
9
11
|
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
6
|
using TaleWorlds.Library;
|
6
7
|
|
7
8
|
namespace TaleWorlds.MountAndBlade.CustomBattle
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.MountAndBlade.View.
|
1
|
+
using TaleWorlds.MountAndBlade.View.MissionViews;
|
2
2
|
|
3
3
|
namespace TaleWorlds.MountAndBlade.CustomBattle
|
4
4
|
{
|
@@ -19,7 +19,7 @@ namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle
|
|
19
19
|
[DataSourceProperty]
|
20
20
|
public string Name { get; set; }
|
21
21
|
|
22
|
-
public extern CustomBattleSiegeMachineVM(SiegeEngineType machineType, Action<CustomBattleSiegeMachineVM> onSelection);
|
22
|
+
public extern CustomBattleSiegeMachineVM(SiegeEngineType machineType, Action<CustomBattleSiegeMachineVM> onSelection, Action<CustomBattleSiegeMachineVM> onResetSelection);
|
23
23
|
|
24
24
|
public extern void SetMachineType(SiegeEngineType machine);
|
25
25
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
using TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem;
|
6
6
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem;
|
5
5
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem
|
6
6
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
7
|
namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem
|
5
5
|
{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem
|
5
5
|
{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem
|
5
5
|
{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem
|
5
5
|
{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem
|
5
5
|
{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem
|
5
5
|
{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.CustomBattle.CustomBattle.SelectionItem
|
5
5
|
{
|