@@ -8,7 +8,7 @@ namespace TaleWorlds.Library
|
|
8
8
|
{
|
9
9
|
public static readonly ApplicationVersion Empty;
|
10
10
|
|
11
|
-
public const int DefaultChangeSet =
|
11
|
+
public const int DefaultChangeSet = 318937;
|
12
12
|
|
13
13
|
public ApplicationVersionType ApplicationVersionType { [CompilerGenerated]
|
14
14
|
get; }
|
@@ -25,14 +25,11 @@ namespace TaleWorlds.Library
|
|
25
25
|
public int ChangeSet { [CompilerGenerated]
|
26
26
|
get; }
|
27
27
|
|
28
|
-
public
|
29
|
-
get; }
|
30
|
-
|
31
|
-
public extern ApplicationVersion(ApplicationVersionType applicationVersionType, int major, int minor, int revision, int changeSet, ApplicationVersionGameType versionGameType);
|
28
|
+
public extern ApplicationVersion(ApplicationVersionType applicationVersionType, int major, int minor, int revision, int changeSet);
|
32
29
|
|
33
|
-
public static extern ApplicationVersion FromParametersFile(
|
30
|
+
public static extern ApplicationVersion FromParametersFile(string customParameterFilePath = null);
|
34
31
|
|
35
|
-
public static extern ApplicationVersion FromString(string versionAsString
|
32
|
+
public static extern ApplicationVersion FromString(string versionAsString);
|
36
33
|
|
37
34
|
public extern bool IsSame(ApplicationVersion other);
|
38
35
|
|
@@ -1,8 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.Library
|
2
|
-
{
|
3
|
-
public enum ApplicationVersionGameType
|
4
|
-
{
|
5
|
-
Singleplayer,
|
6
|
-
Multiplayer
|
7
|
-
}
|
8
|
-
}
|
@@ -7,7 +7,6 @@ namespace TaleWorlds.Library
|
|
7
7
|
Beta,
|
8
8
|
EarlyAccess,
|
9
9
|
Release,
|
10
|
-
Development
|
11
|
-
Multiplayer
|
10
|
+
Development
|
12
11
|
}
|
13
12
|
}
|
@@ -27,27 +27,27 @@ namespace TaleWorlds.Library
|
|
27
27
|
public enum DebugUserFilter : ulong
|
28
28
|
{
|
29
29
|
None = 0uL,
|
30
|
-
|
31
|
-
|
30
|
+
Unused0 = 1uL,
|
31
|
+
Unused1 = 2uL,
|
32
32
|
Koray = 4uL,
|
33
33
|
Armagan = 8uL,
|
34
34
|
Intern = 0x10uL,
|
35
35
|
Mustafa = 0x20uL,
|
36
36
|
Oguzhan = 0x40uL,
|
37
37
|
Omer = 0x80uL,
|
38
|
-
|
39
|
-
|
38
|
+
Ates = 0x100uL,
|
39
|
+
Unused3 = 0x200uL,
|
40
40
|
Basak = 0x400uL,
|
41
41
|
Can = 0x800uL,
|
42
|
-
|
42
|
+
Unused4 = 0x1000uL,
|
43
43
|
Cem = 0x2000uL,
|
44
|
-
|
45
|
-
|
44
|
+
Unused5 = 0x4000uL,
|
45
|
+
Unused6 = 0x8000uL,
|
46
46
|
Emircan = 0x10000uL,
|
47
|
-
|
47
|
+
Unused7 = 0x20000uL,
|
48
48
|
All = 0xFFFFFFFFuL,
|
49
|
-
|
50
|
-
|
49
|
+
Default = 0uL,
|
50
|
+
DamageDebug = 72uL
|
51
51
|
}
|
52
52
|
|
53
53
|
public enum DebugSystemFilter : ulong
|
@@ -74,8 +74,8 @@ namespace TaleWorlds.Library
|
|
74
74
|
Quest = 0x8000000000000uL,
|
75
75
|
Dialog = 0x10000000000000uL,
|
76
76
|
Steam = 0x20000000000000uL,
|
77
|
-
|
78
|
-
|
77
|
+
All = 18446744069414584320uL,
|
78
|
+
DefaultMask = 18446744069414584320uL
|
79
79
|
}
|
80
80
|
|
81
81
|
public static IDebugManager DebugManager { [CompilerGenerated]
|
@@ -122,9 +122,6 @@ namespace TaleWorlds.Library
|
|
122
122
|
[Conditional("_RGL_KEEP_ASSERTS")]
|
123
123
|
public static extern void WatchVariable(string name, object value);
|
124
124
|
|
125
|
-
[Conditional("_RGL_KEEP_ASSERTS")]
|
126
|
-
public static extern void Print(bool p1, int p2, ConsoleColor consoleColor, ulong p3);
|
127
|
-
|
128
125
|
[Conditional("_RGL_KEEP_ASSERTS")]
|
129
126
|
public static extern void WriteDebugLineOnScreen(string message);
|
130
127
|
|
@@ -140,6 +137,9 @@ namespace TaleWorlds.Library
|
|
140
137
|
[Conditional("_RGL_KEEP_ASSERTS")]
|
141
138
|
public static extern void RenderDebugText(float screenX, float screenY, string text, uint color = uint.MaxValue, float time = 0f);
|
142
139
|
|
140
|
+
[Conditional("_RGL_KEEP_ASSERTS")]
|
141
|
+
public static extern void RenderDebugRectWithColor(float left, float bottom, float right, float top, uint color = uint.MaxValue);
|
142
|
+
|
143
143
|
[Conditional("_RGL_KEEP_ASSERTS")]
|
144
144
|
public static extern void RenderDebugText3D(Vec3 position, string text, uint color = uint.MaxValue, int screenPosOffsetX = 0, int screenPosOffsetY = 0, float time = 0f);
|
145
145
|
|
@@ -10,6 +10,8 @@ namespace TaleWorlds.Library
|
|
10
10
|
|
11
11
|
public static extern SaveResult AppendLineToFileString(PlatformFilePath path, string data);
|
12
12
|
|
13
|
+
public static extern string GetError();
|
14
|
+
|
13
15
|
public static extern bool FileExists(PlatformFilePath path);
|
14
16
|
|
15
17
|
public static extern Task<string> GetFileContentStringAsync(PlatformFilePath path);
|
@@ -50,6 +50,8 @@ namespace TaleWorlds.Library
|
|
50
50
|
|
51
51
|
extern void IDebugManager.RenderDebugText3D(Vec3 position, string text, uint color, int screenPosOffsetX, int screenPosOffsetY, float time);
|
52
52
|
|
53
|
+
extern void IDebugManager.RenderDebugRectWithColor(float left, float bottom, float right, float top, uint color);
|
54
|
+
|
53
55
|
extern Vec3 IDebugManager.GetDebugVector();
|
54
56
|
|
55
57
|
extern void IDebugManager.SetTestModeEnabled(bool testModeEnabled);
|
@@ -44,6 +44,8 @@ namespace TaleWorlds.Library
|
|
44
44
|
|
45
45
|
void RenderDebugText(float screenX, float screenY, string text, uint color = uint.MaxValue, float time = 0f);
|
46
46
|
|
47
|
+
void RenderDebugRectWithColor(float left, float bottom, float right, float top, uint color = uint.MaxValue);
|
48
|
+
|
47
49
|
Vec3 GetDebugVector();
|
48
50
|
|
49
51
|
void SetCrashReportCustomString(string customString);
|
@@ -23,5 +23,7 @@ namespace TaleWorlds.Library
|
|
23
23
|
PlatformFilePath[] GetFiles(PlatformDirectoryPath path, string searchPattern);
|
24
24
|
|
25
25
|
string GetFileFullPath(PlatformFilePath filePath);
|
26
|
+
|
27
|
+
string GetError();
|
26
28
|
}
|
27
29
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
namespace TaleWorlds.Library
|
2
|
+
{
|
3
|
+
public interface ITask
|
4
|
+
{
|
5
|
+
void Invoke();
|
6
|
+
|
7
|
+
void Wait();
|
8
|
+
}
|
9
|
+
}
|
@@ -0,0 +1,92 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
|
4
|
+
namespace TaleWorlds.Library
|
5
|
+
{
|
6
|
+
public static class InformationManager
|
7
|
+
{
|
8
|
+
public static Func<bool> IsAnyInquiryActive;
|
9
|
+
|
10
|
+
public static event Action<InformationMessage> DisplayMessageInternal
|
11
|
+
{
|
12
|
+
[CompilerGenerated]
|
13
|
+
add;
|
14
|
+
[CompilerGenerated]
|
15
|
+
remove;
|
16
|
+
}
|
17
|
+
|
18
|
+
public static event Action ClearAllMessagesInternal
|
19
|
+
{
|
20
|
+
[CompilerGenerated]
|
21
|
+
add;
|
22
|
+
[CompilerGenerated]
|
23
|
+
remove;
|
24
|
+
}
|
25
|
+
|
26
|
+
public static event Action<string> OnAddSystemNotification
|
27
|
+
{
|
28
|
+
[CompilerGenerated]
|
29
|
+
add;
|
30
|
+
[CompilerGenerated]
|
31
|
+
remove;
|
32
|
+
}
|
33
|
+
|
34
|
+
public static event Action<Type, object[]> OnShowTooltip
|
35
|
+
{
|
36
|
+
[CompilerGenerated]
|
37
|
+
add;
|
38
|
+
[CompilerGenerated]
|
39
|
+
remove;
|
40
|
+
}
|
41
|
+
|
42
|
+
public static event Action OnHideTooltip
|
43
|
+
{
|
44
|
+
[CompilerGenerated]
|
45
|
+
add;
|
46
|
+
[CompilerGenerated]
|
47
|
+
remove;
|
48
|
+
}
|
49
|
+
|
50
|
+
public static event Action<InquiryData, bool> OnShowInquiry
|
51
|
+
{
|
52
|
+
[CompilerGenerated]
|
53
|
+
add;
|
54
|
+
[CompilerGenerated]
|
55
|
+
remove;
|
56
|
+
}
|
57
|
+
|
58
|
+
public static event Action<TextInquiryData, bool> OnShowTextInquiry
|
59
|
+
{
|
60
|
+
[CompilerGenerated]
|
61
|
+
add;
|
62
|
+
[CompilerGenerated]
|
63
|
+
remove;
|
64
|
+
}
|
65
|
+
|
66
|
+
public static event Action OnHideInquiry
|
67
|
+
{
|
68
|
+
[CompilerGenerated]
|
69
|
+
add;
|
70
|
+
[CompilerGenerated]
|
71
|
+
remove;
|
72
|
+
}
|
73
|
+
|
74
|
+
public static extern void DisplayMessage(InformationMessage message);
|
75
|
+
|
76
|
+
public static extern void ClearAllMessages();
|
77
|
+
|
78
|
+
public static extern void AddSystemNotification(string message);
|
79
|
+
|
80
|
+
public static extern void ShowTooltip(Type type, params object[] args);
|
81
|
+
|
82
|
+
public static extern void HideTooltip();
|
83
|
+
|
84
|
+
public static extern void ShowInquiry(InquiryData data, bool pauseGameActiveState = false);
|
85
|
+
|
86
|
+
public static extern void ShowTextInquiry(TextInquiryData textData, bool pauseGameActiveState = false);
|
87
|
+
|
88
|
+
public static extern void HideInquiry();
|
89
|
+
|
90
|
+
public static extern void Clear();
|
91
|
+
}
|
92
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
using System.Runtime.CompilerServices;
|
2
|
+
|
3
|
+
namespace TaleWorlds.Library
|
4
|
+
{
|
5
|
+
public class InformationMessage
|
6
|
+
{
|
7
|
+
public string Information { [CompilerGenerated]
|
8
|
+
get; [CompilerGenerated]
|
9
|
+
set; }
|
10
|
+
|
11
|
+
public string Detail { [CompilerGenerated]
|
12
|
+
get; [CompilerGenerated]
|
13
|
+
set; }
|
14
|
+
|
15
|
+
public Color Color { [CompilerGenerated]
|
16
|
+
get; [CompilerGenerated]
|
17
|
+
set; }
|
18
|
+
|
19
|
+
public string SoundEventPath { [CompilerGenerated]
|
20
|
+
get; [CompilerGenerated]
|
21
|
+
set; }
|
22
|
+
|
23
|
+
public string Category { [CompilerGenerated]
|
24
|
+
get; [CompilerGenerated]
|
25
|
+
set; }
|
26
|
+
|
27
|
+
public extern InformationMessage(string information);
|
28
|
+
|
29
|
+
public extern InformationMessage(string information, Color color);
|
30
|
+
|
31
|
+
public extern InformationMessage(string information, Color color, string category);
|
32
|
+
|
33
|
+
public extern InformationMessage(string information, string soundEventPath);
|
34
|
+
|
35
|
+
public extern InformationMessage();
|
36
|
+
}
|
37
|
+
}
|
@@ -12,21 +12,21 @@ namespace TaleWorlds.Library
|
|
12
12
|
|
13
13
|
public extern void Release();
|
14
14
|
|
15
|
-
public extern
|
15
|
+
public extern MBStringBuilder Append(char value);
|
16
16
|
|
17
|
-
public extern
|
17
|
+
public extern MBStringBuilder Append(int value);
|
18
18
|
|
19
|
-
public extern
|
19
|
+
public extern MBStringBuilder Append(uint value);
|
20
20
|
|
21
|
-
public extern
|
21
|
+
public extern MBStringBuilder Append(float value);
|
22
22
|
|
23
|
-
public extern
|
23
|
+
public extern MBStringBuilder Append(double value);
|
24
24
|
|
25
|
-
public extern
|
25
|
+
public extern MBStringBuilder Append<T>(T value);
|
26
26
|
|
27
|
-
public extern
|
27
|
+
public extern MBStringBuilder AppendLine();
|
28
28
|
|
29
|
-
public extern
|
29
|
+
public extern MBStringBuilder AppendLine<T>(T value);
|
30
30
|
|
31
31
|
public override extern string ToString();
|
32
32
|
}
|
@@ -71,6 +71,8 @@ namespace TaleWorlds.Library
|
|
71
71
|
|
72
72
|
public extern void Scale(Vec3 scalingVector);
|
73
73
|
|
74
|
+
public extern Vec3 GetScale();
|
75
|
+
|
74
76
|
public static extern MatrixFrame CreateLookAt(Vec3 position, Vec3 target, Vec3 upVector);
|
75
77
|
|
76
78
|
public static extern MatrixFrame CenterFrameOfTwoPoints(Vec3 p1, Vec3 p2, Vec3 upVector);
|
@@ -22,7 +22,5 @@ namespace TaleWorlds.Library
|
|
22
22
|
|
23
23
|
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
|
24
24
|
public virtual extern void GetObjectData(SerializationInfo info, StreamingContext context);
|
25
|
-
|
26
|
-
public extern void DebugRenderUsing(int index, Vec3 position);
|
27
25
|
}
|
28
26
|
}
|
@@ -17,7 +17,7 @@ namespace TaleWorlds.Library
|
|
17
17
|
|
18
18
|
public extern bool FileExists(PlatformFilePath path);
|
19
19
|
|
20
|
-
[AsyncStateMachine(typeof(
|
20
|
+
[AsyncStateMachine(typeof(_003CGetFileContentStringAsync_003Ed__13))]
|
21
21
|
public extern Task<string> GetFileContentStringAsync(PlatformFilePath path);
|
22
22
|
|
23
23
|
public extern string GetFileContentString(PlatformFilePath path);
|
@@ -31,5 +31,7 @@ namespace TaleWorlds.Library
|
|
31
31
|
public extern PlatformFilePath[] GetFiles(PlatformDirectoryPath path, string searchPattern);
|
32
32
|
|
33
33
|
public extern void RenameFile(PlatformFilePath filePath, string newName);
|
34
|
+
|
35
|
+
public extern string GetError();
|
34
36
|
}
|
35
37
|
}
|
@@ -5,6 +5,8 @@ namespace TaleWorlds.Library
|
|
5
5
|
{
|
6
6
|
public class ResourceDepot
|
7
7
|
{
|
8
|
+
public IReadOnlyList<ResourceDepotLocation> ResourceLocations { get; }
|
9
|
+
|
8
10
|
public event ResourceChangeEvent OnResourceChange
|
9
11
|
{
|
10
12
|
[CompilerGenerated]
|
@@ -23,7 +25,7 @@ namespace TaleWorlds.Library
|
|
23
25
|
|
24
26
|
public extern string GetFilePath(string file);
|
25
27
|
|
26
|
-
[IteratorStateMachine(typeof(
|
28
|
+
[IteratorStateMachine(typeof(_003CGetFilesEndingWith_003Ed__13))]
|
27
29
|
public extern IEnumerable<string> GetFilesEndingWith(string fileEndName);
|
28
30
|
|
29
31
|
public extern void StartWatchingChangesInDepot();
|
@@ -9,7 +9,7 @@ namespace TaleWorlds.Library
|
|
9
9
|
{
|
10
10
|
public static class SrtParser
|
11
11
|
{
|
12
|
-
public static extern List<SubtitleItem> ParseStream(Stream
|
12
|
+
public static extern List<SubtitleItem> ParseStream(Stream subtitleStream, Encoding encoding);
|
13
13
|
}
|
14
14
|
|
15
15
|
public static class StreamHelpers
|
@@ -6,6 +6,9 @@ namespace TaleWorlds.Library
|
|
6
6
|
NoSpace,
|
7
7
|
Corrupted,
|
8
8
|
GeneralFailure,
|
9
|
+
FileDriverFailure,
|
10
|
+
PlatformFileHelperFailure,
|
11
|
+
ConfigFileFailure,
|
9
12
|
SaveLimitReached
|
10
13
|
}
|
11
14
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
namespace TaleWorlds.Library
|
2
|
+
{
|
3
|
+
public struct SaveResultWithMessage
|
4
|
+
{
|
5
|
+
public readonly SaveResult SaveResult;
|
6
|
+
|
7
|
+
public readonly string Message;
|
8
|
+
|
9
|
+
public static SaveResultWithMessage Default { get; }
|
10
|
+
|
11
|
+
public extern SaveResultWithMessage(SaveResult result, string message);
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
namespace TaleWorlds.Library
|
2
|
+
{
|
3
|
+
public class SerialTask : ITask
|
4
|
+
{
|
5
|
+
public delegate void DelegateDefinition();
|
6
|
+
|
7
|
+
public extern SerialTask(DelegateDefinition function);
|
8
|
+
|
9
|
+
extern void ITask.Invoke();
|
10
|
+
|
11
|
+
extern void ITask.Wait();
|
12
|
+
}
|
13
|
+
}
|
@@ -47,6 +47,8 @@ namespace TaleWorlds.Library
|
|
47
47
|
|
48
48
|
public delegate void ParallelForWithDtAuxPredicate(int localStartIndex, int localEndIndex, float dt);
|
49
49
|
|
50
|
+
public static bool IsInParallelFor;
|
51
|
+
|
50
52
|
public static extern void InitializeAndSetImplementation(IParallelDriver parallelDriver);
|
51
53
|
|
52
54
|
public static extern ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, Action<TSource> body);
|
@@ -0,0 +1,33 @@
|
|
1
|
+
using System;
|
2
|
+
|
3
|
+
namespace TaleWorlds.Library
|
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
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using System;
|
2
|
+
|
3
|
+
namespace TaleWorlds.Library
|
4
|
+
{
|
5
|
+
public abstract class TooltipVM : ViewModel
|
6
|
+
{
|
7
|
+
public bool IsExtended { get; set; }
|
8
|
+
|
9
|
+
[DataSourceProperty]
|
10
|
+
public bool IsActive { get; set; }
|
11
|
+
|
12
|
+
public extern TooltipVM();
|
13
|
+
|
14
|
+
public override extern void OnFinalize();
|
15
|
+
|
16
|
+
public virtual extern void Tick(float dt);
|
17
|
+
|
18
|
+
public virtual extern void OnShowTooltip(Type type, object[] args);
|
19
|
+
|
20
|
+
public virtual extern void OnHideTooltip();
|
21
|
+
|
22
|
+
protected virtual extern void OnIsExtendedChanged();
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
using System;
|
2
|
+
|
3
|
+
namespace TaleWorlds.Library
|
4
|
+
{
|
5
|
+
[Serializable]
|
6
|
+
public struct Transformation
|
7
|
+
{
|
8
|
+
public Vec3 Origin;
|
9
|
+
|
10
|
+
public Mat3 Rotation;
|
11
|
+
|
12
|
+
public Vec3 Scale;
|
13
|
+
|
14
|
+
public static Transformation Identity { get; }
|
15
|
+
|
16
|
+
public MatrixFrame AsMatrixFrame { get; }
|
17
|
+
|
18
|
+
public extern Transformation(Vec3 origin, Mat3 rotation, Vec3 scale);
|
19
|
+
|
20
|
+
public static extern Transformation CreateFromMatrixFrame(MatrixFrame matrixFrame);
|
21
|
+
|
22
|
+
public extern bool HasNegativeScale();
|
23
|
+
|
24
|
+
public static extern Transformation CreateFromRotation(Mat3 rotation);
|
25
|
+
|
26
|
+
public extern Vec3 TransformToParent(Vec3 v);
|
27
|
+
|
28
|
+
public extern Transformation TransformToParent(Transformation t);
|
29
|
+
|
30
|
+
public extern Vec3 TransformToLocal(Vec3 v);
|
31
|
+
|
32
|
+
public extern Transformation TransformToLocal(Transformation t);
|
33
|
+
|
34
|
+
public extern void Rotate(float radian, Vec3 axis);
|
35
|
+
|
36
|
+
public static extern bool operator ==(Transformation t1, Transformation t2);
|
37
|
+
|
38
|
+
public extern void ApplyScale(Vec3 vec3);
|
39
|
+
|
40
|
+
public static extern bool operator !=(Transformation t1, Transformation t2);
|
41
|
+
|
42
|
+
public override extern bool Equals(object obj);
|
43
|
+
|
44
|
+
public override extern int GetHashCode();
|
45
|
+
|
46
|
+
public override extern string ToString();
|
47
|
+
}
|
48
|
+
}
|
@@ -79,6 +79,10 @@ namespace TaleWorlds.Library
|
|
79
79
|
|
80
80
|
public static extern Vec2 operator *(float f, Vec2 v);
|
81
81
|
|
82
|
+
public static extern Vec2 operator /(float f, Vec2 v);
|
83
|
+
|
84
|
+
public static extern Vec2 operator /(Vec2 v, float f);
|
85
|
+
|
82
86
|
public extern bool IsUnit();
|
83
87
|
|
84
88
|
public extern bool IsNonZero();
|
@@ -26,8 +26,6 @@ namespace TaleWorlds.Library
|
|
26
26
|
|
27
27
|
public static bool UIDebugMode;
|
28
28
|
|
29
|
-
public string[] Properties { get; }
|
30
|
-
|
31
29
|
public event PropertyChangedEventHandler PropertyChanged
|
32
30
|
{
|
33
31
|
add;
|
@@ -65,5 +63,7 @@ namespace TaleWorlds.Library
|
|
65
63
|
public extern void ExecuteCommand(string commandName, object[] parameters);
|
66
64
|
|
67
65
|
public virtual extern void RefreshValues();
|
66
|
+
|
67
|
+
public static extern void CollectPropertiesAndMethods();
|
68
68
|
}
|
69
69
|
}
|
@@ -14,22 +14,22 @@ namespace TaleWorlds.Library
|
|
14
14
|
[VirtualDirectory("ClientProfiles")]
|
15
15
|
public class ClientProfiles
|
16
16
|
{
|
17
|
-
[VirtualDirectory("DigitalOcean.
|
18
|
-
public class
|
17
|
+
[VirtualDirectory("DigitalOcean.Test0")]
|
18
|
+
public class DigitalOceanTest0
|
19
19
|
{
|
20
|
-
[VirtualFile("LobbyClient.xml", "<Configuration>\t<SessionProvider Type=\"ThreadedRest\" />\t<Clients>\t\t<Client Type=\"LobbyClient\" />\t</Clients>\t<Parameters>\t\t<Parameter Name=\"LobbyClient.Address\" Value=\"bannerlord-
|
20
|
+
[VirtualFile("LobbyClient.xml", "<Configuration>\t<SessionProvider Type=\"ThreadedRest\" />\t<Clients>\t\t<Client Type=\"LobbyClient\" />\t</Clients>\t<Parameters>\t\t<Parameter Name=\"LobbyClient.Address\" Value=\"bannerlord-test0-lobby.bannerlord-services-2.net\" />\t\t<Parameter Name=\"LobbyClient.Port\" Value=\"443\" />\t\t<Parameter Name=\"LobbyClient.IsSecure\" Value=\"true\" />\t</Parameters></Configuration>")]
|
21
21
|
public string LobbyClient;
|
22
22
|
|
23
|
-
public extern
|
23
|
+
public extern DigitalOceanTest0();
|
24
24
|
}
|
25
25
|
|
26
26
|
public extern ClientProfiles();
|
27
27
|
}
|
28
28
|
|
29
|
-
[VirtualFile("Version.xml", "<Version>\t<Singleplayer Value=\"e1.
|
29
|
+
[VirtualFile("Version.xml", "<Version>\t<Singleplayer Value=\"e1.8.0\"/></Version>")]
|
30
30
|
public string Version;
|
31
31
|
|
32
|
-
[VirtualFile("ClientProfile.xml", "<ClientProfile Value=\"DigitalOcean.
|
32
|
+
[VirtualFile("ClientProfile.xml", "<ClientProfile Value=\"DigitalOcean.Test0\"/>")]
|
33
33
|
public string ClientProfile;
|
34
34
|
|
35
35
|
public extern Parameters();
|
@@ -0,0 +1,15 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
|
3
|
+
namespace TaleWorlds.Library.CodeGeneration
|
4
|
+
{
|
5
|
+
public class CodeBlock
|
6
|
+
{
|
7
|
+
public List<string> Lines { get; }
|
8
|
+
|
9
|
+
public extern CodeBlock();
|
10
|
+
|
11
|
+
public extern void AddLine(string line);
|
12
|
+
|
13
|
+
public extern void AddLines(IEnumerable<string> lines);
|
14
|
+
}
|
15
|
+
}
|
@@ -5,6 +5,10 @@ namespace TaleWorlds.Library.CodeGeneration
|
|
5
5
|
{
|
6
6
|
public class MethodCode
|
7
7
|
{
|
8
|
+
public string Comment { [CompilerGenerated]
|
9
|
+
get; [CompilerGenerated]
|
10
|
+
set; }
|
11
|
+
|
8
12
|
public string Name { [CompilerGenerated]
|
9
13
|
get; [CompilerGenerated]
|
10
14
|
set; }
|
@@ -36,5 +40,7 @@ namespace TaleWorlds.Library.CodeGeneration
|
|
36
40
|
public extern void AddLine(string line);
|
37
41
|
|
38
42
|
public extern void AddLines(IEnumerable<string> lines);
|
43
|
+
|
44
|
+
public extern void AddCodeBlock(CodeBlock codeBlock);
|
39
45
|
}
|
40
46
|
}
|