@@ -1,4 +1,3 @@
|
|
1
|
-
using System;
|
2
1
|
using System.Collections.Generic;
|
3
2
|
using System.Runtime.CompilerServices;
|
4
3
|
using System.Xml;
|
@@ -43,8 +42,6 @@ namespace TaleWorlds.ObjectSystem
|
|
43
42
|
|
44
43
|
public virtual extern void Deserialize(MBObjectManager objectManager, XmlNode node);
|
45
44
|
|
46
|
-
public virtual extern void Deserialize(MBObjectManager objectManager, XmlNode node, Type typeOfGameMenusCallbacks);
|
47
|
-
|
48
45
|
protected virtual extern void OnBeforeLoad();
|
49
46
|
|
50
47
|
public override extern int GetHashCode();
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
+
using System.Runtime.CompilerServices;
|
3
4
|
using System.Xml;
|
4
5
|
using System.Xml.Linq;
|
5
6
|
using TaleWorlds.Library;
|
@@ -8,7 +9,8 @@ namespace TaleWorlds.ObjectSystem
|
|
8
9
|
{
|
9
10
|
public sealed class MBObjectManager
|
10
11
|
{
|
11
|
-
public static MBObjectManager Instance {
|
12
|
+
public static MBObjectManager Instance { [CompilerGenerated]
|
13
|
+
get; }
|
12
14
|
|
13
15
|
public int NumRegisteredTypes { get; }
|
14
16
|
|
@@ -16,16 +18,10 @@ namespace TaleWorlds.ObjectSystem
|
|
16
18
|
|
17
19
|
public static extern MBObjectManager Init();
|
18
20
|
|
19
|
-
public static extern void Init(MBObjectManager existingObjectManager);
|
20
|
-
|
21
21
|
public extern void Destroy();
|
22
22
|
|
23
|
-
public extern int GetCounter(string id, bool isUsed);
|
24
|
-
|
25
23
|
public extern void RegisterType<T>(string classPrefix, string classListPrefix, uint typeId, bool autoCreateInstance = true, bool isTemporary = false) where T : MBObjectBase;
|
26
24
|
|
27
|
-
public extern void RegisterNonSerializedType<T>(string classPrefix, string classListPrefix, uint typeId, bool autoCreateInstance = true, bool isTemporary = false) where T : MBObjectBase;
|
28
|
-
|
29
25
|
public extern bool HasType(Type type);
|
30
26
|
|
31
27
|
public extern string FindRegisteredClassPrefix(Type type);
|
@@ -42,6 +38,8 @@ namespace TaleWorlds.ObjectSystem
|
|
42
38
|
|
43
39
|
public extern T GetObject<T>(string objectName) where T : MBObjectBase;
|
44
40
|
|
41
|
+
public extern T GetFirstObject<T>() where T : MBObjectBase;
|
42
|
+
|
45
43
|
public extern bool ContainsObject<T>(string objectName) where T : MBObjectBase;
|
46
44
|
|
47
45
|
public extern void RemoveTemporaryTypes();
|
@@ -58,7 +56,7 @@ namespace TaleWorlds.ObjectSystem
|
|
58
56
|
|
59
57
|
public extern IList<MBObjectBase> CreateObjectTypeList(Type objectClassType);
|
60
58
|
|
61
|
-
public extern void LoadXML(string id, bool isDevelopment, string gameType,
|
59
|
+
public extern void LoadXML(string id, bool isDevelopment, string gameType, bool skipXmlFilterForEditor = false);
|
62
60
|
|
63
61
|
public static extern XmlDocument GetMergedXmlForManaged(string id, bool skipValidation, bool ignoreGameTypeInclusionCheck = true, string gameType = "");
|
64
62
|
|
@@ -74,11 +72,11 @@ namespace TaleWorlds.ObjectSystem
|
|
74
72
|
|
75
73
|
public static extern XmlDocument ToXmlDocument(XDocument xDocument);
|
76
74
|
|
77
|
-
public extern void LoadOneXmlFromFile(string xmlPath, string xsdPath,
|
75
|
+
public extern void LoadOneXmlFromFile(string xmlPath, string xsdPath, bool skipValidation = false);
|
78
76
|
|
79
77
|
public extern XmlDocument LoadXMLFromFileSkipValidation(string xmlPath, string xsdPath);
|
80
78
|
|
81
|
-
public extern void LoadXml(XmlDocument doc,
|
79
|
+
public extern void LoadXml(XmlDocument doc, bool isDevelopment = false);
|
82
80
|
|
83
81
|
public extern MBObjectBase CreateObjectFromXmlNode(XmlNode node);
|
84
82
|
|
@@ -94,8 +92,6 @@ namespace TaleWorlds.ObjectSystem
|
|
94
92
|
|
95
93
|
public extern MBObjectBase ReadObjectReferenceFromXml(string attributeName, Type objectType, XmlNode node);
|
96
94
|
|
97
|
-
public extern void WriteObjectReferenceToXml(string attributeName, MBObjectBase mbObject, XmlWriter writer);
|
98
|
-
|
99
95
|
public extern T CreateObject<T>(string stringId) where T : MBObjectBase, new();
|
100
96
|
|
101
97
|
public extern T CreateObject<T>() where T : MBObjectBase, new();
|