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.
- package/Editor/Accessories/AccessoryBuilderEditor.cs +66 -65
- package/Editor/Accessories/Clothing/PlatformGearBundleManifestEditor.cs +17 -1
- package/Editor/BuildMenu.cs +1 -1
- package/Editor/Easy.Airship.Editor.asmdef +2 -1
- package/Editor/Publish/Deploy.cs +1 -0
- package/Editor/Quality/QualityConfig.cs +14 -6
- package/Editor/TypescriptCompiler~/utsc.js +149 -149
- package/Runtime/Code/Accessories/Clothing/Editor/PlatformGearDownloader.cs +145 -0
- package/Runtime/Code/Accessories/Clothing/Editor/PlatformGearDownloader.cs.meta +3 -0
- package/Runtime/Code/Accessories/Clothing/Editor.meta +3 -0
- package/Runtime/Code/Accessories/Clothing/PlatformGear.cs +48 -1
- package/Runtime/Code/AirshipConst.cs +2 -2
- package/Runtime/Code/Bundles/AirshipPlatform.cs +2 -2
- package/Runtime/Code/Luau/LuauAssembly/BinaryBlob.cs +43 -33
- package/Runtime/Code/Luau/LuauAssembly/LuauAPI.asmdef +2 -1
- package/Runtime/Code/Luau/LuauCore.cs +4 -3
- package/Runtime/Code/Luau/LuauCoreCallbacks.cs +80 -48
- package/Runtime/Code/Luau/LuauCoreReflection.cs +2 -5
- package/Runtime/Code/Luau/LuauLogLevel.cs +8 -0
- package/Runtime/Code/Luau/LuauLogLevel.cs.meta +3 -0
- package/Runtime/Code/Luau/LuauPlugin.cs +6 -0
- package/Runtime/Code/Luau/LuauPluginNative.cs +11 -1
- package/Runtime/Code/Luau/ReflectionList.cs +3 -0
- package/Runtime/Code/Network/Net.cs +52 -2
- package/Runtime/Code/Player/Character/Animation/CharacterAnimationHelper.cs +2 -2
- package/Runtime/Code/Player/Character/MovementSystems/Character/CharacterMovement.cs +3 -2
- package/Runtime/Code/Player/Character/MovementSystems/Character/Structures/CharacterInputData.cs +2 -6
- package/Runtime/Code/Player/Character/MovementSystems/Character/Structures/CharacterSnapshotData.cs +6 -16
- package/Runtime/Code/Player/PlayerManagerBridge.cs +11 -13
- package/Runtime/Code/Quality/QualityManager.cs +5 -0
- package/Runtime/Code/VoxelWorld/Resources/VoxelWorldMatURP.mat +4 -4
- package/Runtime/Code/Zstd/Zstd.cs +25 -11
- package/Runtime/Plugins/Android/libLuauPlugin.so +0 -0
- package/Runtime/Plugins/Linux/libLuauPlugin.so +0 -0
- package/Runtime/Plugins/Mac/LuauPlugin.bundle/Contents/MacOS/LuauPlugin +0 -0
- package/Runtime/Plugins/Windows/x64/LuauPlugin.dll +0 -0
- package/Runtime/Plugins/iOS/LuauPluginIos.a +0 -0
- package/ThirdParty/Agones/AgonesSdk.cs +1 -3
- package/URP/AirshipURPAsset.asset +1 -1
- 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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
10
|
-
|
|
9
|
+
private bool downloading = false;
|
|
10
|
+
private bool canceled = false;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
public override void OnInspectorGUI() {
|
|
13
|
+
AccessoryBuilder builder = (AccessoryBuilder)target;
|
|
14
|
+
EditorGUILayout.LabelField("Required Setup", EditorStyles.boldLabel);
|
|
15
|
+
DrawDefaultInspector();
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
EditorGUILayout.Space(30);
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
EditorGUILayout.LabelField("Editor Tools", EditorStyles.boldLabel);
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
62
|
-
|
|
61
|
+
if(GUI.changed){
|
|
62
|
+
EditorUtility.SetDirty(builder);
|
|
63
|
+
}
|
|
63
64
|
}
|
|
64
|
-
}
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
|
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.");
|
package/Editor/BuildMenu.cs
CHANGED
|
@@ -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"
|
package/Editor/Publish/Deploy.cs
CHANGED
|
@@ -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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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) {
|