gg.easy.airship 0.1.2131 → 0.1.2132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ using System;
2
+ using UnityEngine;
3
+
4
+ [LuauAPI]
5
+ public class WheelColliderAPI : BaseLuaAPIClass {
6
+ public override Type GetAPIType() {
7
+ return typeof(WheelCollider);
8
+ }
9
+
10
+ public override int OverrideMemberMethod(LuauContext context, IntPtr thread, object targetObject, string methodName, int numParameters,
11
+ ArraySegment<int> parameterDataPODTypes, ArraySegment<IntPtr> parameterDataPtrs, ArraySegment<int> parameterDataSizes) {
12
+
13
+ if (methodName == "GetGroundHit") {
14
+ var target = (WheelCollider)targetObject;
15
+ if (target.GetGroundHit(out var hit)) {
16
+ LuauCore.WritePropertyToThread(thread, hit, hit.GetType());
17
+ return 1;
18
+ }
19
+
20
+ return 0;
21
+ }
22
+
23
+ if (methodName == "GetWorldPose") {
24
+ var target = (WheelCollider)targetObject;
25
+ target.GetWorldPose(out var pos, out var quat);
26
+ LuauCore.WritePropertyToThread(thread, pos, pos.GetType());
27
+ LuauCore.WritePropertyToThread(thread, quat, quat.GetType());
28
+ return 2;
29
+ }
30
+
31
+ return -1;
32
+ }
33
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 87b4195a19a149fc8224151e3d0acf0f
3
+ timeCreated: 1746811250
@@ -222,6 +222,7 @@ public class TypeGenerator : MonoBehaviour
222
222
  typeof(GraphicsSettings),
223
223
  typeof(UniversalRenderPipelineAsset),
224
224
  typeof(WheelFrictionCurve),
225
+ typeof(WheelHit),
225
226
 
226
227
  // Mirror
227
228
  typeof(NetworkServer),
@@ -333,7 +334,8 @@ public class TypeGenerator : MonoBehaviour
333
334
  "\\.MonoBehaviour$",
334
335
  "\\.InternalCameraScreenshotRecorder$",
335
336
  "\\.OcclusionCam$",
336
- "\\.AirshipUniVoiceNetwork$"
337
+ "\\.AirshipUniVoiceNetwork$",
338
+ "\\.WheelFrictionCurve$",
337
339
  };
338
340
 
339
341
  var options = new TypeScriptOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg.easy.airship",
3
- "version": "0.1.2131",
3
+ "version": "0.1.2132",
4
4
  "displayName": "Airship",
5
5
  "unity": "2021.3",
6
6
  "unityRelease": "12f1",