gg.easy.airship 0.1.2179 → 0.1.2181
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.
- package/Editor/Build/AirshipIOSBuildProcessor.cs +1 -0
- package/Editor/LuauImporter.cs +3 -3
- package/Editor/LuauPluginUpdateCheck.cs +3 -1
- package/Editor/Settings/AirshipSettingsProvider.cs +3 -3
- package/Editor/TypescriptCompiler~/utsc.js +151 -151
- package/Editor/Util/AirshipEditorUtil.cs +5 -1
- package/Generator/LuauDirectCallbackGenerator.dll +0 -0
- package/Runtime/Code/Authentication/EasyAuthenticator.cs +1 -0
- package/Runtime/Code/Bootstrap/ServerBootstrap.cs +3 -1
- package/Runtime/Code/Bundles/AirshipLuauDebugger.cs +9 -9
- package/Runtime/Code/Bundles/AssetBridge.cs +1 -1
- package/Runtime/Code/Bundles/SystemRoot.cs +9 -9
- package/Runtime/Code/Components/AirshipScrollRectConfig.cs +20 -2
- package/Runtime/Code/Components/WorldSpaceScreenScaler.cs +1 -0
- package/Runtime/Code/CoreUI/Login/LoginApp.cs +13 -3
- package/Runtime/Code/CoreUI/Login/LoginWithApple.cs +7 -5
- package/Runtime/Code/CoreUI/MainMenu/ContinueButton.prefab +1 -1
- package/Runtime/Code/Haptics/VibrationManager.cs +34 -0
- package/Runtime/Code/Haptics/VibrationManager.cs.meta +3 -0
- package/Runtime/Code/Haptics.meta +3 -0
- package/Runtime/Code/Health/AirshipProfileExporter.cs +1 -1
- package/Runtime/Code/Http/HttpResponse.cs +4 -3
- package/Runtime/Code/Luau/Airship.LuauCore.asmdef +2 -1
- package/Runtime/Code/Luau/AirshipComponent.cs +10 -10
- package/Runtime/Code/Luau/CallbackWrapper.cs +6 -6
- package/Runtime/Code/Luau/LuauAssembly/LuauAPI.cs +13 -2
- package/Runtime/Code/Luau/LuauCompiler.cs +2 -2
- package/Runtime/Code/Luau/LuauCore.cs +9 -9
- package/Runtime/Code/Luau/LuauCoreCallbacks.cs +100 -48
- package/Runtime/Code/Luau/LuauCoreReflection.cs +45 -45
- package/Runtime/Code/Luau/LuauCoreUtilities.cs +1 -1
- package/Runtime/Code/Luau/LuauMetadata.cs +1 -1
- package/Runtime/Code/Luau/LuauPlugin.cs +571 -976
- package/Runtime/Code/Luau/LuauPluginNative.cs +874 -0
- package/Runtime/Code/Luau/LuauPluginNative.cs.meta +3 -0
- package/Runtime/Code/Luau/LuauPluginRaw.cs +17 -106
- package/Runtime/Code/Luau/LuauScript.cs +4 -4
- package/Runtime/Code/Luau/LuauSignalWrapper.cs +25 -25
- package/Runtime/Code/Luau/LuauState.cs +13 -13
- package/Runtime/Code/Luau/ReflectionList.cs +18 -8
- package/Runtime/Code/Luau/ThreadManager.cs +5 -5
- package/Runtime/Code/LuauAPI/AirshipBehaviourHelper.cs +8 -8
- package/Runtime/Code/LuauAPI/EmissionModuleAPI.cs +9 -0
- package/Runtime/Code/LuauAPI/EmissionModuleAPI.cs.meta +3 -0
- package/Runtime/Code/LuauAPI/GraphicsStateCollectionAPI.cs +9 -0
- package/Runtime/Code/LuauAPI/GraphicsStateCollectionAPI.cs.meta +3 -0
- package/Runtime/Code/LuauAPI/ParticleMainModuleAPI.cs +9 -0
- package/Runtime/Code/LuauAPI/ParticleMainModuleAPI.cs.meta +3 -0
- package/Runtime/Code/LuauAPI/QualitySettingsAPI.cs +2 -1
- package/Runtime/Code/LuauAPI/RectOffsetAPI.cs +11 -0
- package/Runtime/Code/LuauAPI/RectOffsetAPI.cs.meta +3 -0
- package/Runtime/Code/LuauAPI/TouchscreenAPI.cs +9 -0
- package/Runtime/Code/LuauAPI/TouchscreenAPI.cs.meta +3 -0
- package/Runtime/Code/LuauAPI/VignetteAPI.cs +9 -0
- package/Runtime/Code/LuauAPI/VignetteAPI.cs.meta +3 -0
- package/Runtime/Code/LuauHelper/LuauHelper.cs +27 -9
- package/Runtime/Code/MainMenu/DisconnectedScreen.cs +3 -1
- package/Runtime/Code/MainMenu/ProfileManagerSingleton.cs +1 -1
- package/Runtime/Code/Managers/CanvasDistanceManager.cs +16 -8
- package/Runtime/Code/Misc/CanvasDistanceCondition.cs +1 -1
- package/Runtime/Code/Misc/MemoryDevConsole.cs +2 -2
- package/Runtime/Code/NativePlugins/NativeDelegateAttribute.cs +20 -0
- package/Runtime/Code/NativePlugins/NativeDelegateAttribute.cs.meta +3 -0
- package/Runtime/Code/NativePlugins/NativeLibUtil.cs +173 -0
- package/Runtime/Code/NativePlugins/NativeLibUtil.cs.meta +3 -0
- package/Runtime/Code/NativePlugins/NativePluginAttribute.cs +15 -0
- package/Runtime/Code/NativePlugins/NativePluginAttribute.cs.meta +3 -0
- package/Runtime/Code/NativePlugins/NativePluginHandles.cs +110 -0
- package/Runtime/Code/NativePlugins/NativePluginHandles.cs.meta +3 -0
- package/Runtime/Code/NativePlugins/NativePlugins.asmdef +3 -0
- package/Runtime/Code/NativePlugins/NativePlugins.asmdef.meta +7 -0
- package/Runtime/Code/NativePlugins.meta +3 -0
- package/Runtime/Code/Network/AirshipNetworkManager.cs +6 -0
- package/Runtime/Code/PSO/PSOTraceManager.cs +90 -0
- package/Runtime/Code/PSO/PSOTraceManager.cs.meta +3 -0
- package/Runtime/Code/PSO.meta +3 -0
- package/Runtime/Code/Player/Accessories/ActiveAccessory.cs +1 -0
- package/Runtime/Code/Quality/QualityManager.cs +1 -0
- package/Runtime/Code/TSCodeGen/Editor/CsToTs/TypeScript/Helper.cs +27 -7
- package/Runtime/Code/TSCodeGen/TypeGenerator.cs +11 -1
- package/Runtime/Code/Transfer/TransferManager.cs +6 -1
- package/Runtime/Code/Util/Singleton.cs +5 -0
- package/Runtime/Code/VoxelWorld/VoxelBlockDefinition.cs +2 -5
- package/Runtime/Code/VoxelWorld/VoxelBlocks.cs +19 -14
- package/Runtime/Code/VoxelWorld/VoxelWorld.cs +4 -4
- package/Runtime/Code/VoxelWorld/VoxelWorldNetworker.cs +1 -1
- package/Runtime/Code/VoxelWorld/VoxelWorldRaycasts.cs +1 -0
- package/Runtime/Code/Zstd/Zstd.asmdef +3 -1
- package/Runtime/Code/Zstd/Zstd.cs +69 -3
- package/Runtime/Code/Zstd/ZstdNative.cs +173 -6
- package/Runtime/Plugins/Android/libLuauPlugin.so +0 -0
- package/Runtime/Plugins/Linux/libLuauPlugin.so +0 -0
- package/Runtime/Plugins/Linux/libUnityInterfacePlugin.so +0 -0
- package/Runtime/Plugins/Linux/libUnityInterfacePlugin.so.meta +62 -0
- package/Runtime/Plugins/Mac/LuauPlugin.bundle/Contents/Info.plist +2 -2
- package/Runtime/Plugins/Mac/LuauPlugin.bundle/Contents/MacOS/LuauPlugin +0 -0
- package/Runtime/Plugins/Mac/UnityInterfacePlugin.bundle/Contents/Info.plist +18 -0
- package/Runtime/Plugins/Mac/UnityInterfacePlugin.bundle/Contents/MacOS/UnityInterfacePlugin +0 -0
- package/Runtime/Plugins/Mac/UnityInterfacePlugin.bundle.meta +61 -0
- package/Runtime/Plugins/Windows/x64/LuauPlugin.dll +0 -0
- package/Runtime/Plugins/Windows/x64/UnityInterfacePlugin.dll +0 -0
- package/Runtime/Plugins/Windows/x64/UnityInterfacePlugin.dll.meta +65 -0
- package/Runtime/Plugins/iOS/LuauPluginIos.a +0 -0
- package/Runtime/Scenes/CoreScene.unity +363 -318
- package/Runtime/Scenes/Login.unity +695 -383
- package/ThirdParty/NativeGallery/iOS/NativeGallery.mm +3 -1
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ namespace Editor.Build {
|
|
|
19
19
|
var root = plist.root;
|
|
20
20
|
var buildKey = "NSCameraUsageDescription";
|
|
21
21
|
root.SetString(buildKey, "Use the camera to take profile pictures.");
|
|
22
|
+
root.SetBoolean("GCSupportsGameMode", true);
|
|
22
23
|
File.WriteAllText(plistPath, plist.WriteToString());
|
|
23
24
|
#endif
|
|
24
25
|
}
|
package/Editor/LuauImporter.cs
CHANGED
|
@@ -81,7 +81,7 @@ public class LuauImporter : UnityEditor.AssetImporters.ScriptedImporter {
|
|
|
81
81
|
} finally {
|
|
82
82
|
AssetDatabase.StopAssetEditing();
|
|
83
83
|
}
|
|
84
|
-
Debug.Log("
|
|
84
|
+
Debug.Log($"Total Luau bytecode size: {EditorUtility.FormatBytes(byteCounter)}");
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
protected (string fileName, LuauCompiler.CompilationResult? result) CompileLuauAsset(UnityEditor.AssetImporters.AssetImportContext ctx, AirshipScript subAsset, string assetPath) {
|
|
@@ -89,7 +89,7 @@ public class LuauImporter : UnityEditor.AssetImporters.ScriptedImporter {
|
|
|
89
89
|
|
|
90
90
|
if (!_mutableGlobalsSet) {
|
|
91
91
|
try {
|
|
92
|
-
LuauPlugin.
|
|
92
|
+
LuauPlugin.SetMutableGlobals(LuauCompiler.MutableGlobals);
|
|
93
93
|
_mutableGlobalsSet = true;
|
|
94
94
|
} catch (LuauException e) {
|
|
95
95
|
Debug.LogError(e);
|
|
@@ -125,7 +125,7 @@ public class LuauImporter : UnityEditor.AssetImporters.ScriptedImporter {
|
|
|
125
125
|
// Compile
|
|
126
126
|
StopwatchCompile.Start();
|
|
127
127
|
var len = Encoding.UTF8.GetByteCount(data);
|
|
128
|
-
var res = LuauPlugin.
|
|
128
|
+
var res = LuauPlugin.CompileCode(dataStr, len, filenameStr, ctx.assetPath.Length, LuauPlugin.LuauOptimizationLevel.Baseline);
|
|
129
129
|
StopwatchCompile.Stop();
|
|
130
130
|
|
|
131
131
|
Marshal.FreeCoTaskMem(dataStr);
|
|
@@ -19,9 +19,10 @@ public static class LuauPluginUpdateCheck {
|
|
|
19
19
|
#if UNITY_EDITOR_WIN || UNITY_EDITOR_OSX
|
|
20
20
|
[InitializeOnLoadMethod]
|
|
21
21
|
private static void SetLuauTimeout() {
|
|
22
|
-
LuauPlugin.
|
|
22
|
+
LuauPlugin.SetScriptTimeoutDuration(EditorIntegrationsConfig.instance.luauScriptTimeout);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/*
|
|
25
26
|
[UnityEditor.Callbacks.DidReloadScripts]
|
|
26
27
|
private static void CheckHash() {
|
|
27
28
|
if (Application.isPlaying || !EditorIntegrationsConfig.instance.promptIfLuauPluginChanged) {
|
|
@@ -67,5 +68,6 @@ public static class LuauPluginUpdateCheck {
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
}
|
|
71
|
+
*/
|
|
70
72
|
#endif
|
|
71
73
|
}
|
|
@@ -185,7 +185,7 @@ public class AirshipSettingsProvider : SettingsProvider
|
|
|
185
185
|
|
|
186
186
|
if (newTimeout != EditorIntegrationsConfig.instance.luauScriptTimeout) {
|
|
187
187
|
EditorIntegrationsConfig.instance.luauScriptTimeout = newTimeout;
|
|
188
|
-
LuauPlugin.
|
|
188
|
+
LuauPlugin.SetScriptTimeoutDuration(newTimeout);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
if (GUI.changed) {
|
|
@@ -251,8 +251,8 @@ public class AirshipSettingsProvider : SettingsProvider
|
|
|
251
251
|
return provider;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.
|
|
254
|
+
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)]
|
|
255
255
|
private static void OnReload() {
|
|
256
|
-
LuauPlugin.
|
|
256
|
+
LuauPlugin.SetScriptTimeoutDuration(EditorIntegrationsConfig.instance.luauScriptTimeout);
|
|
257
257
|
}
|
|
258
258
|
}
|