gg.easy.airship 0.1.2186 → 0.1.2188

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.
Files changed (40) hide show
  1. package/Editor/Accessories/AccessoryBuilderEditor.cs +66 -65
  2. package/Editor/Accessories/Clothing/PlatformGearBundleManifestEditor.cs +17 -1
  3. package/Editor/BuildMenu.cs +1 -1
  4. package/Editor/Easy.Airship.Editor.asmdef +2 -1
  5. package/Editor/Publish/Deploy.cs +1 -0
  6. package/Editor/Quality/QualityConfig.cs +14 -6
  7. package/Editor/TypescriptCompiler~/utsc.js +149 -149
  8. package/Runtime/Code/Accessories/Clothing/Editor/PlatformGearDownloader.cs +145 -0
  9. package/Runtime/Code/Accessories/Clothing/Editor/PlatformGearDownloader.cs.meta +3 -0
  10. package/Runtime/Code/Accessories/Clothing/Editor.meta +3 -0
  11. package/Runtime/Code/Accessories/Clothing/PlatformGear.cs +48 -1
  12. package/Runtime/Code/AirshipConst.cs +2 -2
  13. package/Runtime/Code/Bundles/AirshipPlatform.cs +2 -2
  14. package/Runtime/Code/Luau/LuauAssembly/BinaryBlob.cs +43 -33
  15. package/Runtime/Code/Luau/LuauAssembly/LuauAPI.asmdef +2 -1
  16. package/Runtime/Code/Luau/LuauCore.cs +4 -3
  17. package/Runtime/Code/Luau/LuauCoreCallbacks.cs +80 -48
  18. package/Runtime/Code/Luau/LuauCoreReflection.cs +2 -5
  19. package/Runtime/Code/Luau/LuauLogLevel.cs +8 -0
  20. package/Runtime/Code/Luau/LuauLogLevel.cs.meta +3 -0
  21. package/Runtime/Code/Luau/LuauPlugin.cs +6 -0
  22. package/Runtime/Code/Luau/LuauPluginNative.cs +11 -1
  23. package/Runtime/Code/Luau/ReflectionList.cs +3 -0
  24. package/Runtime/Code/Network/Net.cs +52 -2
  25. package/Runtime/Code/Player/Character/Animation/CharacterAnimationHelper.cs +2 -2
  26. package/Runtime/Code/Player/Character/MovementSystems/Character/CharacterMovement.cs +3 -2
  27. package/Runtime/Code/Player/Character/MovementSystems/Character/Structures/CharacterInputData.cs +2 -6
  28. package/Runtime/Code/Player/Character/MovementSystems/Character/Structures/CharacterSnapshotData.cs +6 -16
  29. package/Runtime/Code/Player/PlayerManagerBridge.cs +11 -13
  30. package/Runtime/Code/Quality/QualityManager.cs +5 -0
  31. package/Runtime/Code/VoxelWorld/Resources/VoxelWorldMatURP.mat +4 -4
  32. package/Runtime/Code/Zstd/Zstd.cs +25 -11
  33. package/Runtime/Plugins/Android/libLuauPlugin.so +0 -0
  34. package/Runtime/Plugins/Linux/libLuauPlugin.so +0 -0
  35. package/Runtime/Plugins/Mac/LuauPlugin.bundle/Contents/MacOS/LuauPlugin +0 -0
  36. package/Runtime/Plugins/Windows/x64/LuauPlugin.dll +0 -0
  37. package/Runtime/Plugins/iOS/LuauPluginIos.a +0 -0
  38. package/ThirdParty/Agones/AgonesSdk.cs +1 -3
  39. package/URP/AirshipURPAsset.asset +1 -1
  40. package/package.json +1 -1
@@ -1,81 +1,82 @@
1
- using System.Threading.Tasks;
2
1
  using UnityEditor;
3
2
  using UnityEngine;
4
3
 
