diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Editor/GameCult.Brokkr.Editor.asmdef b/surfaces/unity/Packages/com.gamecult.brokkr/Editor/GameCult.Brokkr.Editor.asmdef index 14df787..ff1f756 100644 --- a/surfaces/unity/Packages/com.gamecult.brokkr/Editor/GameCult.Brokkr.Editor.asmdef +++ b/surfaces/unity/Packages/com.gamecult.brokkr/Editor/GameCult.Brokkr.Editor.asmdef @@ -13,8 +13,30 @@ ], "excludePlatforms": [], "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], + "overrideReferences": true, + "precompiledReferences": [ + "ConcurrentCollections.dll", + "GameCult.Caching.MessagePack.dll", + "GameCult.Caching.dll", + "GameCult.Logging.dll", + "GameCult.Mesh.dll", + "GameCult.Networking.dll", + "Isopoh.Cryptography.Argon2.dll", + "Isopoh.Cryptography.Blake2b.dll", + "Isopoh.Cryptography.SecureArray.dll", + "LiteNetLib.dll", + "Microsoft.Bcl.AsyncInterfaces.dll", + "Microsoft.Bcl.TimeProvider.dll", + "Microsoft.NET.StringTools.dll", + "MessagePack.Annotations.dll", + "MessagePack.CultMesh.dll", + "R3.dll", + "System.Collections.Immutable.dll", + "System.IO.Pipelines.dll", + "System.Text.Encodings.Web.dll", + "System.Text.Json.dll", + "System.Threading.Channels.dll" + ], "autoReferenced": true, "defineConstraints": [], "versionDefines": [], diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Caching.MessagePack.dll b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Caching.MessagePack.dll index 06d94d3..2015536 100644 Binary files a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Caching.MessagePack.dll and b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Caching.MessagePack.dll differ diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Caching.dll b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Caching.dll index d054e5b..8c1ce8f 100644 Binary files a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Caching.dll and b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Caching.dll differ diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Logging.dll b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Logging.dll index 90dcd4f..93feec3 100644 Binary files a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Logging.dll and b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Logging.dll differ diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Mesh.dll b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Mesh.dll index ac25f32..e05ea84 100644 Binary files a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Mesh.dll and b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Mesh.dll differ diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Networking.dll b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Networking.dll index 601ed8e..6f3cf47 100644 Binary files a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Networking.dll and b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/GameCult.Networking.dll differ diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.Annotations.dll b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.Annotations.dll index ec0281d..3c580eb 100644 Binary files a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.Annotations.dll and b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.Annotations.dll differ diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.Annotations.dll.meta b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.Annotations.dll.meta index 7d1cfc0..c247a31 100644 --- a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.Annotations.dll.meta +++ b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.Annotations.dll.meta @@ -1,2 +1,27 @@ fileFormatVersion: 2 -guid: 36d3af9ac3f57cb46b1cbd574931f69c \ No newline at end of file +guid: 36d3af9ac3f57cb46b1cbd574931f69c +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 1 + validateReferences: 0 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.CultMesh.dll b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.CultMesh.dll new file mode 100644 index 0000000..4d9a7fd Binary files /dev/null and b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.CultMesh.dll differ diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.CultMesh.dll.meta b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.CultMesh.dll.meta new file mode 100644 index 0000000..21bd5f4 --- /dev/null +++ b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.CultMesh.dll.meta @@ -0,0 +1,27 @@ +fileFormatVersion: 2 +guid: 28ef17d784838b64cb4be5ebdc1ee8a0 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 1 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.dll b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.dll deleted file mode 100644 index 6971713..0000000 Binary files a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.dll and /dev/null differ diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.dll.meta b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.dll.meta deleted file mode 100644 index 6e5c93d..0000000 --- a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/MessagePack.dll.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 28ef17d784838b64cb4be5ebdc1ee8a0 \ No newline at end of file diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/System.Numerics.Vectors.dll b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/System.Numerics.Vectors.dll deleted file mode 100644 index a808165..0000000 Binary files a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/System.Numerics.Vectors.dll and /dev/null differ diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/System.Numerics.Vectors.dll.meta b/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/System.Numerics.Vectors.dll.meta deleted file mode 100644 index ea5a8e4..0000000 --- a/surfaces/unity/Packages/com.gamecult.brokkr/Plugins/CultMesh/System.Numerics.Vectors.dll.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 230003b782f92e349a35339fb2320133 \ No newline at end of file diff --git a/surfaces/unity/Packages/com.gamecult.brokkr/Runtime/GameCult.Brokkr.asmdef b/surfaces/unity/Packages/com.gamecult.brokkr/Runtime/GameCult.Brokkr.asmdef index 223d880..18a38c0 100644 --- a/surfaces/unity/Packages/com.gamecult.brokkr/Runtime/GameCult.Brokkr.asmdef +++ b/surfaces/unity/Packages/com.gamecult.brokkr/Runtime/GameCult.Brokkr.asmdef @@ -8,8 +8,30 @@ "includePlatforms": [], "excludePlatforms": [], "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], + "overrideReferences": true, + "precompiledReferences": [ + "ConcurrentCollections.dll", + "GameCult.Caching.MessagePack.dll", + "GameCult.Caching.dll", + "GameCult.Logging.dll", + "GameCult.Mesh.dll", + "GameCult.Networking.dll", + "Isopoh.Cryptography.Argon2.dll", + "Isopoh.Cryptography.Blake2b.dll", + "Isopoh.Cryptography.SecureArray.dll", + "LiteNetLib.dll", + "Microsoft.Bcl.AsyncInterfaces.dll", + "Microsoft.Bcl.TimeProvider.dll", + "Microsoft.NET.StringTools.dll", + "MessagePack.Annotations.dll", + "MessagePack.CultMesh.dll", + "R3.dll", + "System.Collections.Immutable.dll", + "System.IO.Pipelines.dll", + "System.Text.Encodings.Web.dll", + "System.Text.Json.dll", + "System.Threading.Channels.dll" + ], "autoReferenced": true, "defineConstraints": [], "versionDefines": [], diff --git a/tools/vendor-cultmesh-unity.ps1 b/tools/vendor-cultmesh-unity.ps1 index 779e02c..e5bb328 100644 --- a/tools/vendor-cultmesh-unity.ps1 +++ b/tools/vendor-cultmesh-unity.ps1 @@ -3,6 +3,12 @@ $ErrorActionPreference = "Stop" $repoRoot = Split-Path -Parent $PSScriptRoot $cultLibRoot = "E:\Projects\CultLib" $pluginRoot = Join-Path $repoRoot "surfaces\unity\Packages\com.gamecult.brokkr\Plugins\CultMesh" +$staleUnityConflicts = @( + "MessagePack.dll", + "MessagePack.dll.meta", + "System.Numerics.Vectors.dll", + "System.Numerics.Vectors.dll.meta" +) dotnet build (Join-Path $cultLibRoot "src\GameCult.Mesh\GameCult.Mesh.csproj") -c Debug if ($LASTEXITCODE -ne 0) { @@ -22,8 +28,8 @@ $sources = @( "$env:USERPROFILE\.nuget\packages\isopoh.cryptography.blake2b\2.0.0\lib\netstandard2.0\Isopoh.Cryptography.Blake2b.dll", "$env:USERPROFILE\.nuget\packages\isopoh.cryptography.securearray\2.0.0\lib\netstandard2.0\Isopoh.Cryptography.SecureArray.dll", "$env:USERPROFILE\.nuget\packages\litenetlib\2.1.2\lib\netstandard2.1\LiteNetLib.dll", - "$env:USERPROFILE\.nuget\packages\messagepack\3.1.4\lib\netstandard2.1\MessagePack.dll", - "$env:USERPROFILE\.nuget\packages\messagepack.annotations\3.1.4\lib\netstandard2.0\MessagePack.Annotations.dll", + @{ Source = "$env:USERPROFILE\.nuget\packages\messagepack\3.1.7\lib\netstandard2.1\MessagePack.dll"; Target = "MessagePack.CultMesh.dll" }, + "$env:USERPROFILE\.nuget\packages\messagepack.annotations\3.1.7\lib\netstandard2.0\MessagePack.Annotations.dll", "$env:USERPROFILE\.nuget\packages\microsoft.bcl.asyncinterfaces\9.0.10\lib\netstandard2.1\Microsoft.Bcl.AsyncInterfaces.dll", "$env:USERPROFILE\.nuget\packages\microsoft.bcl.timeprovider\8.0.0\lib\netstandard2.0\Microsoft.Bcl.TimeProvider.dll", "$env:USERPROFILE\.nuget\packages\microsoft.net.stringtools\17.11.4\lib\netstandard2.0\Microsoft.NET.StringTools.dll", @@ -33,7 +39,6 @@ $sources = @( "$env:USERPROFILE\.nuget\packages\system.componentmodel.annotations\5.0.0\lib\netstandard2.1\System.ComponentModel.Annotations.dll", "$env:USERPROFILE\.nuget\packages\system.io.pipelines\9.0.10\lib\netstandard2.0\System.IO.Pipelines.dll", "$env:USERPROFILE\.nuget\packages\system.memory\4.5.5\lib\netstandard2.0\System.Memory.dll", - "$env:USERPROFILE\.nuget\packages\system.numerics.vectors\4.4.0\lib\netstandard2.0\System.Numerics.Vectors.dll", "$env:USERPROFILE\.nuget\packages\system.runtime.compilerservices.unsafe\6.0.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll", "$env:USERPROFILE\.nuget\packages\system.text.encodings.web\9.0.10\lib\netstandard2.0\System.Text.Encodings.Web.dll", "$env:USERPROFILE\.nuget\packages\system.text.json\9.0.10\lib\netstandard2.0\System.Text.Json.dll", @@ -41,12 +46,28 @@ $sources = @( "$env:USERPROFILE\.nuget\packages\system.threading.tasks.extensions\4.5.4\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll" ) +foreach ($staleFile in $staleUnityConflicts) { + $stalePath = Join-Path $pluginRoot $staleFile + if (Test-Path $stalePath) { + Remove-Item -LiteralPath $stalePath -Force + } +} + foreach ($source in $sources) { - if (!(Test-Path $source)) { - throw "Missing CultMesh Unity dependency: $source" + if ($source -is [System.Collections.IDictionary]) { + $sourcePath = $source.Source + $targetPath = Join-Path $pluginRoot $source.Target + } + else { + $sourcePath = $source + $targetPath = Join-Path $pluginRoot (Split-Path -Leaf $sourcePath) } - Copy-Item -LiteralPath $source -Destination $pluginRoot -Force + if (!(Test-Path $sourcePath)) { + throw "Missing CultMesh Unity dependency: $sourcePath" + } + + Copy-Item -LiteralPath $sourcePath -Destination $targetPath -Force } Write-Host "Vendored CultMesh Unity dependencies into $pluginRoot"