@@ -0,0 +1,18 @@
|
|
1
|
+
using System;
|
2
|
+
using TaleWorlds.DotNet;
|
3
|
+
using TaleWorlds.Library;
|
4
|
+
|
5
|
+
namespace TaleWorlds.Engine
|
6
|
+
{
|
7
|
+
[EngineClass("rglManaged_concurrent_task")]
|
8
|
+
public sealed class AsyncTask : NativeObject, ITask
|
9
|
+
{
|
10
|
+
internal extern AsyncTask(UIntPtr pointer);
|
11
|
+
|
12
|
+
public static extern AsyncTask CreateWithDelegate(ManagedDelegate function);
|
13
|
+
|
14
|
+
extern void ITask.Invoke();
|
15
|
+
|
16
|
+
extern void ITask.Wait();
|
17
|
+
}
|
18
|
+
}
|
@@ -44,6 +44,7 @@ namespace TaleWorlds.Engine
|
|
44
44
|
BodyOwnerEntity = 0x1000000u,
|
45
45
|
BodyOwnerTerrain = 0x2000000u,
|
46
46
|
BodyOwnerFlora = 0x4000000u,
|
47
|
-
BodyOwnerFilter = 0xF000000u
|
47
|
+
BodyOwnerFilter = 0xF000000u,
|
48
|
+
IgnoreSoundOcclusion = 0x10000000u
|
48
49
|
}
|
49
50
|
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
namespace TaleWorlds.Engine
|
2
|
+
{
|
3
|
+
public delegate bool CheckForSceneProblemsDelegate(Scene scene);
|
4
|
+
}
|
@@ -44,6 +44,8 @@ namespace TaleWorlds.Engine
|
|
44
44
|
|
45
45
|
internal static ILight ILight;
|
46
46
|
|
47
|
+
internal static IAsyncTask IAsyncTask;
|
48
|
+
|
47
49
|
internal static IPhysicsMaterial IPhysicsMaterial;
|
48
50
|
|
49
51
|
internal static ISceneView ISceneView;
|
@@ -13,16 +13,27 @@ namespace TaleWorlds.Engine
|
|
13
13
|
remove;
|
14
14
|
}
|
15
15
|
|
16
|
+
public static event Action Unconstrained
|
17
|
+
{
|
18
|
+
[CompilerGenerated]
|
19
|
+
add;
|
20
|
+
[CompilerGenerated]
|
21
|
+
remove;
|
22
|
+
}
|
23
|
+
|
16
24
|
[EngineCallback]
|
17
25
|
internal static extern void Initialize();
|
18
26
|
|
19
27
|
[EngineCallback]
|
20
28
|
internal static extern void OnConfigChange();
|
21
29
|
|
30
|
+
[EngineCallback]
|
31
|
+
internal static extern void OnUnconstrained();
|
32
|
+
|
22
33
|
internal static extern void OnApplicationTick(float dt);
|
23
34
|
|
24
35
|
[EngineCallback]
|
25
|
-
public static extern string GetVersionStr(
|
36
|
+
public static extern string GetVersionStr();
|
26
37
|
|
27
38
|
[EngineCallback]
|
28
39
|
public static extern string GetApplicationPlatformName();
|
@@ -22,6 +22,8 @@ namespace TaleWorlds.Engine
|
|
22
22
|
[EngineCallback]
|
23
23
|
internal static extern void Update(NativeArray lastKeysPressed);
|
24
24
|
|
25
|
+
internal static extern void Initialize();
|
26
|
+
|
25
27
|
public extern EngineScreenManager();
|
26
28
|
}
|
27
29
|
}
|
@@ -9,7 +9,7 @@ namespace TaleWorlds.Engine
|
|
9
9
|
[EngineClass("rglEntity")]
|
10
10
|
public sealed class GameEntity : NativeObject
|
11
11
|
{
|
12
|
-
public enum ComponentType
|
12
|
+
public enum ComponentType : uint
|
13
13
|
{
|
14
14
|
MetaMesh,
|
15
15
|
Light,
|
@@ -67,6 +67,8 @@ namespace TaleWorlds.Engine
|
|
67
67
|
|
68
68
|
public int MultiMeshComponentCount { get; }
|
69
69
|
|
70
|
+
public int ClothSimulatorComponentCount { get; }
|
71
|
+
|
70
72
|
public Vec3 GlobalBoxMax { get; }
|
71
73
|
|
72
74
|
public Vec3 GlobalBoxMin { get; }
|
@@ -93,7 +95,7 @@ namespace TaleWorlds.Engine
|
|
93
95
|
|
94
96
|
public extern void AddMultiMeshToSkeletonBone(MetaMesh metaMesh, sbyte boneIndex);
|
95
97
|
|
96
|
-
[IteratorStateMachine(typeof(
|
98
|
+
[IteratorStateMachine(typeof(_003CGetAllMeshesWithTag_003Ed__16))]
|
97
99
|
public extern IEnumerable<Mesh> GetAllMeshesWithTag(string tag);
|
98
100
|
|
99
101
|
public extern void SetColor(uint color1, uint color2, string meshTag);
|
@@ -158,10 +160,10 @@ namespace TaleWorlds.Engine
|
|
158
160
|
|
159
161
|
public extern bool HasScriptComponent(string scName);
|
160
162
|
|
161
|
-
[IteratorStateMachine(typeof(
|
163
|
+
[IteratorStateMachine(typeof(_003CGetScriptComponents_003Ed__50))]
|
162
164
|
public extern IEnumerable<ScriptComponentBehavior> GetScriptComponents();
|
163
165
|
|
164
|
-
[IteratorStateMachine(typeof(
|
166
|
+
[IteratorStateMachine(typeof(_003CGetScriptComponents_003Ed__51<>))]
|
165
167
|
public extern IEnumerable<T> GetScriptComponents<T>() where T : ScriptComponentBehavior;
|
166
168
|
|
167
169
|
public extern IEnumerable<ScriptComponentBehavior> GetScriptComponents(Func<ScriptComponentBehavior, bool> predicate);
|
@@ -208,7 +210,7 @@ namespace TaleWorlds.Engine
|
|
208
210
|
|
209
211
|
internal static extern GameEntity GetNextEntityWithTagExpression(Scene scene, GameEntity startEntity, string tagExpression);
|
210
212
|
|
211
|
-
[IteratorStateMachine(typeof(
|
213
|
+
[IteratorStateMachine(typeof(_003CGetAllPrefabs_003Ed__77))]
|
212
214
|
public static extern IEnumerable<GameEntity> GetAllPrefabs();
|
213
215
|
|
214
216
|
internal static extern GameEntity GetNextPrefab(GameEntity current);
|
@@ -219,6 +221,8 @@ namespace TaleWorlds.Engine
|
|
219
221
|
|
220
222
|
public extern UpgradeLevelMask GetUpgradeLevelMask();
|
221
223
|
|
224
|
+
public extern UpgradeLevelMask GetUpgradeLevelMaskCumulative();
|
225
|
+
|
222
226
|
public extern int GetUpgradeLevelOfEntity();
|
223
227
|
|
224
228
|
public extern string GetOldPrefabName();
|
@@ -227,10 +231,10 @@ namespace TaleWorlds.Engine
|
|
227
231
|
|
228
232
|
public extern void CopyScriptComponentFromAnotherEntity(GameEntity otherEntity, string scriptName);
|
229
233
|
|
230
|
-
[IteratorStateMachine(typeof(
|
234
|
+
[IteratorStateMachine(typeof(_003CGetEntitiesWithTag_003Ed__87))]
|
231
235
|
internal static extern IEnumerable<GameEntity> GetEntitiesWithTag(Scene scene, string tag);
|
232
236
|
|
233
|
-
[IteratorStateMachine(typeof(
|
237
|
+
[IteratorStateMachine(typeof(_003CGetEntitiesWithTagExpression_003Ed__88))]
|
234
238
|
internal static extern IEnumerable<GameEntity> GetEntitiesWithTagExpression(Scene scene, string tagExpression);
|
235
239
|
|
236
240
|
public extern void SetFrame(ref MatrixFrame frame);
|
@@ -321,6 +325,8 @@ namespace TaleWorlds.Engine
|
|
321
325
|
|
322
326
|
public extern MetaMesh GetMetaMesh(int metaMeshIndex);
|
323
327
|
|
328
|
+
public extern ClothSimulatorComponent GetClothSimulator(int clothSimulatorIndex);
|
329
|
+
|
324
330
|
public extern void SetVectorArgument(float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3);
|
325
331
|
|
326
332
|
public extern void SetMaterialForAllMeshes(Material material);
|
@@ -385,10 +391,10 @@ namespace TaleWorlds.Engine
|
|
385
391
|
|
386
392
|
public extern void RemoveAllChildren();
|
387
393
|
|
388
|
-
[IteratorStateMachine(typeof(
|
394
|
+
[IteratorStateMachine(typeof(_003CGetChildren_003Ed__202))]
|
389
395
|
public extern IEnumerable<GameEntity> GetChildren();
|
390
396
|
|
391
|
-
[IteratorStateMachine(typeof(
|
397
|
+
[IteratorStateMachine(typeof(_003CGetEntityAndChildren_003Ed__203))]
|
392
398
|
public extern IEnumerable<GameEntity> GetEntityAndChildren();
|
393
399
|
|
394
400
|
public extern void GetChildrenRecursive(ref List<GameEntity> children);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
using System;
|
2
|
+
using TaleWorlds.DotNet;
|
3
|
+
using TaleWorlds.Library;
|
4
|
+
|
5
|
+
namespace TaleWorlds.Engine
|
6
|
+
{
|
7
|
+
[ApplicationInterfaceBase]
|
8
|
+
internal interface IAsyncTask
|
9
|
+
{
|
10
|
+
[EngineMethod("create_with_function", false)]
|
11
|
+
AsyncTask CreateWithDelegate(ManagedDelegate function);
|
12
|
+
|
13
|
+
[EngineMethod("invoke", false)]
|
14
|
+
void Invoke(UIntPtr Pointer);
|
15
|
+
|
16
|
+
[EngineMethod("wait", false)]
|
17
|
+
void Wait(UIntPtr Pointer);
|
18
|
+
}
|
19
|
+
}
|
@@ -29,6 +29,9 @@ namespace TaleWorlds.Engine
|
|
29
29
|
[EngineMethod("get_development_mode", false)]
|
30
30
|
bool GetDevelopmentMode();
|
31
31
|
|
32
|
+
[EngineMethod("get_localization_debug_mode", false)]
|
33
|
+
bool GetLocalizationDebugMode();
|
34
|
+
|
32
35
|
[EngineMethod("get_do_localization_check_at_startup", false)]
|
33
36
|
bool GetDoLocalizationCheckAtStartup();
|
34
37
|
|
@@ -119,9 +122,6 @@ namespace TaleWorlds.Engine
|
|
119
122
|
[EngineMethod("set_default_game_config", false)]
|
120
123
|
void SetDefaultGameConfig();
|
121
124
|
|
122
|
-
[EngineMethod("get_deterministic_mode", false)]
|
123
|
-
bool GetDeterministicMode();
|
124
|
-
|
125
125
|
[EngineMethod("auto_save_in_minutes", false)]
|
126
126
|
int AutoSaveInMinutes();
|
127
127
|
|
@@ -297,6 +297,9 @@ namespace TaleWorlds.Engine
|
|
297
297
|
[EngineMethod("get_upgrade_level_mask", false)]
|
298
298
|
uint GetUpgradeLevelMask(UIntPtr prefab);
|
299
299
|
|
300
|
+
[EngineMethod("get_upgrade_level_mask_cumulative", false)]
|
301
|
+
uint GetUpgradeLevelMaskCumulative(UIntPtr prefab);
|
302
|
+
|
300
303
|
[EngineMethod("get_old_prefab_name", false)]
|
301
304
|
string GetOldPrefabName(UIntPtr prefab);
|
302
305
|
|
@@ -174,6 +174,9 @@ namespace TaleWorlds.Engine
|
|
174
174
|
[EngineMethod("preload_for_rendering", false)]
|
175
175
|
void PreloadForRendering(UIntPtr multiMeshPointer);
|
176
176
|
|
177
|
+
[EngineMethod("check_resources", false)]
|
178
|
+
int CheckResources(UIntPtr meshPointer);
|
179
|
+
|
177
180
|
[EngineMethod("preload_shaders", false)]
|
178
181
|
void PreloadShaders(UIntPtr multiMeshPointer, bool useTableau, bool useTeamColor);
|
179
182
|
|
@@ -54,6 +54,9 @@ namespace TaleWorlds.Engine
|
|
54
54
|
[EngineMethod("add_capsule", false)]
|
55
55
|
void AddCapsule(UIntPtr shapePointer, ref CapsuleData data);
|
56
56
|
|
57
|
+
[EngineMethod("init_description", false)]
|
58
|
+
void InitDescription(UIntPtr shapePointer);
|
59
|
+
|
57
60
|
[EngineMethod("add_sphere", false)]
|
58
61
|
void AddSphere(UIntPtr shapePointer, ref Vec3 origin, float radius);
|
59
62
|
|
@@ -69,9 +72,6 @@ namespace TaleWorlds.Engine
|
|
69
72
|
[EngineMethod("clear", false)]
|
70
73
|
void clear(UIntPtr shapePointer);
|
71
74
|
|
72
|
-
[EngineMethod("init_description", false)]
|
73
|
-
void InitDescription(UIntPtr shapePointer);
|
74
|
-
|
75
75
|
[EngineMethod("transform", false)]
|
76
76
|
void Transform(UIntPtr shapePointer, ref MatrixFrame frame);
|
77
77
|
|
@@ -8,7 +8,7 @@ namespace TaleWorlds.Engine
|
|
8
8
|
internal interface IScene
|
9
9
|
{
|
10
10
|
[EngineMethod("create_new_scene", false)]
|
11
|
-
Scene CreateNewScene(bool initialize_physics, string sceneName = "mono_renderscene");
|
11
|
+
Scene CreateNewScene(bool initialize_physics, bool enable_decals = true, int atlasGroup = 0, string sceneName = "mono_renderscene");
|
12
12
|
|
13
13
|
[EngineMethod("get_path_between_ai_face_pointers", false)]
|
14
14
|
bool GetPathBetweenAIFacePointers(UIntPtr scenePointer, UIntPtr startingAiFace, UIntPtr endingAiFace, Vec2 startingPosition, Vec2 endingPosition, float agentRadius, Vec2[] result, ref int pathSize);
|
@@ -190,12 +190,21 @@ namespace TaleWorlds.Engine
|
|
190
190
|
[EngineMethod("get_campaign_entity_with_name", false)]
|
191
191
|
GameEntity GetCampaignEntityWithName(UIntPtr scenePointer, string entityName);
|
192
192
|
|
193
|
+
[EngineMethod("get_all_entities_with_script_component", false)]
|
194
|
+
void GetAllEntitiesWithScriptComponent(UIntPtr scenePointer, string scriptComponentName, UIntPtr output);
|
195
|
+
|
193
196
|
[EngineMethod("get_first_entity_with_script_component", false)]
|
194
197
|
GameEntity GetFirstEntityWithScriptComponent(UIntPtr scenePointer, string scriptComponentName);
|
195
198
|
|
196
199
|
[EngineMethod("get_upgrade_level_mask_of_level_name", false)]
|
197
200
|
uint GetUpgradeLevelMaskOfLevelName(UIntPtr scenePointer, string levelName);
|
198
201
|
|
202
|
+
[EngineMethod("get_level_name_of_level_index", false)]
|
203
|
+
string GetUpgradeLevelNameOfIndex(UIntPtr scenePointer, int index);
|
204
|
+
|
205
|
+
[EngineMethod("get_upgrade_level_count", false)]
|
206
|
+
int GetUpgradeLevelCount(UIntPtr scenePointer);
|
207
|
+
|
199
208
|
[EngineMethod("get_winter_time_factor", false)]
|
200
209
|
float GetWinterTimeFactor(UIntPtr scenePointer);
|
201
210
|
|
@@ -236,7 +245,7 @@ namespace TaleWorlds.Engine
|
|
236
245
|
void SetSkyRotation(UIntPtr scenePointer, float rotation);
|
237
246
|
|
238
247
|
[EngineMethod("set_sky_brightness", false)]
|
239
|
-
void
|
248
|
+
void SetSkyBrightness(UIntPtr scenePointer, float brightness);
|
240
249
|
|
241
250
|
[EngineMethod("set_forced_snow", false)]
|
242
251
|
void SetForcedSnow(UIntPtr scenePointer, bool value);
|
@@ -245,7 +254,7 @@ namespace TaleWorlds.Engine
|
|
245
254
|
void SetSun(UIntPtr scenePointer, Vec3 color, float altitude, float angle, float intensity);
|
246
255
|
|
247
256
|
[EngineMethod("set_sun_angle_altitude", false)]
|
248
|
-
void
|
257
|
+
void SetSunAngleAltitude(UIntPtr scenePointer, float angle, float altitude);
|
249
258
|
|
250
259
|
[EngineMethod("set_sun_light", false)]
|
251
260
|
void SetSunLight(UIntPtr scenePointer, Vec3 color, Vec3 direction);
|
@@ -589,6 +598,18 @@ namespace TaleWorlds.Engine
|
|
589
598
|
[EngineMethod("set_dlss_mode", false)]
|
590
599
|
void SetDLSSMode(UIntPtr scenePointer, bool mode);
|
591
600
|
|
601
|
+
[EngineMethod("get_soft_boundary_vertex_count", false)]
|
602
|
+
int GetSoftBoundaryVertexCount(UIntPtr scenePointer);
|
603
|
+
|
604
|
+
[EngineMethod("get_hard_boundary_vertex_count", false)]
|
605
|
+
int GetHardBoundaryVertexCount(UIntPtr scenePointer);
|
606
|
+
|
607
|
+
[EngineMethod("get_soft_boundary_vertex", false)]
|
608
|
+
Vec2 GetSoftBoundaryVertex(UIntPtr scenePointer, int index);
|
609
|
+
|
610
|
+
[EngineMethod("get_hard_boundary_vertex", false)]
|
611
|
+
Vec2 GetHardBoundaryVertex(UIntPtr scenePointer, int index);
|
612
|
+
|
592
613
|
[EngineMethod("get_path_with_name", false)]
|
593
614
|
Path GetPathWithName(UIntPtr scenePointer, string name);
|
594
615
|
|
@@ -43,7 +43,7 @@ namespace TaleWorlds.Engine
|
|
43
43
|
Vec2 ScreenPointToViewportPoint(UIntPtr ptr, float position_x, float position_y);
|
44
44
|
|
45
45
|
[EngineMethod("projected_mouse_position_on_ground", false)]
|
46
|
-
bool ProjectedMousePositionOnGround(UIntPtr pointer,
|
46
|
+
bool ProjectedMousePositionOnGround(UIntPtr pointer, out Vec3 groundPosition, out Vec3 groundNormal, bool mouseVisible, BodyFlags excludeBodyOwnerFlags, bool checkOccludedSurface);
|
47
47
|
|
48
48
|
[EngineMethod("translate_mouse", false)]
|
49
49
|
void TranslateMouse(UIntPtr pointer, ref Vec3 worldMouseNear, ref Vec3 worldMouseFar, float maxDistance);
|
@@ -81,10 +81,7 @@ namespace TaleWorlds.Engine
|
|
81
81
|
void ClearXBOXSoundManager();
|
82
82
|
|
83
83
|
[EngineMethod("update_xbox_local_user", false)]
|
84
|
-
void UpdateXBOXLocalUser(
|
85
|
-
|
86
|
-
[EngineMethod("get_player_xuid", false)]
|
87
|
-
ulong GetPlayerXuid(byte[] playerID, int sizeOfID);
|
84
|
+
void UpdateXBOXLocalUser();
|
88
85
|
|
89
86
|
[EngineMethod("update_xbox_chat_communication_flags", false)]
|
90
87
|
void UpdateXBOXChatCommunicationFlags(ulong XUID, bool canSendMicSound, bool canSendTextSound, bool canSendText, bool canReceiveSound, bool canReceiveText);
|
@@ -102,7 +99,7 @@ namespace TaleWorlds.Engine
|
|
102
99
|
void GetSizeOfDataToBeSentAt(int index, ref uint byte_count, ref uint numReceivers);
|
103
100
|
|
104
101
|
[EngineMethod("get_data_to_be_sent_at", false)]
|
105
|
-
|
102
|
+
bool GetDataToBeSentAt(int index, byte[] buffer, ulong[] receivers, ref bool transportGuaranteed);
|
106
103
|
|
107
104
|
[EngineMethod("clear_data_to_be_sent", false)]
|
108
105
|
void ClearDataToBeSent();
|
@@ -225,6 +225,15 @@ namespace TaleWorlds.Engine
|
|
225
225
|
[EngineMethod("get_main_fps", false)]
|
226
226
|
float GetMainFps();
|
227
227
|
|
228
|
+
[EngineMethod("on_loading_window_enabled", false)]
|
229
|
+
void OnLoadingWindowEnabled();
|
230
|
+
|
231
|
+
[EngineMethod("debug_set_global_loading_window_state", false)]
|
232
|
+
void DebugSetGlobalLoadingWindowState(bool s);
|
233
|
+
|
234
|
+
[EngineMethod("on_loading_window_disabled", false)]
|
235
|
+
void OnLoadingWindowDisabled();
|
236
|
+
|
228
237
|
[EngineMethod("disable_global_loading_window", false)]
|
229
238
|
void DisableGlobalLoadingWindow();
|
230
239
|
|
@@ -147,6 +147,8 @@ namespace TaleWorlds.Engine
|
|
147
147
|
|
148
148
|
public static extern void SetErrorReportScene(Scene scene);
|
149
149
|
|
150
|
+
public static extern void SetDumpGenerationDisabled(bool value);
|
151
|
+
|
150
152
|
[CommandLineFunctionality.CommandLineArgumentFunction("clear", "console")]
|
151
153
|
public static extern string ClearConsole(List<string> strings);
|
152
154
|
|
@@ -110,6 +110,8 @@ namespace TaleWorlds.Engine
|
|
110
110
|
|
111
111
|
public extern void PreloadForRendering();
|
112
112
|
|
113
|
+
public extern int CheckResources();
|
114
|
+
|
113
115
|
public extern void PreloadShaders(bool useTableau, bool useTeamColor);
|
114
116
|
|
115
117
|
public extern void RecomputeBoundingBox(bool recomputeMeshes);
|
@@ -11,6 +11,9 @@ namespace TaleWorlds.Engine
|
|
11
11
|
public static bool IsDevelopmentMode { [CompilerGenerated]
|
12
12
|
get; }
|
13
13
|
|
14
|
+
public static bool LocalizationDebugMode { [CompilerGenerated]
|
15
|
+
get; }
|
16
|
+
|
14
17
|
public static bool GetUIDebugMode { [CompilerGenerated]
|
15
18
|
get; }
|
16
19
|
|
@@ -32,8 +35,6 @@ namespace TaleWorlds.Engine
|
|
32
35
|
|
33
36
|
public static string LastOpenedScene { get; }
|
34
37
|
|
35
|
-
public static bool DeterministicMode { get; }
|
36
|
-
|
37
38
|
public static int AutoSaveInMinutes { get; }
|
38
39
|
|
39
40
|
public static bool GetUIDoNotUseGeneratedPrefabs { get; }
|
@@ -41,6 +41,8 @@ namespace TaleWorlds.Engine
|
|
41
41
|
|
42
42
|
public extern void AddCapsule(CapsuleData data);
|
43
43
|
|
44
|
+
public extern void InitDescription();
|
45
|
+
|
44
46
|
public extern void AddSphere(SphereData data);
|
45
47
|
|
46
48
|
public extern void SetCapsule(CapsuleData data, int index);
|
@@ -54,7 +56,5 @@ namespace TaleWorlds.Engine
|
|
54
56
|
public extern void Transform(ref MatrixFrame frame);
|
55
57
|
|
56
58
|
public extern void Clear();
|
57
|
-
|
58
|
-
public extern void InitDescription();
|
59
59
|
}
|
60
60
|
}
|
@@ -9,7 +9,9 @@ namespace TaleWorlds.Engine
|
|
9
9
|
{
|
10
10
|
public bool IsValid { get; }
|
11
11
|
|
12
|
-
|
12
|
+
protected extern Resource();
|
13
|
+
|
14
|
+
internal extern Resource(UIntPtr pointer);
|
13
15
|
|
14
16
|
[Conditional("_RGL_KEEP_ASSERTS")]
|
15
17
|
protected extern void CheckResourceParameter(Resource param, string paramName = "");
|
@@ -102,7 +102,7 @@ namespace TaleWorlds.Engine
|
|
102
102
|
|
103
103
|
public extern void GetNavMeshFaceIndex(ref PathFaceRecord record, Vec3 position, bool checkIfDisabled);
|
104
104
|
|
105
|
-
public static extern Scene CreateNewScene(bool initialize_physics = true, string sceneName = "mono_renderscene");
|
105
|
+
public static extern Scene CreateNewScene(bool initialize_physics = true, bool enable_decals = true, DecalAtlasGroup atlasGroup = DecalAtlasGroup.All, string sceneName = "mono_renderscene");
|
106
106
|
|
107
107
|
public extern MetaMesh CreatePathMesh(string baseEntityName, bool isWaterPath);
|
108
108
|
|
@@ -146,10 +146,16 @@ namespace TaleWorlds.Engine
|
|
146
146
|
|
147
147
|
public extern GameEntity GetCampaignEntityWithName(string name);
|
148
148
|
|
149
|
+
public extern void GetAllEntitiesWithScriptComponent<T>(ref List<GameEntity> entities) where T : ScriptComponentBehavior;
|
150
|
+
|
149
151
|
public extern GameEntity GetFirstEntityWithScriptComponent<T>() where T : ScriptComponentBehavior;
|
150
152
|
|
151
153
|
public extern uint GetUpgradeLevelMaskOfLevelName(string levelName);
|
152
154
|
|
155
|
+
public extern string GetUpgradeLevelNameOfIndex(int index);
|
156
|
+
|
157
|
+
public extern int GetUpgradeLevelCount();
|
158
|
+
|
153
159
|
public extern float GetWinterTimeFactor();
|
154
160
|
|
155
161
|
public extern float GetNavMeshFaceFirstVertexZ(int faceIndex);
|
@@ -394,6 +400,14 @@ namespace TaleWorlds.Engine
|
|
394
400
|
|
395
401
|
public extern IEnumerable<GameEntity> FindEntitiesWithTagExpression(string expression);
|
396
402
|
|
403
|
+
public extern int GetSoftBoundaryVertexCount();
|
404
|
+
|
405
|
+
public extern int GetHardBoundaryVertexCount();
|
406
|
+
|
407
|
+
public extern Vec2 GetSoftBoundaryVertex(int index);
|
408
|
+
|
409
|
+
public extern Vec2 GetHardBoundaryVertex(int index);
|
410
|
+
|
397
411
|
public extern Path GetPathWithName(string name);
|
398
412
|
|
399
413
|
public extern void DeletePathWithName(string name);
|
@@ -24,12 +24,8 @@ namespace TaleWorlds.Engine
|
|
24
24
|
|
25
25
|
public bool ForTerrainShaderCompile;
|
26
26
|
|
27
|
-
public bool EnableDecals;
|
28
|
-
|
29
27
|
public MatrixFrame CamPosFromScene;
|
30
28
|
|
31
|
-
public DecalAtlasGroup AtlasGroup;
|
32
|
-
|
33
29
|
public extern SceneInitializationData(bool initializeWithDefaults);
|
34
30
|
}
|
35
31
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
namespace TaleWorlds.Engine
|
2
|
+
{
|
3
|
+
public class SceneProblemChecker
|
4
|
+
{
|
5
|
+
[EngineCallback]
|
6
|
+
internal static extern bool OnCheckForSceneProblems(Scene scene);
|
7
|
+
|
8
|
+
public extern SceneProblemChecker();
|
9
|
+
}
|
10
|
+
}
|
@@ -33,7 +33,7 @@ namespace TaleWorlds.Engine
|
|
33
33
|
|
34
34
|
public extern Vec2 ScreenPointToViewportPoint(Vec2 position);
|
35
35
|
|
36
|
-
public extern bool ProjectedMousePositionOnGround(
|
36
|
+
public extern bool ProjectedMousePositionOnGround(out Vec3 groundPosition, out Vec3 groundNormal, bool mouseVisible, BodyFlags excludeBodyOwnerFlags, bool checkOccludedSurface);
|
37
37
|
|
38
38
|
public extern void TranslateMouse(ref Vec3 worldMouseNear, ref Vec3 worldMouseFar, float maxDistance = -1f);
|
39
39
|
|
@@ -19,6 +19,18 @@ namespace TaleWorlds.Engine
|
|
19
19
|
|
20
20
|
extern bool IScreenManagerEngineConnection.GetMouseVisible();
|
21
21
|
|
22
|
+
extern bool IScreenManagerEngineConnection.GetIsEnterButtonRDown();
|
23
|
+
|
24
|
+
extern void IScreenManagerEngineConnection.BeginDebugPanel(string panelTitle);
|
25
|
+
|
26
|
+
extern void IScreenManagerEngineConnection.EndDebugPanel();
|
27
|
+
|
28
|
+
extern void IScreenManagerEngineConnection.DrawDebugText(string text);
|
29
|
+
|
30
|
+
extern bool IScreenManagerEngineConnection.DrawDebugTreeNode(string text);
|
31
|
+
|
32
|
+
extern void IScreenManagerEngineConnection.PopDebugTreeNode();
|
33
|
+
|
22
34
|
public extern ScreenManagerEngineConnection();
|
23
35
|
}
|
24
36
|
}
|
@@ -6,6 +6,8 @@ namespace TaleWorlds.Engine
|
|
6
6
|
[EngineClass("rglScript_component")]
|
7
7
|
public abstract class ScriptComponent : NativeObject
|
8
8
|
{
|
9
|
+
protected extern ScriptComponent();
|
10
|
+
|
9
11
|
internal extern ScriptComponent(UIntPtr pointer);
|
10
12
|
}
|
11
13
|
}
|
@@ -52,9 +52,7 @@ namespace TaleWorlds.Engine
|
|
52
52
|
|
53
53
|
public static extern void ClearXBOXSoundManager();
|
54
54
|
|
55
|
-
public static extern void UpdateXBOXLocalUser(
|
56
|
-
|
57
|
-
public static extern ulong GetPlayerXuid(byte[] playerID, int sizeOfID);
|
55
|
+
public static extern void UpdateXBOXLocalUser();
|
58
56
|
|
59
57
|
public static extern void UpdateXBOXChatCommunicationFlags(ulong XUID, bool canSendMicSound, bool canSendTextSound, bool canSendText, bool canReceiveSound, bool canReceiveText);
|
60
58
|
|
@@ -68,7 +66,7 @@ namespace TaleWorlds.Engine
|
|
68
66
|
|
69
67
|
public static extern void GetSizeOfDataToBeSentAt(int index, ref uint byteCount, ref uint numReceivers);
|
70
68
|
|
71
|
-
public static extern
|
69
|
+
public static extern bool GetDataToBeSentAt(int index, byte[] buffer, ulong[] receivers, ref bool transportGuaranteed);
|
72
70
|
|
73
71
|
public static extern void ClearDataToBeSent();
|
74
72
|
|
@@ -172,6 +172,12 @@ namespace TaleWorlds.Engine
|
|
172
172
|
|
173
173
|
public static extern void FlushManagedObjectsMemory();
|
174
174
|
|
175
|
+
public static extern void OnLoadingWindowEnabled();
|
176
|
+
|
177
|
+
public static extern void DebugSetGlobalLoadingWindowState(bool newState);
|
178
|
+
|
179
|
+
public static extern void OnLoadingWindowDisabled();
|
180
|
+
|
175
181
|
public static extern void DisableGlobalLoadingWindow();
|
176
182
|
|
177
183
|
public static extern void EnableGlobalLoadingWindow();
|
@@ -59,7 +59,7 @@ namespace TaleWorlds.Engine
|
|
59
59
|
ClearDepth
|
60
60
|
}
|
61
61
|
|
62
|
-
internal extern View(UIntPtr
|
62
|
+
internal extern View(UIntPtr pointer);
|
63
63
|
|
64
64
|
public extern void SetScale(Vec2 scale);
|
65
65
|
|
@@ -47,10 +47,14 @@ namespace TaleWorlds.Engine.InputSystem
|
|
47
47
|
|
48
48
|
extern Vec2 IInputManager.GetResolution();
|
49
49
|
|
50
|
+
extern Vec2 IInputManager.GetDesktopResolution();
|
51
|
+
|
50
52
|
extern void IInputManager.SetCursorPosition(int x, int y);
|
51
53
|
|
52
54
|
extern void IInputManager.SetCursorFriction(float frictionValue);
|
53
55
|
|
56
|
+
extern InputKey IInputManager.GetControllerClickKey();
|
57
|
+
|
54
58
|
public extern EngineInputManager();
|
55
59
|
}
|
56
60
|
}
|
@@ -15,5 +15,7 @@ namespace TaleWorlds.Engine.Options
|
|
15
15
|
bool IsNative();
|
16
16
|
|
17
17
|
bool IsAction();
|
18
|
+
|
19
|
+
(string, bool) GetIsDisabledAndReasonID();
|
18
20
|
}
|
19
21
|
}
|
@@ -19,5 +19,7 @@ namespace TaleWorlds.Engine.Options
|
|
19
19
|
public extern bool IsNative();
|
20
20
|
|
21
21
|
public extern bool IsAction();
|
22
|
+
|
23
|
+
public extern (string, bool) GetIsDisabledAndReasonID();
|
22
24
|
}
|
23
25
|
}
|
@@ -24,6 +24,7 @@ namespace TaleWorlds.Engine.Options
|
|
24
24
|
SoundDevice,
|
25
25
|
MaxSimultaneousSoundEventCount,
|
26
26
|
SoundOutput,
|
27
|
+
SoundPreset,
|
27
28
|
KeepSoundInBackground,
|
28
29
|
SoundOcclusion,
|
29
30
|
MouseSensitivity,
|
@@ -1,3 +1,5 @@
|
|
1
|
+
using System.Numerics;
|
2
|
+
using System.Runtime.CompilerServices;
|
1
3
|
using TaleWorlds.Library;
|
2
4
|
using TaleWorlds.ScreenSystem;
|
3
5
|
|
@@ -5,9 +7,12 @@ namespace TaleWorlds.Engine.Screens
|
|
5
7
|
{
|
6
8
|
public class SceneLayer : ScreenLayer
|
7
9
|
{
|
10
|
+
public bool ClearSceneOnFinalize { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
8
13
|
public SceneView SceneView { get; }
|
9
14
|
|
10
|
-
public extern SceneLayer(string categoryId = "SceneLayer");
|
15
|
+
public extern SceneLayer(string categoryId = "SceneLayer", bool clearSceneOnFinalize = true);
|
11
16
|
|
12
17
|
protected override extern void OnActivate();
|
13
18
|
|
@@ -29,7 +34,7 @@ namespace TaleWorlds.Engine.Screens
|
|
29
34
|
|
30
35
|
public extern Vec2 ScreenPointToViewportPoint(Vec2 position);
|
31
36
|
|
32
|
-
public extern bool ProjectedMousePositionOnGround(
|
37
|
+
public extern bool ProjectedMousePositionOnGround(out Vec3 groundPosition, out Vec3 groundNormal, bool mouseVisible, BodyFlags excludeBodyOwnerFlags, bool checkOccludedSurface);
|
33
38
|
|
34
39
|
public extern void TranslateMouse(ref Vec3 worldMouseNear, ref Vec3 worldMouseFar, float maxDistance = -1f);
|
35
40
|
|
@@ -55,6 +60,8 @@ namespace TaleWorlds.Engine.Screens
|
|
55
60
|
|
56
61
|
protected override extern void RefreshGlobalOrder(ref int currentOrder);
|
57
62
|
|
63
|
+
public override extern bool HitTest(Vector2 position);
|
64
|
+
|
58
65
|
public override extern bool HitTest();
|
59
66
|
|
60
67
|
public override extern bool FocusTest();
|