com.wallstop-studios.unity-helpers 2.0.0-rc61 → 2.0.0-rc63

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.
Files changed (177) hide show
  1. package/Editor/AnimationCopier.cs +7 -14
  2. package/Editor/AnimationCreator.cs +7 -11
  3. package/Editor/AnimationEventEditor.cs +6 -6
  4. package/Editor/AnimatorControllerCopier.cs +7 -13
  5. package/Editor/CustomEditors/MatchColliderToSpriteEditor.cs +4 -6
  6. package/Editor/FitTextureSizeWizard.cs +4 -4
  7. package/Editor/PrefabCheckWizard.cs +10 -13
  8. package/Editor/SpriteSettingsApplier.cs +4 -4
  9. package/Editor/StringInListeDrawer.cs +2 -2
  10. package/Editor/TextureResizerWizard.cs +6 -12
  11. package/Editor/TextureSettingsApplier.cs +5 -5
  12. package/Editor/Utils/DxReadOnlyPropertyDrawer.cs +2 -2
  13. package/Editor/Utils/EditorUtilities.cs +1 -1
  14. package/Editor/WShowIfPropertyDrawer.cs +4 -4
  15. package/Editor/WallstopStudios.UnityHelpers.Editor.asmdef +1 -1
  16. package/Runtime/Core/Attributes/AnimationEventAttribute.cs +1 -1
  17. package/Runtime/Core/Attributes/ChildComponentAttribute.cs +2 -1
  18. package/Runtime/Core/Attributes/DxReadOnlyAttribute.cs +1 -1
  19. package/Runtime/Core/Attributes/KSerializableAttribute.cs +1 -1
  20. package/Runtime/Core/Attributes/NotNullAttribute.cs +1 -1
  21. package/Runtime/Core/Attributes/ParentComponent.cs +1 -1
  22. package/Runtime/Core/Attributes/RelationalComponentExtensions.cs +1 -1
  23. package/Runtime/Core/Attributes/SiblingComponentAttribute.cs +1 -1
  24. package/Runtime/Core/Attributes/ValidateAssignmentAttribute.cs +12 -7
  25. package/Runtime/Core/Attributes/WShowIfAttribute.cs +1 -1
  26. package/Runtime/Core/DataStructure/Adapters/FastVector2Int.cs +1 -1
  27. package/Runtime/Core/DataStructure/Adapters/FastVector3Int.cs +1 -1
  28. package/Runtime/Core/DataStructure/Adapters/KGuid.cs +1 -1
  29. package/Runtime/Core/DataStructure/Adapters/KVector2.cs +1 -1
  30. package/Runtime/Core/DataStructure/Circle.cs +1 -1
  31. package/Runtime/Core/DataStructure/CyclicBuffer.cs +1 -1
  32. package/Runtime/Core/DataStructure/ISpatialTree.cs +1 -1
  33. package/Runtime/Core/DataStructure/KDTree.cs +1 -1
  34. package/Runtime/Core/DataStructure/QuadTree.cs +1 -1
  35. package/Runtime/Core/DataStructure/RTree.cs +1 -1
  36. package/Runtime/Core/DataStructure/StringWrapper.cs +1 -1
  37. package/Runtime/Core/DataStructure/TimedCache.cs +1 -1
  38. package/Runtime/Core/Extension/AnimatorExtensions.cs +1 -1
  39. package/Runtime/Core/Extension/AsyncOperationExtensions.cs +1 -1
  40. package/Runtime/Core/Extension/CircleExtensions.cs +1 -1
  41. package/Runtime/Core/Extension/ColorExtensions.cs +16 -1
  42. package/Runtime/Core/Extension/DictionaryExtensions.cs +1 -1
  43. package/Runtime/Core/Extension/DirectionExtensions.cs +1 -1
  44. package/Runtime/Core/Extension/EnumExtensions.cs +1 -1
  45. package/Runtime/Core/Extension/HashSetExtensions.cs +1 -1
  46. package/Runtime/Core/Extension/IEnumerableExtensions.cs +1 -1
  47. package/Runtime/Core/Extension/IListExtensions.cs +1 -1
  48. package/Runtime/Core/Extension/LoggingExtensions.cs +69 -122
  49. package/Runtime/Core/Extension/RandomExtensions.cs +1 -1
  50. package/Runtime/Core/Extension/SerializedPropertyExtensions.cs +2 -2
  51. package/Runtime/Core/Extension/StringExtensions.cs +1 -1
  52. package/Runtime/Core/Extension/UnityExtensions.cs +1 -2
  53. package/Runtime/Core/Helper/ArrayConverter.cs +1 -1
  54. package/Runtime/Core/Helper/AssignUtilities.cs +1 -1
  55. package/Runtime/Core/Helper/DirectoryHelper.cs +1 -1
  56. package/Runtime/Core/Helper/Enumerables.cs +1 -1
  57. package/Runtime/Core/Helper/FormattingHelpers.cs +1 -1
  58. package/Runtime/Core/Helper/Geometry.cs +1 -1
  59. package/Runtime/Core/Helper/Helpers.cs +6 -9
  60. package/Runtime/Core/Helper/IterationHelpers.cs +1 -1
  61. package/Runtime/Core/Helper/LifetimeHelpers.cs +2 -1
  62. package/Runtime/Core/Helper/Logging/UnityLogTagFormatter.cs +517 -0
  63. package/Runtime/Core/Helper/Logging/UnityLogTagFormatter.cs.meta +3 -0
  64. package/Runtime/Core/Helper/Logging.meta +3 -0
  65. package/Runtime/Core/Helper/Objects.cs +1 -1
  66. package/Runtime/Core/Helper/Partials/LogHelpers.cs +2 -2
  67. package/Runtime/Core/Helper/Partials/MathHelpers.cs +1 -1
  68. package/Runtime/Core/Helper/Partials/ObjectHelpers.cs +5 -11
  69. package/Runtime/Core/Helper/Partials/TransformHelpers.cs +1 -1
  70. package/Runtime/Core/Helper/ReflectionHelpers.cs +173 -36
  71. package/Runtime/Core/Helper/SceneHelper.cs +3 -5
  72. package/Runtime/Core/Helper/SpriteHelpers.cs +3 -3
  73. package/Runtime/Core/Helper/StringInList.cs +1 -1
  74. package/Runtime/Core/Helper/UnityMainThreadDispatcher.cs +2 -4
  75. package/Runtime/Core/Helper/WallMath.cs +1 -1
  76. package/Runtime/Core/Math/Line.cs +1 -1
  77. package/Runtime/Core/Math/Parabola.cs +1 -1
  78. package/Runtime/Core/Math/PointPolygonCheck.cs +1 -1
  79. package/Runtime/Core/Math/Range.cs +1 -1
  80. package/Runtime/Core/Math/XXHash.cs +1 -1
  81. package/Runtime/Core/Model/Direction.cs +1 -1
  82. package/Runtime/Core/OneOf/FastOneOf.cs +1 -1
  83. package/Runtime/Core/OneOf/None.cs +1 -1
  84. package/Runtime/Core/Random/AbstractRandom.cs +1 -1
  85. package/Runtime/Core/Random/DotNetRandom.cs +1 -1
  86. package/Runtime/Core/Random/IRandom.cs +1 -1
  87. package/Runtime/Core/Random/LinearCongruentialGenerator.cs +1 -1
  88. package/Runtime/Core/Random/NativePcgRandom.cs +1 -1
  89. package/Runtime/Core/Random/PRNG.cs +1 -1
  90. package/Runtime/Core/Random/PcgRandom.cs +1 -1
  91. package/Runtime/Core/Random/PerlinNoise.cs +1 -1
  92. package/Runtime/Core/Random/RandomState.cs +1 -1
  93. package/Runtime/Core/Random/RandomUtilities.cs +1 -1
  94. package/Runtime/Core/Random/RomuDuo.cs +1 -1
  95. package/Runtime/Core/Random/SplitMix64.cs +1 -1
  96. package/Runtime/Core/Random/SquirrelRandom.cs +1 -1
  97. package/Runtime/Core/Random/SystemRandom.cs +1 -1
  98. package/Runtime/Core/Random/ThreadLocalRandom.cs +1 -1
  99. package/Runtime/Core/Random/UnityRandom.cs +1 -1
  100. package/Runtime/Core/Random/WyRandom.cs +1 -1
  101. package/Runtime/Core/Random/XorShiftRandom.cs +1 -1
  102. package/Runtime/Core/Random/XorShiroRandom.cs +1 -1
  103. package/Runtime/Core/Serialization/JsonConverters/ColorConverter.cs +1 -1
  104. package/Runtime/Core/Serialization/JsonConverters/GameObjectConverter.cs +1 -2
  105. package/Runtime/Core/Serialization/JsonConverters/Matrix4x4Converter.cs +1 -1
  106. package/Runtime/Core/Serialization/JsonConverters/TypeConverter.cs +1 -1
  107. package/Runtime/Core/Serialization/JsonConverters/Vector2Converter.cs +1 -1
  108. package/Runtime/Core/Serialization/JsonConverters/Vector3Converter.cs +1 -1
  109. package/Runtime/Core/Serialization/JsonConverters/Vector4Converter.cs +1 -1
  110. package/Runtime/Core/Serialization/Serializer.cs +1 -1
  111. package/Runtime/Core/Threading/SingleThreadedThreadPool.cs +1 -1
  112. package/Runtime/UI/LayeredImage.cs +1 -1
  113. package/Runtime/Utils/AnimationEventEqualityComparer.cs +1 -1
  114. package/Runtime/Utils/AnimatorEnumStateMachine.cs +1 -1
  115. package/Runtime/Utils/Buffers.cs +1 -1
  116. package/Runtime/Utils/CenterPointOffset.cs +1 -1
  117. package/Runtime/Utils/CircleLineRenderer.cs +4 -6
  118. package/Runtime/Utils/CoroutineHandler.cs +1 -1
  119. package/Runtime/Utils/DeferredDisposalResult.cs +1 -1
  120. package/Runtime/Utils/MatchColliderToSprite.cs +1 -1
  121. package/Runtime/Utils/Oscillator.cs +1 -1
  122. package/Runtime/Utils/RuntimeSingleton.cs +1 -1
  123. package/Runtime/Utils/SetTextureImportData.cs +1 -1
  124. package/Runtime/Utils/SpriteRendererMetadata.cs +1 -1
  125. package/Runtime/Utils/SpriteRendererSyncer.cs +1 -1
  126. package/Runtime/Utils/StartTracker.cs +1 -1
  127. package/Runtime/Utils/TextureScale.cs +1 -1
  128. package/Runtime/Utils/TypeNameSorter.cs +17 -0
  129. package/Runtime/Utils/TypeNameSorter.cs.meta +3 -0
  130. package/Runtime/Utils/UnityObjectNameComparer.cs +1 -1
  131. package/Runtime/WallstopStudios.UnityHelpers.asmdef +1 -1
  132. package/Tests/Runtime/Attributes/ChildComponentTests.cs +2 -2
  133. package/Tests/Runtime/Attributes/Components/ExpectChildSpriteRenderers.cs +2 -2
  134. package/Tests/Runtime/Attributes/Components/ExpectParentSpriteRenderers.cs +2 -2
  135. package/Tests/Runtime/Attributes/ParentComponentTests.cs +2 -2
  136. package/Tests/Runtime/Components/RelationalComponentTesterComplex.cs +2 -2
  137. package/Tests/Runtime/Components/RelationalComponentsTesterSimple.cs +4 -4
  138. package/Tests/Runtime/DataStructures/BalancedKDTreeTests.cs +2 -2
  139. package/Tests/Runtime/DataStructures/CyclicBufferTests.cs +3 -3
  140. package/Tests/Runtime/DataStructures/QuadTreeTests.cs +2 -2
  141. package/Tests/Runtime/DataStructures/SpatialTreeTests.cs +4 -4
  142. package/Tests/Runtime/DataStructures/UnbalancedKDTreeTests.cs +2 -2
  143. package/Tests/Runtime/Extensions/DictionaryExtensionTests.cs +2 -3
  144. package/Tests/Runtime/Extensions/EnumExtensionTests.cs +2 -2
  145. package/Tests/Runtime/Extensions/IListExtensionTests.cs +3 -3
  146. package/Tests/Runtime/Extensions/LoggingExtensionTests.cs +718 -0
  147. package/Tests/Runtime/Extensions/LoggingExtensionTests.cs.meta +3 -0
  148. package/Tests/Runtime/Extensions/RandomExtensionTests.cs +3 -3
  149. package/Tests/Runtime/Extensions/StringExtensionTests.cs +2 -2
  150. package/Tests/Runtime/Helper/ArrayConverterTests.cs +3 -3
  151. package/Tests/Runtime/Helper/FormattingHelperTests.cs +3 -3
  152. package/Tests/Runtime/Helper/ObjectHelperTests.cs +2 -2
  153. package/Tests/Runtime/Helper/ReflectionHelperTests.cs +3 -3
  154. package/Tests/Runtime/Helper/SceneHelperTests.cs +3 -3
  155. package/Tests/Runtime/Helper/WallMathTests.cs +5 -5
  156. package/Tests/Runtime/Performance/KDTreePerformanceTests.cs +2 -2
  157. package/Tests/Runtime/Performance/QuadTreePerformanceTests.cs +2 -2
  158. package/Tests/Runtime/Performance/RandomPerformanceTests.cs +2 -2
  159. package/Tests/Runtime/Performance/RelationComponentPerformanceTests.cs +2 -2
  160. package/Tests/Runtime/Performance/SpatialTreePerformanceTest.cs +2 -2
  161. package/Tests/Runtime/Performance/UnbalancedKDTreeTests.cs +2 -2
  162. package/Tests/Runtime/Random/DotNetRandomTests.cs +2 -2
  163. package/Tests/Runtime/Random/LinearCongruentialGeneratorTests.cs +2 -2
  164. package/Tests/Runtime/Random/PcgRandomTests.cs +2 -2
  165. package/Tests/Runtime/Random/RandomTestBase.cs +7 -7
  166. package/Tests/Runtime/Random/RomuDuoRandomTests.cs +2 -2
  167. package/Tests/Runtime/Random/SplitMix64RandomTests.cs +2 -2
  168. package/Tests/Runtime/Random/SquirrelRandomTests.cs +2 -2
  169. package/Tests/Runtime/Random/SystemRandomTests.cs +2 -2
  170. package/Tests/Runtime/Random/UnityRandomTests.cs +2 -2
  171. package/Tests/Runtime/Random/WyRandomTests.cs +2 -2
  172. package/Tests/Runtime/Random/XorShiftRandomTests.cs +2 -2
  173. package/Tests/Runtime/Random/XorShiroRandomTests.cs +2 -2
  174. package/Tests/Runtime/Serialization/JsonSerializationTest.cs +5 -5
  175. package/Tests/Runtime/Utils/SpriteRendererMetadataTests.cs +3 -4
  176. package/Tests/Runtime/WallstopStudios.UnityHelpers.Tests.Runtime.asmdef +1 -1
  177. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 40f1b0a7e1eb4979aa02ef455d77b30a
