com.wallstop-studios.unity-helpers 2.0.3 → 2.1.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/Docs/DATA_STRUCTURES.md +7 -7
- package/Docs/EFFECTS_SYSTEM.md +836 -8
- package/Docs/EFFECTS_SYSTEM_TUTORIAL.md +77 -18
- package/Docs/HULLS.md +2 -2
- package/Docs/RANDOM_PERFORMANCE.md +1 -1
- package/Docs/REFLECTION_HELPERS.md +1 -1
- package/Docs/RELATIONAL_COMPONENTS.md +51 -6
- package/Docs/SERIALIZATION.md +1 -1
- package/Docs/SINGLETONS.md +2 -2
- package/Docs/SPATIAL_TREES_2D_GUIDE.md +3 -3
- package/Docs/SPATIAL_TREES_3D_GUIDE.md +3 -3
- package/Docs/SPATIAL_TREE_SEMANTICS.md +7 -7
- package/Editor/CustomDrawers/WShowIfPropertyDrawer.cs +131 -41
- package/Editor/Utils/ScriptableObjectSingletonCreator.cs +175 -18
- package/README.md +17 -3
- package/Runtime/Core/Helper/UnityMainThreadDispatcher.cs +4 -2
- package/Runtime/Tags/Attribute.cs +144 -24
- package/Runtime/Tags/AttributeEffect.cs +278 -11
- package/Runtime/Tags/AttributeModification.cs +59 -29
- package/Runtime/Tags/AttributeUtilities.cs +465 -0
- package/Runtime/Tags/AttributesComponent.cs +20 -0
- package/Runtime/Tags/EffectBehavior.cs +171 -0
- package/Runtime/Tags/EffectBehavior.cs.meta +4 -0
- package/Runtime/Tags/EffectHandle.cs +5 -0
- package/Runtime/Tags/EffectHandler.cs +564 -39
- package/Runtime/Tags/EffectStackKey.cs +79 -0
- package/Runtime/Tags/EffectStackKey.cs.meta +4 -0
- package/Runtime/Tags/PeriodicEffectDefinition.cs +102 -0
- package/Runtime/Tags/PeriodicEffectDefinition.cs.meta +4 -0
- package/Runtime/Tags/PeriodicEffectRuntimeState.cs +40 -0
- package/Runtime/Tags/PeriodicEffectRuntimeState.cs.meta +4 -0
- package/Runtime/Tags/TagHandler.cs +375 -21
- package/Samples~/DI - Zenject/README.md +0 -2
- package/Tests/Editor/Attributes/WShowIfPropertyDrawerTests.cs +285 -0
- package/Tests/Editor/Attributes/WShowIfPropertyDrawerTests.cs.meta +11 -0
- package/Tests/Editor/Core/Attributes/RelationalComponentAssignerTests.cs +2 -2
- package/Tests/Editor/Utils/ScriptableObjectSingletonTests.cs +41 -0
- package/Tests/Runtime/Serialization/JsonSerializationTest.cs +4 -3
- package/Tests/Runtime/Tags/AttributeEffectTests.cs +135 -0
- package/Tests/Runtime/Tags/AttributeEffectTests.cs.meta +3 -0
- package/Tests/Runtime/Tags/AttributeModificationTests.cs +137 -0
- package/Tests/Runtime/Tags/AttributeTests.cs +192 -0
- package/Tests/Runtime/Tags/AttributeTests.cs.meta +3 -0
- package/Tests/Runtime/Tags/AttributeUtilitiesTests.cs +245 -0
- package/Tests/Runtime/Tags/CosmeticAndCollisionTests.cs +1 -1
- package/Tests/Runtime/Tags/EffectBehaviorTests.cs +184 -0
- package/Tests/Runtime/Tags/EffectBehaviorTests.cs.meta +3 -0
- package/Tests/Runtime/Tags/EffectHandlerTests.cs +809 -0
- package/Tests/Runtime/Tags/Helpers/RecordingEffectBehavior.cs +89 -0
- package/Tests/Runtime/Tags/Helpers/RecordingEffectBehavior.cs.meta +4 -0
- package/Tests/Runtime/Tags/PeriodicEffectDefinitionSerializationTests.cs +92 -0
- package/Tests/Runtime/Tags/PeriodicEffectDefinitionSerializationTests.cs.meta +3 -0
- package/Tests/Runtime/Tags/TagHandlerTests.cs +130 -6
- package/package.json +1 -1
- package/scripts/lint-doc-links.ps1 +156 -11
- package/Tests/Runtime/Tags/AttributeDataTests.cs +0 -312
- package/node_modules.meta +0 -8
- /package/Tests/Runtime/Tags/{AttributeDataTests.cs.meta → AttributeModificationTests.cs.meta} +0 -0
package/Docs/DATA_STRUCTURES.md
CHANGED
|
@@ -16,7 +16,7 @@ This guide covers several foundational data structures used across the library a
|
|
|
16
16
|
- Pros: Constant-time, cache-friendly, no reallocations at steady size.
|
|
17
17
|
- Cons: Fixed capacity unless resized; must handle wrap-around.
|
|
18
18
|
|
|
19
|
-

