com.wallstop-studios.dxmessaging 3.0.1 → 3.2.0
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/CHANGELOG.md +497 -2
- package/Editor/Analyzers/BaseCallLogMessageParser.cs.meta +3 -3
- package/Editor/Analyzers/BaseCallReportAggregator.cs.meta +3 -3
- package/Editor/Analyzers/DxMessagingConsoleHarvester.cs +69 -62
- package/Editor/Analyzers/DxMessagingConsoleHarvester.cs.meta +3 -3
- package/Editor/AssemblyInfo.cs.meta +9 -1
- package/Editor/CustomEditors/MessageAwareComponentFallbackEditor.cs.meta +3 -3
- package/Editor/CustomEditors/MessageAwareComponentInspectorOverlay.cs +24 -15
- package/Editor/CustomEditors/MessageAwareComponentInspectorOverlay.cs.meta +3 -3
- package/Editor/CustomEditors/MessagingComponentEditor.cs.meta +9 -1
- package/Editor/DxMessagingEditorIdle.cs +62 -0
- package/{Runtime/Core/Internal/TypedDispatchLinkIndex.cs.meta → Editor/DxMessagingEditorIdle.cs.meta} +1 -1
- package/Editor/DxMessagingEditorInitializer.cs +112 -15
- package/Editor/DxMessagingEditorInitializer.cs.meta +9 -1
- package/Editor/DxMessagingEditorLog.cs +32 -0
- package/Editor/DxMessagingEditorLog.cs.meta +11 -0
- package/Editor/DxMessagingMenu.cs.meta +3 -3
- package/Editor/DxMessagingSceneBuildProcessor.cs.meta +3 -3
- package/Editor/Settings/DxMessagingBaseCallIgnoreSync.cs +137 -15
- package/Editor/Settings/DxMessagingBaseCallIgnoreSync.cs.meta +3 -3
- package/Editor/Settings/DxMessagingSettings.cs +92 -31
- package/Editor/Settings/DxMessagingSettings.cs.meta +9 -1
- package/Editor/Settings/DxMessagingSettingsProvider.cs.meta +9 -1
- package/Editor/SetupCscRsp.cs +539 -304
- package/Editor/SetupCscRsp.cs.meta +9 -1
- package/Editor/Testing/MessagingComponentEditorHarness.cs +1 -1
- package/Editor/Testing/MessagingComponentEditorHarness.cs.meta +9 -1
- package/README.md +17 -18
- package/{Editor → Runtime}/Analyzers/Microsoft.CodeAnalysis.CSharp.dll.meta +3 -3
- package/{Editor → Runtime}/Analyzers/Microsoft.CodeAnalysis.dll.meta +3 -3
- package/{Editor → Runtime}/Analyzers/System.Collections.Immutable.dll.meta +3 -3
- package/{Editor → Runtime}/Analyzers/System.Reflection.Metadata.dll.meta +3 -3
- package/{Editor → Runtime}/Analyzers/System.Runtime.CompilerServices.Unsafe.dll.meta +3 -3
- package/Runtime/Analyzers/WallstopStudios.DxMessaging.Analyzer.dll +0 -0
- package/Runtime/Analyzers/WallstopStudios.DxMessaging.Analyzer.dll.meta +46 -0
- package/Runtime/Analyzers/WallstopStudios.DxMessaging.SourceGenerators.dll +0 -0
- package/{Editor → Runtime}/Analyzers/WallstopStudios.DxMessaging.SourceGenerators.dll.meta +2 -2
- package/Runtime/Analyzers.meta +8 -0
- package/Runtime/AssemblyInfo.cs.meta +9 -1
- package/Runtime/Core/Attributes/DxAutoConstructorAttribute.cs.meta +9 -1
- package/Runtime/Core/Attributes/DxBroadcastMessageAttribute.cs.meta +9 -1
- package/Runtime/Core/Attributes/DxIgnoreMissingBaseCallAttribute.cs.meta +3 -3
- package/Runtime/Core/Attributes/DxOptionalParameterAttribute.cs +2 -4
- package/Runtime/Core/Attributes/DxOptionalParameterAttribute.cs.meta +9 -1
- package/Runtime/Core/Attributes/DxTargetedMessageAttribute.cs.meta +9 -1
- package/Runtime/Core/Attributes/DxUntargetedMessageAttribute.cs.meta +9 -1
- package/Runtime/Core/Attributes/Il2CppSetOptionAttribute.cs +56 -0
- package/Runtime/Core/Attributes/Il2CppSetOptionAttribute.cs.meta +11 -0
- package/Runtime/Core/DataStructure/CyclicBuffer.cs +44 -26
- package/Runtime/Core/DataStructure/CyclicBuffer.cs.meta +9 -1
- package/Runtime/Core/Diagnostics/MessageEmissionData.cs.meta +9 -1
- package/Runtime/Core/Diagnostics/MessageRegistrationData.cs.meta +9 -1
- package/Runtime/Core/Diagnostics/MessageRegistrationType.cs.meta +9 -1
- package/Runtime/Core/DxMessagingStaticState.cs.meta +3 -3
- package/Runtime/Core/Extensions/EnumExtensions.cs +6 -5
- package/Runtime/Core/Extensions/EnumExtensions.cs.meta +9 -1
- package/Runtime/Core/Extensions/IListExtensions.cs.meta +9 -1
- package/Runtime/Core/Extensions/MessageBusExtensions.cs.meta +3 -3
- package/Runtime/Core/Extensions/MessageExtensions.cs +0 -60
- package/Runtime/Core/Extensions/MessageExtensions.cs.meta +3 -3
- package/Runtime/Core/Helper/MessageCache.cs.meta +9 -1
- package/Runtime/Core/Helper/MessageHelperIndexer.cs.meta +9 -1
- package/Runtime/Core/IMessage.cs.meta +3 -3
- package/Runtime/Core/InstanceId.cs +25 -1
- package/Runtime/Core/InstanceId.cs.meta +3 -3
- package/Runtime/Core/Internal/DxUnsafe.cs +60 -0
- package/Runtime/Core/Internal/DxUnsafe.cs.meta +11 -0
- package/Runtime/Core/Internal/FlatDispatch.cs +198 -0
- package/Runtime/Core/Internal/FlatDispatch.cs.meta +11 -0
- package/Runtime/Core/Internal/TypedSlots.cs +47 -21
- package/Runtime/Core/MessageBus/DiagnosticsTarget.cs.meta +3 -3
- package/Runtime/Core/MessageBus/GlobalMessageBusProvider.cs.meta +3 -3
- package/Runtime/Core/MessageBus/IMessageBus.cs +75 -40
- package/Runtime/Core/MessageBus/IMessageBus.cs.meta +3 -3
- package/Runtime/Core/MessageBus/IMessageBusProvider.cs.meta +3 -3
- package/Runtime/Core/MessageBus/IMessageRegistrationBuilder.cs +1 -0
- package/Runtime/Core/MessageBus/IMessageRegistrationBuilder.cs.meta +3 -3
- package/Runtime/Core/MessageBus/Internal/BusSlots.cs +7 -6
- package/Runtime/Core/MessageBus/MessageBus.cs +2864 -3413
- package/Runtime/Core/MessageBus/MessageBus.cs.meta +3 -3
- package/Runtime/Core/MessageBus/MessageBusRebindMode.cs.meta +3 -3
- package/Runtime/Core/MessageBus/MessageBusRegistration.cs +207 -0
- package/Runtime/Core/MessageBus/MessageBusRegistration.cs.meta +11 -0
- package/Runtime/Core/MessageBus/MessageRegistrationBuilder.cs +187 -14
- package/Runtime/Core/MessageBus/MessageRegistrationBuilder.cs.meta +3 -3
- package/Runtime/Core/MessageBus/MessagingRegistration.cs.meta +3 -3
- package/Runtime/Core/MessageBus/RegistrationLog.cs.meta +3 -3
- package/Runtime/Core/MessageHandler.cs +2206 -1510
- package/Runtime/Core/MessageHandler.cs.meta +3 -3
- package/Runtime/Core/MessageRegistrationHandle.cs.meta +3 -3
- package/Runtime/Core/MessageRegistrationToken.cs +1667 -812
- package/Runtime/Core/MessageRegistrationToken.cs.meta +3 -3
- package/Runtime/Core/Messages/GlobalStringMessage.cs.meta +9 -1
- package/Runtime/Core/Messages/IBroadcastMessage.cs.meta +3 -3
- package/Runtime/Core/Messages/ITargetedMessage.cs.meta +3 -3
- package/Runtime/Core/Messages/IUntargetedMessage.cs.meta +3 -3
- package/Runtime/Core/Messages/ReflexiveMessage.cs.meta +9 -1
- package/Runtime/Core/Messages/SourcedStringMessage.cs.meta +3 -3
- package/Runtime/Core/Messages/StringMessage.cs.meta +9 -1
- package/Runtime/Core/MessagingDebug.cs.meta +3 -3
- package/Runtime/Unity/CurrentGlobalMessageBusProvider.cs.meta +3 -3
- package/Runtime/Unity/DxMessagingRuntimeInitializer.cs.meta +3 -3
- package/Runtime/Unity/InitialGlobalMessageBusProvider.cs.meta +3 -3
- package/Runtime/Unity/Integrations/Reflex/AssemblyInfo.cs.meta +9 -1
- package/Runtime/Unity/Integrations/Reflex/ReflexRegistrationInstaller.cs.meta +3 -3
- package/Runtime/Unity/Integrations/VContainer/AssemblyInfo.cs.meta +9 -1
- package/Runtime/Unity/Integrations/VContainer/VContainerRegistrationExtensions.cs.meta +3 -3
- package/Runtime/Unity/Integrations/Zenject/AssemblyInfo.cs.meta +9 -1
- package/Runtime/Unity/Integrations/Zenject/ZenjectRegistrationInstaller.cs.meta +3 -3
- package/Runtime/Unity/MessageAwareComponent.cs +46 -1
- package/Runtime/Unity/MessageAwareComponent.cs.meta +3 -3
- package/Runtime/Unity/MessageBusProviderHandle.cs.meta +3 -3
- package/Runtime/Unity/MessagingComponent.cs +43 -10
- package/Runtime/Unity/MessagingComponent.cs.meta +3 -3
- package/Runtime/Unity/MessagingComponentInstaller.cs.meta +3 -3
- package/Runtime/Unity/ScriptableMessageBusProvider.cs.meta +3 -3
- package/Runtime/WallstopStudios.DxMessaging.asmdef +1 -1
- package/Samples~/DI/README.md +7 -7
- package/Samples~/DI/Reflex/SampleInstaller.cs.meta +3 -3
- package/Samples~/DI/VContainer/SampleLifetimeScope.cs.meta +3 -3
- package/Samples~/DI/Zenject/SampleInstaller.cs.meta +3 -3
- package/Samples~/Mini Combat/Boot.cs.meta +3 -3
- package/Samples~/Mini Combat/Enemy.cs.meta +3 -3
- package/Samples~/Mini Combat/Messages.cs.meta +3 -3
- package/Samples~/Mini Combat/Player.cs.meta +3 -3
- package/Samples~/Mini Combat/UIOverlay.cs.meta +3 -3
- package/Samples~/UI Buttons + Inspector/DiagnosticsEnabler.cs.meta +3 -3
- package/Samples~/UI Buttons + Inspector/Messages.cs.meta +3 -3
- package/Samples~/UI Buttons + Inspector/MessagingObserver.cs.meta +3 -3
- package/Samples~/UI Buttons + Inspector/UIButtonEmitter.cs.meta +3 -3
- package/SourceGenerators/Directory.Build.props +50 -3
- package/SourceGenerators/WallstopStudios.DxMessaging.SourceGenerators/DxAutoConstructorGenerator.cs +96 -63
- package/SourceGenerators/WallstopStudios.DxMessaging.SourceGenerators/DxAutoConstructorGenerator.cs.meta +3 -3
- package/SourceGenerators/WallstopStudios.DxMessaging.SourceGenerators/DxMessageIdGenerator.cs +745 -87
- package/SourceGenerators/WallstopStudios.DxMessaging.SourceGenerators/DxMessageIdGenerator.cs.meta +9 -1
- package/SourceGenerators/WallstopStudios.DxMessaging.SourceGenerators/WallstopStudios.DxMessaging.SourceGenerators.csproj +40 -46
- package/SourceGenerators/global.json +7 -0
- package/SourceGenerators/global.json.meta +7 -0
- package/package.json +30 -40
- package/Editor/Analyzers/WallstopStudios.DxMessaging.Analyzer.dll +0 -0
- package/Editor/Analyzers/WallstopStudios.DxMessaging.Analyzer.dll.meta +0 -33
- package/Editor/Analyzers/WallstopStudios.DxMessaging.SourceGenerators.dll +0 -0
- package/Runtime/Core/Internal/TypedDispatchLinkIndex.cs +0 -51
- /package/{Editor → Runtime}/Analyzers/Microsoft.CodeAnalysis.CSharp.dll +0 -0
- /package/{Editor → Runtime}/Analyzers/Microsoft.CodeAnalysis.dll +0 -0
- /package/{Editor → Runtime}/Analyzers/System.Collections.Immutable.dll +0 -0
- /package/{Editor → Runtime}/Analyzers/System.Reflection.Metadata.dll +0 -0
- /package/{Editor → Runtime}/Analyzers/System.Runtime.CompilerServices.Unsafe.dll +0 -0
package/SourceGenerators/WallstopStudios.DxMessaging.SourceGenerators/DxMessageIdGenerator.cs.meta
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
fileFormatVersion: 2
|
|
2
2
|
guid: 8525b467bd2c430a90ccee97f321a845
|
|
3
|
-
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,79 +1,73 @@
|
|
|
1
1
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
2
2
|
<PropertyGroup>
|
|
3
3
|
<TargetFramework>netstandard2.0</TargetFramework>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
4
|
+
<!-- DO NOT bump this without verifying Unity 2021 still loads the source
|
|
5
|
+
generators. Unity 2021's analyzer/source-generator loader runs on
|
|
6
|
+
Roslyn 3.8.x and fails to instantiate generators compiled against
|
|
7
|
+
Roslyn 4.x. No automated test pins this anymore; verify in Unity
|
|
8
|
+
before changing it. -->
|
|
9
|
+
<MicrosoftCodeAnalysisVersion>3.8.0</MicrosoftCodeAnalysisVersion>
|
|
10
|
+
<AssemblyInformationalVersion>$(Version)</AssemblyInformationalVersion>
|
|
10
11
|
</PropertyGroup>
|
|
11
12
|
<ItemGroup>
|
|
12
13
|
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3">
|
|
13
14
|
<PrivateAssets>all</PrivateAssets>
|
|
14
15
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
15
16
|
</PackageReference>
|
|
16
|
-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="
|
|
17
|
+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0">
|
|
17
18
|
<PrivateAssets>all</PrivateAssets>
|
|
18
19
|
</PackageReference>
|
|
19
20
|
<PackageReference Include="System.Collections.Immutable" Version="5.0.0">
|
|
20
21
|
<PrivateAssets>all</PrivateAssets>
|
|
21
22
|
</PackageReference>
|
|
22
23
|
</ItemGroup>
|
|
23
|
-
<!-- Post-build copy of
|
|
24
|
-
|
|
24
|
+
<!-- Post-build copy of the source-generator DLL into the analyzer payload
|
|
25
|
+
directory selected by AnalyzerPayloadOutputDir.
|
|
26
|
+
|
|
27
|
+
This target copies ONLY the freshly-built source-generator DLL.
|
|
28
|
+
The pinned Roslyn dependency DLLs the analyzer host needs
|
|
29
|
+
(Microsoft.CodeAnalysis[.CSharp], System.Collections.Immutable,
|
|
30
|
+
System.Reflection.Metadata, System.Runtime.CompilerServices.Unsafe)
|
|
31
|
+
are committed co-located in Runtime/Analyzers/ as fixed bytes and are
|
|
32
|
+
NOT re-copied by this build: a normal (non-clean) rebuild therefore
|
|
33
|
+
leaves those committed dep DLLs untouched. Do NOT wipe
|
|
34
|
+
Runtime/Analyzers/ wholesale; the committed dep bytes are the proven,
|
|
35
|
+
Unity-validated set (notably for Unity 2021's analyzer loader) and are
|
|
36
|
+
not reproduced by this 3.8.0-pinned build.
|
|
37
|
+
|
|
38
|
+
AnalyzerPayloadOutputDir defaults to Runtime/Analyzers for local refresh
|
|
39
|
+
builds. CI freshness checks pass a temp directory so builds do not dirty
|
|
40
|
+
the worktree. CopyAnalyzerPayload=false disables this target for tests
|
|
41
|
+
that reference this project but do not validate the shipped payload.
|
|
42
|
+
|
|
43
|
+
The shipped Runtime/Analyzers/*.dll.meta files for the two analyzer
|
|
44
|
+
assemblies carry the RoslynAnalyzer label directly, so Unity scopes the
|
|
45
|
+
source generator to the DxMessaging runtime assembly and every assembly
|
|
46
|
+
that references it (including the predefined Assembly-CSharp), so
|
|
47
|
+
nothing is copied into the consumer's project. -->
|
|
48
|
+
<Target
|
|
49
|
+
Name="PostBuildCopyAnalyzers"
|
|
50
|
+
AfterTargets="Build"
|
|
51
|
+
Condition="'$(CopyAnalyzerPayload)' == 'true'"
|
|
52
|
+
>
|
|
25
53
|
<!-- Compute paths relative to this project directory -->
|
|
26
54
|
<PropertyGroup>
|
|
27
55
|
<!-- Repo/package root: two levels up from this project directory -->
|
|
28
56
|
<PackageRootDir>$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)/../../'))</PackageRootDir>
|
|
29
|
-
<EditorAnalyzersDir>$([System.IO.Path]::Combine('$(PackageRootDir)', 'Editor', 'Analyzers'))</EditorAnalyzersDir>
|
|
30
|
-
<!-- Unity project root candidate when this package is inside Unity's Packages folder (4 levels up) -->
|
|
31
|
-
<UnityRootCandidate1>$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)/../../../../'))</UnityRootCandidate1>
|
|
32
|
-
<UnityAssetsDir>$([System.IO.Path]::Combine('$(UnityRootCandidate1)', 'Assets'))</UnityAssetsDir>
|
|
33
|
-
<UnityAssetsEditorDir>$([System.IO.Path]::Combine('$(UnityAssetsDir)', 'Editor'))</UnityAssetsEditorDir>
|
|
34
|
-
<UnityAssetsEditorWallstopStudiosDir>$([System.IO.Path]::Combine('$(UnityAssetsEditorDir)', 'Wallstop Studios'))</UnityAssetsEditorWallstopStudiosDir>
|
|
35
|
-
<UnityAssetsPluginsEditorWallstopDir>$([System.IO.Path]::Combine('$(UnityAssetsDir)', 'Plugins', 'Editor', 'WallstopStudios.DxMessaging'))</UnityAssetsPluginsEditorWallstopDir>
|
|
36
57
|
<AnalyzerDll>$(TargetPath)</AnalyzerDll>
|
|
37
58
|
</PropertyGroup>
|
|
38
59
|
<ItemGroup>
|
|
39
60
|
<AnalyzerOutput Include="$(AnalyzerDll)" />
|
|
40
|
-
<AnalyzerDependency Include="$(NuGetPackageRoot)microsoft.codeanalysis.common\$(MicrosoftCodeAnalysisVersion)\lib\netstandard2.0\Microsoft.CodeAnalysis.dll" />
|
|
41
|
-
<AnalyzerDependency Include="$(NuGetPackageRoot)microsoft.codeanalysis.csharp\$(MicrosoftCodeAnalysisVersion)\lib\netstandard2.0\Microsoft.CodeAnalysis.CSharp.dll" />
|
|
42
|
-
<AnalyzerDependency Include="$(NuGetPackageRoot)system.collections.immutable\$(SystemCollectionsImmutableVersion)\lib\netstandard2.0\System.Collections.Immutable.dll" />
|
|
43
|
-
<AnalyzerDependency
|
|
44
|
-
Include="$(NuGetPackageRoot)system.reflection.metadata\$(SystemReflectionMetadataVersion)\lib\net6.0\System.Reflection.Metadata.dll"
|
|
45
|
-
Condition="Exists('$(NuGetPackageRoot)system.reflection.metadata\$(SystemReflectionMetadataVersion)\lib\net6.0\System.Reflection.Metadata.dll')"
|
|
46
|
-
/>
|
|
47
|
-
<AnalyzerDependency
|
|
48
|
-
Include="$(NuGetPackageRoot)system.reflection.metadata\$(SystemReflectionMetadataVersion)\lib\netstandard2.0\System.Reflection.Metadata.dll"
|
|
49
|
-
Condition="Exists('$(NuGetPackageRoot)system.reflection.metadata\$(SystemReflectionMetadataVersion)\lib\netstandard2.0\System.Reflection.Metadata.dll')"
|
|
50
|
-
/>
|
|
51
|
-
<AnalyzerDependency Include="$(NuGetPackageRoot)system.runtime.compilerservices.unsafe\$(SystemRuntimeCompilerServicesUnsafeVersion)\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll" />
|
|
52
61
|
<AllAnalyzerFiles Include="@(AnalyzerOutput)" />
|
|
53
|
-
<AllAnalyzerFiles
|
|
54
|
-
Include="@(AnalyzerDependency)"
|
|
55
|
-
Condition="Exists('%(AnalyzerDependency.Identity)')"
|
|
56
|
-
/>
|
|
57
62
|
</ItemGroup>
|
|
58
|
-
<!-- Copy into package Editor/Analyzers (used by SetupCscRsp and package consumers) -->
|
|
59
|
-
<MakeDir Directories="$(EditorAnalyzersDir)" Condition="!Exists('$(EditorAnalyzersDir)')" />
|
|
60
|
-
<Copy
|
|
61
|
-
SourceFiles="@(AllAnalyzerFiles)"
|
|
62
|
-
DestinationFolder="$(EditorAnalyzersDir)"
|
|
63
|
-
SkipUnchangedFiles="true"
|
|
64
|
-
/>
|
|
65
|
-
<!-- If building from inside a Unity project (Assets exists), also copy into Assets/Editor/Wallstop Studios -->
|
|
66
|
-
<!-- Preferred legacy Plugins path used by SetupCscRsp -->
|
|
67
63
|
<MakeDir
|
|
68
|
-
Directories="$(
|
|
69
|
-
Condition="
|
|
64
|
+
Directories="$(AnalyzerPayloadOutputDir)"
|
|
65
|
+
Condition="!Exists('$(AnalyzerPayloadOutputDir)')"
|
|
70
66
|
/>
|
|
71
67
|
<Copy
|
|
72
68
|
SourceFiles="@(AllAnalyzerFiles)"
|
|
73
|
-
DestinationFolder="$(
|
|
69
|
+
DestinationFolder="$(AnalyzerPayloadOutputDir)"
|
|
74
70
|
SkipUnchangedFiles="true"
|
|
75
|
-
Condition="Exists('$(UnityAssetsPluginsEditorWallstopDir)')"
|
|
76
71
|
/>
|
|
77
|
-
<!-- Removed copy to Assets/Editor/Wallstop Studios as requested -->
|
|
78
72
|
</Target>
|
|
79
73
|
</Project>
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.wallstop-studios.dxmessaging",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"displayName": "DxMessaging",
|
|
5
5
|
"description": "Synchronous Event Bus for Unity",
|
|
6
6
|
"unity": "2021.3",
|
|
7
|
-
"documentationUrl": "https://
|
|
8
|
-
"changelogUrl": "https://raw.githubusercontent.com/
|
|
9
|
-
"licensesUrl": "https://github.com/
|
|
7
|
+
"documentationUrl": "https://ambiguous-interactive.github.io/DxMessaging/",
|
|
8
|
+
"changelogUrl": "https://raw.githubusercontent.com/Ambiguous-Interactive/DxMessaging/master/CHANGELOG.md",
|
|
9
|
+
"licensesUrl": "https://github.com/Ambiguous-Interactive/DxMessaging/blob/master/LICENSE.md",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"messaging",
|
|
12
12
|
"message",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/
|
|
25
|
+
"url": "git+https://github.com/Ambiguous-Interactive/DxMessaging.git"
|
|
26
26
|
},
|
|
27
27
|
"bugs": {
|
|
28
|
-
"url": "https://github.com/
|
|
28
|
+
"url": "https://github.com/Ambiguous-Interactive/DxMessaging/issues"
|
|
29
29
|
},
|
|
30
30
|
"author": "wallstop studios <wallstop@wallstopstudios.com> (https://wallstopstudios.com)",
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://ambiguous-interactive.github.io/DxMessaging/",
|
|
32
32
|
"main": "README.md",
|
|
33
33
|
"files": [
|
|
34
34
|
"Editor/**",
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
"Samples~/**",
|
|
37
37
|
"SourceGenerators/Directory.Build.props",
|
|
38
38
|
"SourceGenerators/Directory.Build.props.meta",
|
|
39
|
+
"SourceGenerators/global.json",
|
|
40
|
+
"SourceGenerators/global.json.meta",
|
|
39
41
|
"SourceGenerators/WallstopStudios.DxMessaging.SourceGenerators/*.cs",
|
|
40
42
|
"SourceGenerators/WallstopStudios.DxMessaging.SourceGenerators/*.cs.meta",
|
|
41
43
|
"SourceGenerators/WallstopStudios.DxMessaging.SourceGenerators/*.csproj",
|
|
@@ -55,45 +57,33 @@
|
|
|
55
57
|
"SourceGenerators.meta"
|
|
56
58
|
],
|
|
57
59
|
"scripts": {
|
|
58
|
-
"test": "node scripts/
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"test:unity-contracts": "node scripts/run-managed-jest.js --runTestsByPath scripts/__tests__/unity-test-harness-contract.test.js scripts/__tests__/unity-runner-script-contract.test.js scripts/__tests__/unity-perf-baseline-script-contract.test.js scripts/__tests__/devcontainer-cache-contract.test.js scripts/__tests__/unity-workflow-shape.test.js scripts/__tests__/unity-perf-isolation.test.js scripts/__tests__/claude-permissions-contract.test.js scripts/__tests__/llm-skills-unity-coverage.test.js",
|
|
62
|
-
"test:watch": "node scripts/run-managed-jest.js --watch",
|
|
63
|
-
"test:coverage": "node scripts/run-managed-jest.js --coverage",
|
|
64
|
-
"format:md": "node scripts/run-managed-prettier.js --write \"**/*.{md,markdown}\"",
|
|
65
|
-
"format:md:check": "node scripts/run-managed-prettier.js --check \"**/*.{md,markdown}\"",
|
|
66
|
-
"format:json": "node scripts/run-managed-prettier.js --write \"**/*.{json,asmdef,asmref}\"",
|
|
67
|
-
"format:json:check": "node scripts/run-managed-prettier.js --check \"**/*.{json,asmdef,asmref}\"",
|
|
68
|
-
"format:yaml": "node scripts/run-managed-prettier.js --write \"**/*.{yml,yaml}\"",
|
|
69
|
-
"format:yaml:check": "node scripts/run-managed-prettier.js --check \"**/*.{yml,yaml}\"",
|
|
70
|
-
"check:package-json-format": "node scripts/run-managed-prettier.js --check package.json",
|
|
71
|
-
"check:prettier:hooks": "node scripts/run-managed-prettier.js --check \"**/*.{md,markdown,json,asmdef,asmref,yml,yaml}\"",
|
|
72
|
-
"check:cspell:scripts": "npx --yes cspell@10.0.0 --no-progress --no-summary \"scripts/**/*.js\"",
|
|
73
|
-
"check:yaml": "npm run format:yaml:check && pre-commit run yamllint --all-files",
|
|
60
|
+
"test": "node --test scripts/",
|
|
61
|
+
"format": "prettier --write \"**/*.{md,markdown,json,asmdef,asmref,yml,yaml}\"",
|
|
62
|
+
"format:check": "prettier --check \"**/*.{md,markdown,json,asmdef,asmref,yml,yaml}\"",
|
|
74
63
|
"lint:markdown": "markdownlint-cli2 \"**/*.md\" \"**/*.markdown\"",
|
|
64
|
+
"check:spelling": "cspell --no-progress --no-summary \"**/*.{md,markdown,cs,json,yml,yaml,ps1,js}\"",
|
|
65
|
+
"sync:banner": "node scripts/sync-banner-version.js",
|
|
66
|
+
"check:banner": "node scripts/sync-banner-version.js --check",
|
|
75
67
|
"update:llms-txt": "node scripts/update-llms-txt.js",
|
|
76
68
|
"check:llms-txt": "node scripts/update-llms-txt.js --check",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"validate:
|
|
85
|
-
"validate:
|
|
86
|
-
"validate:
|
|
87
|
-
"validate:
|
|
88
|
-
"validate:
|
|
89
|
-
"
|
|
90
|
-
"prepack": "node scripts/validate-npm-meta.js --check"
|
|
69
|
+
"update:skills-index": "node scripts/generate-skills-index.js && prettier --write .llm/skills/index.md",
|
|
70
|
+
"check:skills-index": "node scripts/generate-skills-index.js --check",
|
|
71
|
+
"update:issue-template-versions": "node scripts/generate-issue-template-versions.js",
|
|
72
|
+
"check:issue-template-versions": "node scripts/generate-issue-template-versions.js --check",
|
|
73
|
+
"refresh:analyzers": "node scripts/analyzers/verify-analyzer-payload.js --write",
|
|
74
|
+
"check:analyzers": "node scripts/analyzers/verify-analyzer-payload.js --check",
|
|
75
|
+
"fix:csharp-underscores": "node scripts/fix-csharp-underscore-methods.js",
|
|
76
|
+
"validate:asmdef-references": "node scripts/validate-asmdef-references.js",
|
|
77
|
+
"validate:unity-versions": "node scripts/validate-unity-versions.js",
|
|
78
|
+
"validate:js-loc-budget": "node scripts/validate-js-loc-budget.js",
|
|
79
|
+
"validate:npm-meta": "node scripts/validate-npm-meta.js",
|
|
80
|
+
"validate:docs:strict": "python3 -m venv .artifacts/docs-venv && .artifacts/docs-venv/bin/python -m pip install -r requirements-docs.txt && .artifacts/docs-venv/bin/mkdocs build --strict --site-dir _site",
|
|
81
|
+
"validate:all": "npm run validate:asmdef-references && npm run validate:unity-versions && npm run validate:js-loc-budget && npm run check:banner && npm run validate:npm-meta && npm run check:analyzers && npm run check:llms-txt && npm run check:skills-index && npm run check:issue-template-versions"
|
|
91
82
|
},
|
|
92
83
|
"devDependencies": {
|
|
93
|
-
"cspell": "10.0.
|
|
94
|
-
"jest": "^30.3.0",
|
|
84
|
+
"cspell": "10.0.1",
|
|
95
85
|
"markdownlint-cli2": "0.22.1",
|
|
96
|
-
"prettier": "3.
|
|
86
|
+
"prettier": "3.9.3"
|
|
97
87
|
},
|
|
98
88
|
"samples": [
|
|
99
89
|
{
|
|
Binary file
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: e02b032423e347e9a1ae26bb48fdc978
|
|
3
|
-
PluginImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
iconMap: {}
|
|
7
|
-
executionOrder: {}
|
|
8
|
-
defineConstraints: []
|
|
9
|
-
isPreloaded: 0
|
|
10
|
-
isOverridable: 1
|
|
11
|
-
isExplicitlyReferenced: 0
|
|
12
|
-
validateReferences: 1
|
|
13
|
-
platformData:
|
|
14
|
-
- first:
|
|
15
|
-
Any:
|
|
16
|
-
second:
|
|
17
|
-
enabled: 0
|
|
18
|
-
settings: {}
|
|
19
|
-
- first:
|
|
20
|
-
Editor: Editor
|
|
21
|
-
second:
|
|
22
|
-
enabled: 1
|
|
23
|
-
settings:
|
|
24
|
-
DefaultValueInitialized: true
|
|
25
|
-
- first:
|
|
26
|
-
Windows Store Apps: WindowsStoreApps
|
|
27
|
-
second:
|
|
28
|
-
enabled: 0
|
|
29
|
-
settings:
|
|
30
|
-
CPU: AnyCPU
|
|
31
|
-
userData:
|
|
32
|
-
assetBundleName:
|
|
33
|
-
assetBundleVariant:
|
|
Binary file
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
namespace DxMessaging.Core.Internal
|
|
2
|
-
{
|
|
3
|
-
/// <summary>
|
|
4
|
-
/// Const-int positions into <c>TypedHandler<T>._dispatchLinks[]</c>.
|
|
5
|
-
/// Indices are hand-written so call sites inline as immediate operands.
|
|
6
|
-
/// Array length and per-index <c>null</c>-ness are validated in DEBUG
|
|
7
|
-
/// builds via <c>TypedHandler<T>.ValidateSlotArrays()</c>.
|
|
8
|
-
/// </summary>
|
|
9
|
-
/// <remarks>
|
|
10
|
-
/// Positions are laid out in lex-(<c>Kind</c>, <c>Phase</c>, <c>Variant</c>) order:
|
|
11
|
-
/// Untargeted -> Targeted -> Broadcast within Kind, Handle before
|
|
12
|
-
/// PostProcess within Phase, and with-context before WithoutContext
|
|
13
|
-
/// within Variant. The xmldoc on each constant names the legacy
|
|
14
|
-
/// <c>TypedHandler<T></c> dispatch-link field whose storage role
|
|
15
|
-
/// the slot assumes in typed dispatch storage.
|
|
16
|
-
/// </remarks>
|
|
17
|
-
internal static class TypedDispatchLinkIndex
|
|
18
|
-
{
|
|
19
|
-
/// <summary>Legacy field: <c>_untargetedLink</c>.</summary>
|
|
20
|
-
public const int UntargetedHandle = 0;
|
|
21
|
-
|
|
22
|
-
/// <summary>Legacy field: <c>_untargetedPostLink</c>.</summary>
|
|
23
|
-
public const int UntargetedPostProcess = 1;
|
|
24
|
-
|
|
25
|
-
/// <summary>Legacy field: <c>_targetedLink</c>.</summary>
|
|
26
|
-
public const int TargetedHandle = 2;
|
|
27
|
-
|
|
28
|
-
/// <summary>Legacy field: <c>_targetedWithoutTargetingLink</c>.</summary>
|
|
29
|
-
public const int TargetedHandleWithoutContext = 3;
|
|
30
|
-
|
|
31
|
-
/// <summary>Legacy field: <c>_targetedPostLink</c>.</summary>
|
|
32
|
-
public const int TargetedPostProcess = 4;
|
|
33
|
-
|
|
34
|
-
/// <summary>Legacy field: <c>_targetedWithoutTargetingPostLink</c>.</summary>
|
|
35
|
-
public const int TargetedPostProcessWithoutContext = 5;
|
|
36
|
-
|
|
37
|
-
/// <summary>Legacy field: <c>_broadcastLink</c>.</summary>
|
|
38
|
-
public const int BroadcastHandle = 6;
|
|
39
|
-
|
|
40
|
-
/// <summary>Legacy field: <c>_broadcastWithoutSourceLink</c>.</summary>
|
|
41
|
-
public const int BroadcastHandleWithoutContext = 7;
|
|
42
|
-
|
|
43
|
-
/// <summary>Legacy field: <c>_broadcastPostLink</c>.</summary>
|
|
44
|
-
public const int BroadcastPostProcess = 8;
|
|
45
|
-
|
|
46
|
-
/// <summary>Legacy field: <c>_broadcastWithoutSourcePostLink</c>.</summary>
|
|
47
|
-
public const int BroadcastPostProcessWithoutContext = 9;
|
|
48
|
-
|
|
49
|
-
public const int Length = 10;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|