com.wallstop-studios.dxmessaging 3.2.0 → 3.2.1
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 +40 -0
- package/Editor/Analyzers/DxMessagingConsoleHarvester.cs +8 -8
- package/Editor/CustomEditors/MessageAwareComponentFallbackEditor.cs +171 -13
- package/Editor/CustomEditors/MessageAwareComponentInspectorOverlay.cs +391 -96
- package/Editor/CustomEditors/MessageAwareComponentInspectorView.cs +279 -0
- package/Editor/CustomEditors/MessageAwareComponentInspectorView.cs.meta +11 -0
- package/Editor/DxMessagingEditorPalette.cs +66 -0
- package/Editor/DxMessagingEditorPalette.cs.meta +11 -0
- package/Editor/DxMessagingEditorTheme.cs +200 -0
- package/Editor/DxMessagingEditorTheme.cs.meta +11 -0
- package/Editor/Icons/dxmessaging-icon-256.png +0 -0
- package/Editor/Icons/dxmessaging-icon-256.png.meta +156 -0
- package/Editor/Icons/dxmessaging-icon-32.png +0 -0
- package/Editor/Icons/dxmessaging-icon-32.png.meta +156 -0
- package/Editor/Icons/dxmessaging-icon-48.png +0 -0
- package/Editor/Icons/dxmessaging-icon-48.png.meta +156 -0
- package/Editor/Icons.meta +8 -0
- package/Editor/Settings/DxMessagingSettingsProvider.cs +368 -33
- package/Editor/Testing/MessagingComponentEditorHarness.cs +11 -4
- package/Editor/Theme/DxMessagingTheme.uss +255 -0
- package/Editor/Theme/DxMessagingTheme.uss.meta +11 -0
- package/Editor/Theme/DxTokens.uss +90 -0
- package/Editor/Theme/DxTokens.uss.meta +11 -0
- package/Editor/Theme.meta +8 -0
- package/Editor/Windows/DxMessagingFlowGraphWindow.cs +5513 -0
- package/Editor/Windows/DxMessagingFlowGraphWindow.cs.meta +11 -0
- package/Editor/Windows/DxMessagingMessageMonitorWindow.cs +2288 -0
- package/Editor/Windows/DxMessagingMessageMonitorWindow.cs.meta +11 -0
- package/Editor/Windows.meta +8 -0
- package/README.md +84 -35
- package/Runtime/AssemblyInfo.cs +1 -0
- package/Runtime/Core/Diagnostics/MessageEmissionData.cs +29 -1
- package/Runtime/Core/Extensions/MessageExtensions.cs +4 -5
- package/Runtime/Core/Helper/MessageCache.cs +56 -23
- package/Runtime/Core/Internal/FlatDispatch.cs +32 -0
- package/Runtime/Core/Internal/TypedSlots.cs +3 -7
- package/Runtime/Core/MessageBus/MessageBus.cs +577 -142
- package/Runtime/Core/MessageBus/RegistrationLog.cs +25 -12
- package/Runtime/Core/MessageHandler.cs +774 -786
- package/Runtime/Core/MessageRegistrationHandle.cs +19 -5
- package/Runtime/Core/MessageRegistrationToken.cs +1080 -520
- package/Samples~/Diagnostics Tooling Exerciser/DiagnosticsToolingExerciser.cs +173 -0
- package/Samples~/Diagnostics Tooling Exerciser/DiagnosticsToolingExerciser.cs.meta +11 -0
- package/Samples~/Diagnostics Tooling Exerciser/DiagnosticsToolingExerciser.unity +424 -0
- package/Samples~/Diagnostics Tooling Exerciser/DiagnosticsToolingExerciser.unity.meta +7 -0
- package/Samples~/Diagnostics Tooling Exerciser/DiagnosticsToolingReceiver.cs +185 -0
- package/Samples~/Diagnostics Tooling Exerciser/DiagnosticsToolingReceiver.cs.meta +11 -0
- package/Samples~/Diagnostics Tooling Exerciser/Messages.cs +46 -0
- package/Samples~/Diagnostics Tooling Exerciser/Messages.cs.meta +11 -0
- package/Samples~/Diagnostics Tooling Exerciser/README.md +53 -0
- package/Samples~/Diagnostics Tooling Exerciser/README.md.meta +7 -0
- package/Samples~/Diagnostics Tooling Exerciser/WallstopStudios.DxMessaging.DiagnosticsToolingExerciser.Sample.asmdef +13 -0
- package/Samples~/Diagnostics Tooling Exerciser/WallstopStudios.DxMessaging.DiagnosticsToolingExerciser.Sample.asmdef.meta +7 -0
- package/Samples~/Diagnostics Tooling Exerciser.meta +8 -0
- package/Samples~/Mini Combat/README.md +1 -1
- package/Samples~/Mini Combat/Walkthrough.md +3 -3
- package/docs/images/DxMessaging-banner.svg +79 -0
- package/docs/images/DxMessaging-banner.svg.meta +53 -0
- package/docs/images.meta +8 -0
- package/docs.meta +8 -0
- package/package.json +13 -4
|
@@ -17,7 +17,11 @@ namespace DxMessaging.Core
|
|
|
17
17
|
private static long StaticIdCount;
|
|
18
18
|
|
|
19
19
|
private readonly long _id;
|
|
20
|
-
private readonly int
|
|
20
|
+
private readonly int _slot;
|
|
21
|
+
|
|
22
|
+
internal long Id => _id;
|
|
23
|
+
|
|
24
|
+
internal int Slot => _slot;
|
|
21
25
|
|
|
22
26
|
internal static long GetCurrentIdSeed()
|
|
23
27
|
{
|
|
@@ -34,13 +38,23 @@ namespace DxMessaging.Core
|
|
|
34
38
|
/// </summary>
|
|
35
39
|
public static MessageRegistrationHandle CreateMessageRegistrationHandle()
|
|
36
40
|
{
|
|
37
|
-
return new MessageRegistrationHandle(Interlocked.Increment(ref StaticIdCount));
|
|
41
|
+
return new MessageRegistrationHandle(Interlocked.Increment(ref StaticIdCount), -1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
internal static MessageRegistrationHandle CreateMessageRegistrationHandle(int slot)
|
|
45
|
+
{
|
|
46
|
+
return new MessageRegistrationHandle(Interlocked.Increment(ref StaticIdCount), slot);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
internal static MessageRegistrationHandle FromIdentity(long id, int slot)
|
|
50
|
+
{
|
|
51
|
+
return new MessageRegistrationHandle(id, slot);
|
|
38
52
|
}
|
|
39
53
|
|
|
40
|
-
private MessageRegistrationHandle(long id)
|
|
54
|
+
private MessageRegistrationHandle(long id, int slot)
|
|
41
55
|
{
|
|
42
56
|
_id = id;
|
|
43
|
-
|
|
57
|
+
_slot = slot;
|
|
44
58
|
}
|
|
45
59
|
|
|
46
60
|
public static bool operator ==(
|
|
@@ -158,7 +172,7 @@ namespace DxMessaging.Core
|
|
|
158
172
|
/// <returns>Hash code derived from the internal identifier.</returns>
|
|
159
173
|
public override int GetHashCode()
|
|
160
174
|
{
|
|
161
|
-
return
|
|
175
|
+
return _id.GetHashCode();
|
|
162
176
|
}
|
|
163
177
|
|
|
164
178
|
/// <summary>
|