|
|
20
20
|
|
|
21
21
|
When to use vs .NET queues
|
|
22
22
|
|
|
@@ -58,7 +58,7 @@ Tips and pitfalls
|
|
|
58
58
|
- Pros: Flexible ends; generalizes queue and stack behavior.
|
|
59
59
|
- Cons: Implementation complexity for block-based layouts.
|
|
60
60
|
|
|
61
|
-

|
|
62
62
|
|
|
63
63
|
When to use vs `Queue<T>` / `Stack<T>`
|
|
64
64
|
|
|
@@ -95,7 +95,7 @@ Tips
|
|
|
95
95
|
- Pros: Simple; great constant factors; contiguous memory.
|
|
96
96
|
- Cons: Not ideal for decrease-key unless augmented.
|
|
97
97
|
|
|
98
|
-

|
|
99
99
|
|
|
100
100
|
When to use vs `SortedSet<T>`
|
|
101
101
|
|
|
@@ -140,7 +140,7 @@ Tips
|
|
|
140
140
|
- Pros: Extremely fast for bulk unions/finds; minimal memory.
|
|
141
141
|
- Cons: Not suited for deletions or enumerating members without extra indexes.
|
|
142
142
|
|
|
143
|
-

|
|
144
144
|
|
|
145
145
|
When to use
|
|
146
146
|
|
|
@@ -183,7 +183,7 @@ Tips
|
|
|
183
183
|
- Pros: Very fast, cache-friendly on dense array; stable indices optional.
|
|
184
184
|
- Cons: Requires ID space for indices; sparse array sized by max ID.
|
|
185
185
|
|
|
186
|
-

|
|
187
187
|
|
|
188
188
|
When to use vs `HashSet<T>`
|
|
189
189
|
|
|
@@ -225,7 +225,7 @@ Tips
|
|
|
225
225
|
- Pros: Predictable per-character traversal; supports prefix enumeration.
|
|
226
226
|
- Cons: Memory overhead vs hash tables; compact with radix/compressed tries.
|
|
227
227
|
|
|
228
|
-

|
|
229
229
|
|
|
230
230
|
When to use vs dictionaries
|
|
231
231
|
|
|
@@ -264,7 +264,7 @@ Tips
|
|
|
264
264
|
- Pros: Extremely compact; very fast bitwise operations.
|
|
265
265
|
- Cons: Fixed maximum size unless dynamically extended; needs index mapping.
|
|
266
266
|
|
|
267
|
-

|
|
268
268
|
|
|
269
269
|
When to use vs `bool[]` / `HashSet<int>`
|
|
270
270
|
|