3
+ timeCreated: 1745450870
@@ -1,10 +1,10 @@
1
- namespace UnityHelpers.Tests.Extensions
1
+ namespace WallstopStudios.UnityHelpers.Tests.Extensions
2
2
  {
3
3
  using System.Collections.Generic;
4
- using Core.Extension;
5
- using Core.Random;
6
4
  using NUnit.Framework;
7
5
  using UnityEngine;
6
+ using WallstopStudios.UnityHelpers.Core.Extension;
7
+ using WallstopStudios.UnityHelpers.Core.Random;
8
8
 
9
9
  public sealed class RandomExtensionTests
10
10
  {
@@ -1,7 +1,7 @@
1
- namespace UnityHelpers.Tests.Extensions
1
+ namespace WallstopStudios.UnityHelpers.Tests.Extensions
2
2
  {
3
- using Core.Extension;
4
3
  using NUnit.Framework;
4
+ using WallstopStudios.UnityHelpers.Core.Extension;
5
5
 
6
6
  public sealed class StringExtensionTests
7
7
  {
@@ -1,9 +1,9 @@
1
- namespace UnityHelpers.Tests.Helper
1
+ namespace WallstopStudios.UnityHelpers.Tests.Helper
2
2
  {
3
3
  using System.Linq;
4
4
  using NUnit.Framework;
5
- using UnityHelpers.Core.Helper;
6
- using UnityHelpers.Core.Random;
5
+ using WallstopStudios.UnityHelpers.Core.Helper;
6
+ using WallstopStudios.UnityHelpers.Core.Random;
7
7
 
8
8
  public sealed class ArrayConverterTests
9
9
  {
@@ -1,8 +1,8 @@
1
- namespace UnityHelpers.Tests.Helper
1
+ namespace WallstopStudios.UnityHelpers.Tests.Helper
2
2
  {
3
3
  using NUnit.Framework;
4
- using UnityHelpers.Core.Helper;
5
- using UnityHelpers.Core.Random;
4
+ using WallstopStudios.UnityHelpers.Core.Helper;
5
+ using WallstopStudios.UnityHelpers.Core.Random;
6
6
 
7
7
  public sealed class FormattingHelperTests
8
8
  {
@@ -1,11 +1,11 @@
1
- namespace UnityHelpers.Tests.Helper
1
+ namespace WallstopStudios.UnityHelpers.Tests.Helper
2
2
  {
3
3
  using System.Collections;
4
+ using Core.Helper;
4
5
  using JetBrains.Annotations;
5
6
  using NUnit.Framework;
6
7
  using UnityEngine;
7
8
  using UnityEngine.TestTools;
8
- using UnityHelpers.Core.Helper;
9
9
 
10
10
  [UsedImplicitly]
11
11
  public sealed class ObjectHelperComponent : MonoBehaviour { }
@@ -1,12 +1,12 @@
1
- namespace UnityHelpers.Tests.Helper
1
+ namespace WallstopStudios.UnityHelpers.Tests.Helper
2
2
  {
3
3
  using System;
4
4
  using System.Collections;
5
5
  using System.Collections.Generic;
6
6
  using System.Reflection;
7
7
  using NUnit.Framework;
8
- using UnityHelpers.Core.Helper;
9
- using UnityHelpers.Core.Random;
8
+ using WallstopStudios.UnityHelpers.Core.Helper;
9
+ using WallstopStudios.UnityHelpers.Core.Random;
10
10
 
11
11
  public struct TestStruct
12
12
  {
@@ -1,15 +1,15 @@
1
- namespace UnityHelpers.Tests.Helper
1
+ namespace WallstopStudios.UnityHelpers.Tests.Helper
2
2
  {
3
3
  using System;
4
4
  using System.Collections;
5
5
  using System.Collections.Generic;
6
6
  using System.Linq;
7
7
  using System.Threading.Tasks;
8
- using Core.Helper;
9
8
  using NUnit.Framework;
10
9
  using UnityEngine;
11
10
  using UnityEngine.TestTools;
12
- using UnityHelpers.Utils;
11
+ using WallstopStudios.UnityHelpers.Core.Helper;
12
+ using WallstopStudios.UnityHelpers.Utils;
13
13
 
14
14
  public sealed class SceneHelperTests
15
15
  {
@@ -1,10 +1,10 @@
1
- namespace UnityHelpers.Tests.Helper
1
+ namespace WallstopStudios.UnityHelpers.Tests.Helper
2
2
  {
3
3
  using NUnit.Framework;
4
4
  using UnityEngine;
5
- using UnityHelpers.Core.Extension;
6
- using UnityHelpers.Core.Helper;
7
- using UnityHelpers.Core.Random;
5
+ using WallstopStudios.UnityHelpers.Core.Extension;
6
+ using WallstopStudios.UnityHelpers.Core.Helper;
7
+ using WallstopStudios.UnityHelpers.Core.Random;
8
8
 
9
9
  public sealed class WallMathTests
10
10
  {
@@ -16,7 +16,7 @@
16
16
  for (int i = 0; i < TestIterations; ++i)
17
17
  {
18
18
  float target = PRNG.Instance.NextFloat(-1_000, 1_000);
19
- float delta = PRNG.Instance.NextFloat(0f, 10f);
19
+ float delta = PRNG.Instance.NextFloat(1f, 10f);
20
20
 
21
21
  float insideOffset = delta * PRNG.Instance.NextFloat();
22
22
  if (PRNG.Instance.NextBool())
@@ -1,8 +1,8 @@
1
- namespace UnityHelpers.Tests.Performance
1
+ namespace WallstopStudios.UnityHelpers.Tests.Performance
2
2
  {
3
3
  using System.Collections.Generic;
4
- using Core.DataStructure;
5
4
  using UnityEngine;
5
+ using WallstopStudios.UnityHelpers.Core.DataStructure;
6
6
 
7
7
  public sealed class KDTreePerformanceTests : SpatialTreePerformanceTest<KDTree<Vector2>>
8
8
  {
@@ -1,8 +1,8 @@
1
- namespace UnityHelpers.Tests.Performance
1
+ namespace WallstopStudios.UnityHelpers.Tests.Performance
2
2
  {
3
3
  using System.Collections.Generic;
4
- using Core.DataStructure;
5
4
  using UnityEngine;
5
+ using WallstopStudios.UnityHelpers.Core.DataStructure;
6
6
 
7
7
  public sealed class QuadTreePerformanceTests : SpatialTreePerformanceTest<QuadTree<Vector2>>
8
8
  {
@@ -1,9 +1,9 @@
1
- namespace UnityHelpers.Tests.Performance
1
+ namespace WallstopStudios.UnityHelpers.Tests.Performance
2
2
  {
3
3
  using System;
4
4
  using System.Diagnostics;
5
5
  using NUnit.Framework;
6
- using UnityHelpers.Core.Random;
6
+ using WallstopStudios.UnityHelpers.Core.Random;
7
7
 
8
8
  public sealed class RandomPerformanceTests
9
9
  {
@@ -1,12 +1,12 @@
1
- namespace UnityHelpers.Tests.Performance
1
+ namespace WallstopStudios.UnityHelpers.Tests.Performance
2
2
  {
3
3
  using System;
4
4
  using System.Diagnostics;
5
5
  using Components;
6
6
  using Components.UnityHelpers.Tests.Components;
7
- using Core.Attributes;
8
7
  using NUnit.Framework;
9
8
  using UnityEngine;
9
+ using WallstopStudios.UnityHelpers.Core.Attributes;
10
10
 
11
11
  public sealed class RelationComponentPerformanceTests
12
12
  {
@@ -1,4 +1,4 @@
1
- namespace UnityHelpers.Tests.Performance
1
+ namespace WallstopStudios.UnityHelpers.Tests.Performance
2
2
  {
3
3
  using System;
4
4
  using System.Collections;
@@ -6,10 +6,10 @@
6
6
  using System.Diagnostics;
7
7
  using System.Linq;
8
8
  using System.Threading.Tasks;
9
- using Core.DataStructure;
10
9
  using NUnit.Framework;
11
10
  using UnityEngine;
12
11
  using UnityEngine.TestTools;
12
+ using WallstopStudios.UnityHelpers.Core.DataStructure;
13
13
 
14
14
  public abstract class SpatialTreePerformanceTest<TTree>
15
15
  where TTree : ISpatialTree<Vector2>
@@ -1,8 +1,8 @@
1
- namespace UnityHelpers.Tests.Performance
1
+ namespace WallstopStudios.UnityHelpers.Tests.Performance
2
2
  {
3
3
  using System.Collections.Generic;
4
- using Core.DataStructure;
5
4
  using UnityEngine;
5
+ using WallstopStudios.UnityHelpers.Core.DataStructure;
6
6
 
7
7
  public sealed class UnbalancedKDTreeTests : SpatialTreePerformanceTest<KDTree<Vector2>>
8
8
  {
@@ -1,6 +1,6 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
- using Core.Random;
3
+ using WallstopStudios.UnityHelpers.Core.Random;
4
4
 
5
5
  public sealed class DotNetRandomTests : RandomTestBase
6
6
  {
@@ -1,6 +1,6 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
- using Core.Random;
3
+ using WallstopStudios.UnityHelpers.Core.Random;
4
4
 
5
5
  public sealed class LinearCongruentialGeneratorTests : RandomTestBase
6
6
  {
@@ -1,6 +1,6 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
- using UnityHelpers.Core.Random;
3
+ using WallstopStudios.UnityHelpers.Core.Random;
4
4
 
5
5
  public sealed class PcgRandomTests : RandomTestBase
6
6
  {
@@ -1,14 +1,14 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
3
  using System;
4
4
  using System.Collections.Generic;
5
5
  using System.Linq;
6
6
  using System.Runtime.CompilerServices;
7
- using Core.DataStructure.Adapters;
8
- using Core.Extension;
9
- using Core.Serialization;
10
7
  using NUnit.Framework;
11
- using UnityHelpers.Core.Random;
8
+ using WallstopStudios.UnityHelpers.Core.DataStructure.Adapters;
9
+ using WallstopStudios.UnityHelpers.Core.Extension;
10
+ using WallstopStudios.UnityHelpers.Core.Random;
11
+ using WallstopStudios.UnityHelpers.Core.Serialization;
12
12
 
13
13
  public enum TestValues
14
14
  {
@@ -737,13 +737,13 @@
737
737
  for (int i = 0; i < SampleCount; ++i)
738
738
  {
739
739
  int index = sample(random);
740
- if (index < 0 || sampleLength <= index)
740
+ if (index < 0 || sampleLength < index)
741
741
  {
742
742
  Assert.Fail("Index {0} out of range", index);
743
743
  }
744
744
  else
745
745
  {
746
- _samples[index]++;
746
+ _samples[Math.Min(sampleLength - 1, index)]++;
747
747
  }
748
748
  }
749
749
 
@@ -1,6 +1,6 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
- using Core.Random;
3
+ using WallstopStudios.UnityHelpers.Core.Random;
4
4
 
5
5
  public sealed class RomuDuoRandomTests : RandomTestBase
6
6
  {
@@ -1,6 +1,6 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
- using Core.Random;
3
+ using WallstopStudios.UnityHelpers.Core.Random;
4
4
 
5
5
  public sealed class SplitMix64RandomTests : RandomTestBase
6
6
  {
@@ -1,6 +1,6 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
- using UnityHelpers.Core.Random;
3
+ using WallstopStudios.UnityHelpers.Core.Random;
4
4
 
5
5
  public sealed class SquirrelRandomTests : RandomTestBase
6
6
  {
@@ -1,7 +1,7 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
3
  using System;
4
- using UnityHelpers.Core.Random;
4
+ using WallstopStudios.UnityHelpers.Core.Random;
5
5
 
6
6
  public sealed class SystemRandomTests : RandomTestBase
7
7
  {
@@ -1,6 +1,6 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
- using UnityHelpers.Core.Random;
3
+ using WallstopStudios.UnityHelpers.Core.Random;
4
4
 
5
5
  public sealed class UnityRandomTests : RandomTestBase
6
6
  {
@@ -1,6 +1,6 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
- using Core.Random;
3
+ using WallstopStudios.UnityHelpers.Core.Random;
4
4
 
5
5
  public sealed class WyRandomTests : RandomTestBase
6
6
  {
@@ -1,6 +1,6 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
- using UnityHelpers.Core.Random;
3
+ using WallstopStudios.UnityHelpers.Core.Random;
4
4
 
5
5
  public sealed class XorShiftRandomTests : RandomTestBase
6
6
  {
@@ -1,6 +1,6 @@
1
- namespace UnityHelpers.Tests.Random
1
+ namespace WallstopStudios.UnityHelpers.Tests.Random
2
2
  {
3
- using Core.Random;
3
+ using WallstopStudios.UnityHelpers.Core.Random;
4
4
 
5
5
  public sealed class XorShiroRandomTests : RandomTestBase
6
6
  {
@@ -1,16 +1,16 @@
1
- namespace UnityHelpers.Tests.Serialization
1
+ namespace WallstopStudios.UnityHelpers.Tests.Serialization
2
2
  {
3
3
  using System;
4
4
  using System.Collections.Generic;
5
5
  using System.Linq;
6
6
  using System.Runtime.Serialization;
7
7
  using System.Text.Json.Serialization;
8
- using Core.Extension;
9
- using Core.Helper;
10
- using Core.Random;
11
- using Core.Serialization;
12
8
  using NUnit.Framework;
13
9
  using UnityEngine;
10
+ using WallstopStudios.UnityHelpers.Core.Extension;
11
+ using WallstopStudios.UnityHelpers.Core.Helper;
12
+ using WallstopStudios.UnityHelpers.Core.Random;
13
+ using WallstopStudios.UnityHelpers.Core.Serialization;
14
14
 
15
15
  [DataContract]
16
16
  public sealed class TestDataObject
@@ -1,14 +1,13 @@
1
- namespace UnityHelpers.Tests.Utils
1
+ namespace WallstopStudios.UnityHelpers.Tests.Utils
2
2
  {
3
3
  using System.Collections;
4
4
  using System.Collections.Generic;
5
5
  using System.Linq;
6
- using Core.Helper;
7
- using Core.Random;
8
6
  using NUnit.Framework;
9
7
  using UnityEngine;
10
8
  using UnityEngine.TestTools;
11
- using UnityHelpers.Utils;
9
+ using WallstopStudios.UnityHelpers.Core.Random;
10
+ using WallstopStudios.UnityHelpers.Utils;
12
11
 
13
12
  public sealed class SpriteRendererMetadataTests
14
13
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "WallstopStudios.UnityHelpers.Tests.Runtime",
3
- "rootNamespace": "UnityHelpers.Tests",
3
+ "rootNamespace": "WallstopStudios.UnityHelpers.Tests",
4
4
  "references": [
5
5
  "UnityEditor.TestRunner",
6
6
  "UnityEngine.TestRunner",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "2.0.0-rc61",
3
+ "version": "2.0.0-rc63",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {},