gg.easy.airship 0.1.2138 → 0.1.2139

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.
@@ -255,9 +255,14 @@ public static class CreateAssetBundles {
255
255
  layers.Add(layerName);
256
256
  }
257
257
  gameConfig.gameLayers = layers.ToArray();
258
-
259
258
  gameConfig.SerializeSettings();
260
259
 
260
+ // Local source packages set to forceLatest
261
+ foreach (var package in gameConfig.packages) {
262
+ if (package.localSource) {
263
+ package.forceLatestVersion = true;
264
+ }
265
+ }
261
266
 
262
267
  EditorUtility.SetDirty(gameConfig);
263
268
  AssetDatabase.SaveAssetIfDirty(gameConfig);
@@ -63,6 +63,7 @@ public partial class LuauCore : MonoBehaviour {
63
63
  public Delegate GetProperty;
64
64
  public bool HasGetPropertyFunc;
65
65
  public bool IsNativeClass;
66
+ public bool IsStruct;
66
67
  }
67
68
 
68
69
  // Hopefully faster dictionary comparison / hash time
@@ -659,7 +660,7 @@ public partial class LuauCore : MonoBehaviour {
659
660
  }
660
661
 
661
662
  private static T GetValue<T>(object instance, PropertyGetReflectionCache cacheData) {
662
- if (typeof(T) == typeof(object) || cacheData.IsNativeClass) {
663
+ if (typeof(T) == typeof(object) || cacheData.IsNativeClass || cacheData.IsStruct) {
663
664
  return (T) cacheData.propertyInfo.GetMethod.Invoke(instance, null);
664
665
  }
665
666
 
@@ -671,7 +672,7 @@ public partial class LuauCore : MonoBehaviour {
671
672
  .MethodHandle
672
673
  .GetFunctionPointer()
673
674
  .ToPointer();
674
-
675
+
675
676
  // Create a delegate that wraps the function pointer
676
677
  var getter = new Getter<T>(obj => {
677
678
  unsafe {
@@ -1670,7 +1671,8 @@ public partial class LuauCore : MonoBehaviour {
1670
1671
  t = propertyInfo.PropertyType,
1671
1672
  propertyInfo = propertyInfo,
1672
1673
  IsNativeClass = propertyInfo.DeclaringType.GetCustomAttributes(false)
1673
- .Any(attr => attr.GetType().Name == "NativeClassAttribute")
1674
+ .Any(attr => attr.GetType().Name == "NativeClassAttribute"),
1675
+ IsStruct = propertyInfo.DeclaringType.IsValueType && !propertyInfo.DeclaringType.IsPrimitive,
1674
1676
  };
1675
1677
  LuauCore.propertyGetCache[new PropertyCacheKey(objectType, propName)] = cacheData;
1676
1678
  return cacheData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg.easy.airship",
3
- "version": "0.1.2138",
3
+ "version": "0.1.2139",
4
4
  "displayName": "Airship",
5
5
  "unity": "2021.3",
6
6
  "unityRelease": "12f1",