5
- [CustomEditor(typeof(AccessoryBuilder))]
6
- //[CanEditMultipleObjects]
7
- public class AccessoryBuilderEditor : UnityEditor.Editor{
4
+ namespace Editor.Accessories {
5
+ [CustomEditor(typeof(AccessoryBuilder))]
6
+ [Icon("Packages/gg.easy.airship/Editor/shirt-outline-icon.png")]
7
+ public class AccessoryBuilderEditor : UnityEditor.Editor{
8
8
 
9
- private bool downloading = false;
10
- private bool canceled = false;
9
+ private bool downloading = false;
10
+ private bool canceled = false;
11
11
 
12
- public override void OnInspectorGUI() {
13
- AccessoryBuilder builder = (AccessoryBuilder)target;
14
- EditorGUILayout.LabelField("Requried Setup");
15
- DrawDefaultInspector();
12
+ public override void OnInspectorGUI() {
13
+ AccessoryBuilder builder = (AccessoryBuilder)target;
14
+ EditorGUILayout.LabelField("Required Setup", EditorStyles.boldLabel);
15
+ DrawDefaultInspector();
16
16
 
17
- EditorGUILayout.Space(30);
17
+ EditorGUILayout.Space(30);
18
18
 
19
- EditorGUILayout.LabelField("Editor Tools");
19
+ EditorGUILayout.LabelField("Editor Tools", EditorStyles.boldLabel);
20
20
 
21
- builder.currentOutfit = (AccessoryOutfit)EditorGUILayout.ObjectField("Outfit", builder.currentOutfit, typeof(AccessoryOutfit), true);
22
-
23
- GUI.enabled = !downloading;
24
- if (GUILayout.Button("Equip Referenced Outfit")) {
25
- if(builder.currentOutfit != null){
26
- Debug.Log("Equipping outfit " + builder.currentOutfit.name);
27
- builder.LoadOutfit(builder.currentOutfit);
28
- builder.UpdateCombinedMesh();
21
+ builder.currentOutfit = (AccessoryOutfit)EditorGUILayout.ObjectField("Outfit", builder.currentOutfit, typeof(AccessoryOutfit), true);
22
+
23
+ GUI.enabled = !downloading;
24
+ if (GUILayout.Button("Equip Referenced Outfit")) {
25
+ if(builder.currentOutfit != null){
26
+ Debug.Log("Equipping outfit " + builder.currentOutfit.name);
27
+ builder.LoadOutfit(builder.currentOutfit);
28
+ builder.UpdateCombinedMesh();
29
+ }
29
30
  }
30
- }
31
-
32
- // GUILayout.Space(10);
33
- // GUI.enabled = true;
34
- // builder.currentUserName = EditorGUILayout.TextField("Username", builder.currentUserName);
35
- // builder.currentUserId = EditorGUILayout.TextField("User ID", builder.currentUserId);
36
- // GUI.enabled = !downloading;
37
- // if (GUILayout.Button("Equip User Outfit")) {
38
- // if(!string.IsNullOrEmpty(builder.currentUserName)){
39
- // DownloadUsernameOutfit(builder);
40
- // }
41
- // if(!string.IsNullOrEmpty(builder.currentUserId)){
42
- // Debug.Log("Equipping user outfit " + builder.currentUserId);
43
- // DownloadUserOutfit(builder);
44
- // }
45
- // }
46
- // GUI.enabled = true;
47
- // GUILayout.Space(30);
48
31
 
49
- if (GUILayout.Button("Clear Outfit")) {
50
- if(downloading){
51
- builder.cancelPendingDownload = true;
52
- downloading = false;
32
+ // GUILayout.Space(10);
33
+ // GUI.enabled = true;
34
+ // builder.currentUserName = EditorGUILayout.TextField("Username", builder.currentUserName);
35
+ // builder.currentUserId = EditorGUILayout.TextField("User ID", builder.currentUserId);
36
+ // GUI.enabled = !downloading;
37
+ // if (GUILayout.Button("Equip User Outfit")) {
38
+ // if(!string.IsNullOrEmpty(builder.currentUserName)){
39
+ // DownloadUsernameOutfit(builder);
40
+ // }
41
+ // if(!string.IsNullOrEmpty(builder.currentUserId)){
42
+ // Debug.Log("Equipping user outfit " + builder.currentUserId);
43
+ // DownloadUserOutfit(builder);
44
+ // }
45
+ // }
46
+ // GUI.enabled = true;
47
+ // GUILayout.Space(30);
48
+
49
+ if (GUILayout.Button("Clear Outfit")) {
50
+ if(downloading){
51
+ builder.cancelPendingDownload = true;
52
+ downloading = false;
53
+ }
54
+ Debug.Log("Clearing outfit.");
55
+ builder.RemoveAll();
56
+ builder.SetSkinColor(new Color(0.7169812f, 0.5064722f, 0.3754005f));
57
+ builder.UpdateCombinedMesh();
53
58
  }
54
- Debug.Log("Clearing outfit.");
55
- builder.RemoveAll();
56
- builder.SetSkinColor(new Color(0.7169812f, 0.5064722f, 0.3754005f));
57
- builder.UpdateCombinedMesh();
58
- }
59
59
 
60
60
 
61
- if(GUI.changed){
62
- EditorUtility.SetDirty(builder);
61
+ if(GUI.changed){
62
+ EditorUtility.SetDirty(builder);
63
+ }
63
64
  }
64
- }
65
65
 
66
- // private async Task DownloadUserOutfit(AccessoryBuilder builder) {
67
- // Debug.Log("Starting download");
68
- // downloading = true;
69
- // await builder.AddOutfitFromUserId(builder.currentUserId);
70
- // Debug.Log("Done with download");
71
- // downloading = false;
72
- // }
73
- //
74
- // private async Task DownloadUsernameOutfit(AccessoryBuilder builder) {
75
- // Debug.Log("Starting download");
76
- // downloading = true;
77
- // await builder.EquipOutfitFromUsername(builder.currentUserName);
78
- // Debug.Log("Done with download");
79
- // downloading = false;
80
- // }
66
+ // private async Task DownloadUserOutfit(AccessoryBuilder builder) {
67
+ // Debug.Log("Starting download");
68
+ // downloading = true;
69
+ // await builder.AddOutfitFromUserId(builder.currentUserId);
70
+ // Debug.Log("Done with download");
71
+ // downloading = false;
72
+ // }
73
+ //
74
+ // private async Task DownloadUsernameOutfit(AccessoryBuilder builder) {
75
+ // Debug.Log("Starting download");
76
+ // downloading = true;
77
+ // await builder.EquipOutfitFromUsername(builder.currentUserName);
78
+ // Debug.Log("Done with download");
79
+ // downloading = false;
80
+ // }
81
+ }
81
82
  }
@@ -71,6 +71,11 @@ namespace Editor.Accessories.Clothing {
71
71
 
72
72
  public async Task BuildAllPlatforms() {
73
73
  var st = Stopwatch.StartNew();
74
+
75
+ if (!AirshipPackagesWindow.VerifyBuildModules(true)) {
76
+ return;
77
+ }
78
+
74
79
  bool success = true;
75
80
 
76
81
  List<AirshipPlatform> platforms = new();
@@ -193,6 +198,15 @@ namespace Editor.Accessories.Clothing {
193
198
 
194
199
  bundlePaths.Add(path);
195
200
  }
201
+ // {
202
+ // var path = await this.BuildPlatform(AirshipPlatform.Windows, airId);
203
+ // if (string.IsNullOrEmpty(path)) {
204
+ // success = false;
205
+ // return;
206
+ // }
207
+ //
208
+ // bundlePaths.Add(path);
209
+ // }
196
210
 
197
211
  if (!success) return;
198
212
 
@@ -202,6 +216,7 @@ namespace Editor.Accessories.Clothing {
202
216
  for (int i = 0; i < platforms.Count; i++) {
203
217
  var platform = platforms[i];
204
218
  var buildOutputFile = bundlePaths[i];
219
+ // var buildOutputFile = bundlePaths[0];
205
220
 
206
221
  // Update air asset
207
222
  var bytes = await File.ReadAllBytesAsync(buildOutputFile);
@@ -279,6 +294,7 @@ namespace Editor.Accessories.Clothing {
279
294
  /// <returns>Path to built bundle. Empty string if it failed.</returns>
280
295
  private async Task<string> BuildPlatform(AirshipPlatform platform, string airId) {
281
296
  var st = Stopwatch.StartNew();
297
+
282
298
  var manifest = (PlatformGearBundleManifest)this.target;
283
299
 
284
300
  var buildOutputFolder = "bundles/gear/";
@@ -340,7 +356,7 @@ namespace Editor.Accessories.Clothing {
340
356
  CreateAssetBundles.buildingBundles = false;
341
357
  AirshipScriptableBuildPipelineConfig.buildingGameBundles = false;
342
358
  if (returnCode != ReturnCode.Success) {
343
- Debug.LogError("Failed to build asset bundles. ReturnCode=" + returnCode);
359
+ Debug.LogError("Failed to build asset bundles. ReturnCode: " + returnCode);
344
360
  return null;
345
361
  }
346
362
  Debug.Log($"Finished building {platform} in {st.Elapsed.TotalSeconds} seconds.");
@@ -44,7 +44,7 @@ namespace Editor {
44
44
  return $"{gb:F2} GB [{bytes} bytes]";
45
45
  }
46
46
 
47
- private static void OnBuild() {
47
+ public static void OnBuild() {
48
48
  PhysicsSetup.Setup();
49
49
  }
50
50
 
@@ -67,7 +67,8 @@
67
67
  "GUID:2a0340569ab0e1245a38e0d6c7b2529b",
68
68
  "GUID:befe48b9a36afc04ea625c93daad910e",
69
69
  "GUID:5966039ae77c64b44bc04472c1ae63bb",
70
- "GUID:8db43d2f2329593428db90e3b3a6034c"
70
+ "GUID:8db43d2f2329593428db90e3b3a6034c",
71
+ "GUID:15fc0a57446b3144c949da3e2b9737a9"
71
72
  ],
72
73
  "includePlatforms": [
73
74
  "Editor"
@@ -19,6 +19,7 @@ using UnityEditor;
19
19
  using UnityEditor.SceneManagement;
20
20
  using UnityEngine;
21
21
  using UnityEngine.Networking;
22
+ using UnityEngine.Rendering;
22
23
  using UnityEngine.SceneManagement;
23
24
  using Debug = UnityEngine.Debug;
24
25
 
@@ -2,6 +2,7 @@
2
2
  using UnityEditor;
3
3
  using UnityEngine;
4
4
  using UnityEngine.Rendering;
5
+ using UnityEngine.Rendering.Universal;
5
6
 
6
7
  namespace Editor.Quality {
7
8
  [InitializeOnLoad]
@@ -34,9 +35,12 @@ namespace Editor.Quality {
34
35
  // Not super necessary, so if we notice animation issues on mobile we can increase this.
35
36
  QualitySettings.skinWeights = SkinWeights.TwoBones;
36
37
 
37
- QualitySettings.renderPipeline =
38
- AssetDatabase.LoadAssetAtPath<RenderPipelineAsset>(
39
- "Packages/gg.easy.airship/URP/AirshipMobileURPAsset.asset");
38
+ var pipeline = (UniversalRenderPipelineAsset) AssetDatabase.LoadAssetAtPath<RenderPipelineAsset>(
39
+ "Packages/gg.easy.airship/URP/AirshipMobileURPAsset.asset");
40
+ QualitySettings.renderPipeline = pipeline;
41
+
42
+ pipeline.shadowCascadeCount = 2;
43
+ pipeline.cascade4Split = new Vector3(0.067f, 0.2f, 0.467f);
40
44
  }
41
45
 
42
46
  private static void ConfigureForNormal() {
@@ -44,9 +48,13 @@ namespace Editor.Quality {
44
48
 
45
49
  QualitySettings.skinWeights = SkinWeights.FourBones;
46
50
 
47
- QualitySettings.renderPipeline =
48
- AssetDatabase.LoadAssetAtPath<RenderPipelineAsset>(
49
- "Packages/gg.easy.airship/URP/AirshipURPAsset.asset");
51
+ var pipeline = (UniversalRenderPipelineAsset) AssetDatabase.LoadAssetAtPath<RenderPipelineAsset>(
52
+ "Packages/gg.easy.airship/URP/AirshipURPAsset.asset");
53
+
54
+ QualitySettings.renderPipeline = pipeline;
55
+
56
+ pipeline.shadowCascadeCount = 2;
57
+ pipeline.cascade4Split = new Vector3(0.067f, 0.2f, 0.467f);
50
58
  }
51
59
 
52
60
  private static void SwapToQualityLevel(string name) {