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.
- package/Editor/AnimationCopier.cs +7 -14
- package/Editor/AnimationCreator.cs +7 -11
- package/Editor/AnimationEventEditor.cs +6 -6
- package/Editor/AnimatorControllerCopier.cs +7 -13
- package/Editor/CustomEditors/MatchColliderToSpriteEditor.cs +4 -6
- package/Editor/FitTextureSizeWizard.cs +4 -4
- package/Editor/PrefabCheckWizard.cs +10 -13
- package/Editor/SpriteSettingsApplier.cs +4 -4
- package/Editor/StringInListeDrawer.cs +2 -2
- package/Editor/TextureResizerWizard.cs +6 -12
- package/Editor/TextureSettingsApplier.cs +5 -5
- package/Editor/Utils/DxReadOnlyPropertyDrawer.cs +2 -2
- package/Editor/Utils/EditorUtilities.cs +1 -1
- package/Editor/WShowIfPropertyDrawer.cs +4 -4
- package/Editor/WallstopStudios.UnityHelpers.Editor.asmdef +1 -1
- package/Runtime/Core/Attributes/AnimationEventAttribute.cs +1 -1
- package/Runtime/Core/Attributes/ChildComponentAttribute.cs +2 -1
- package/Runtime/Core/Attributes/DxReadOnlyAttribute.cs +1 -1
- package/Runtime/Core/Attributes/KSerializableAttribute.cs +1 -1
- package/Runtime/Core/Attributes/NotNullAttribute.cs +1 -1
- package/Runtime/Core/Attributes/ParentComponent.cs +1 -1
- package/Runtime/Core/Attributes/RelationalComponentExtensions.cs +1 -1
- package/Runtime/Core/Attributes/SiblingComponentAttribute.cs +1 -1
- package/Runtime/Core/Attributes/ValidateAssignmentAttribute.cs +12 -7
- package/Runtime/Core/Attributes/WShowIfAttribute.cs +1 -1
- package/Runtime/Core/DataStructure/Adapters/FastVector2Int.cs +1 -1
- package/Runtime/Core/DataStructure/Adapters/FastVector3Int.cs +1 -1
- package/Runtime/Core/DataStructure/Adapters/KGuid.cs +1 -1
- package/Runtime/Core/DataStructure/Adapters/KVector2.cs +1 -1
- package/Runtime/Core/DataStructure/Circle.cs +1 -1
- package/Runtime/Core/DataStructure/CyclicBuffer.cs +1 -1
- package/Runtime/Core/DataStructure/ISpatialTree.cs +1 -1
- package/Runtime/Core/DataStructure/KDTree.cs +1 -1
- package/Runtime/Core/DataStructure/QuadTree.cs +1 -1
- package/Runtime/Core/DataStructure/RTree.cs +1 -1
- package/Runtime/Core/DataStructure/StringWrapper.cs +1 -1
- package/Runtime/Core/DataStructure/TimedCache.cs +1 -1
- package/Runtime/Core/Extension/AnimatorExtensions.cs +1 -1
- package/Runtime/Core/Extension/AsyncOperationExtensions.cs +1 -1
- package/Runtime/Core/Extension/CircleExtensions.cs +1 -1
- package/Runtime/Core/Extension/ColorExtensions.cs +16 -1
- package/Runtime/Core/Extension/DictionaryExtensions.cs +1 -1
- package/Runtime/Core/Extension/DirectionExtensions.cs +1 -1
- package/Runtime/Core/Extension/EnumExtensions.cs +1 -1
- package/Runtime/Core/Extension/HashSetExtensions.cs +1 -1
- package/Runtime/Core/Extension/IEnumerableExtensions.cs +1 -1
- package/Runtime/Core/Extension/IListExtensions.cs +1 -1
- package/Runtime/Core/Extension/LoggingExtensions.cs +69 -122
- package/Runtime/Core/Extension/RandomExtensions.cs +1 -1
- package/Runtime/Core/Extension/SerializedPropertyExtensions.cs +2 -2
- package/Runtime/Core/Extension/StringExtensions.cs +1 -1
- package/Runtime/Core/Extension/UnityExtensions.cs +1 -2
- package/Runtime/Core/Helper/ArrayConverter.cs +1 -1
- package/Runtime/Core/Helper/AssignUtilities.cs +1 -1
- package/Runtime/Core/Helper/DirectoryHelper.cs +1 -1
- package/Runtime/Core/Helper/Enumerables.cs +1 -1
- package/Runtime/Core/Helper/FormattingHelpers.cs +1 -1
- package/Runtime/Core/Helper/Geometry.cs +1 -1
- package/Runtime/Core/Helper/Helpers.cs +6 -9
- package/Runtime/Core/Helper/IterationHelpers.cs +1 -1
- package/Runtime/Core/Helper/LifetimeHelpers.cs +2 -1
- package/Runtime/Core/Helper/Logging/UnityLogTagFormatter.cs +517 -0
- package/Runtime/Core/Helper/Logging/UnityLogTagFormatter.cs.meta +3 -0
- package/Runtime/Core/Helper/Logging.meta +3 -0
- package/Runtime/Core/Helper/Objects.cs +1 -1
- package/Runtime/Core/Helper/Partials/LogHelpers.cs +2 -2
- package/Runtime/Core/Helper/Partials/MathHelpers.cs +1 -1
- package/Runtime/Core/Helper/Partials/ObjectHelpers.cs +5 -11
- package/Runtime/Core/Helper/Partials/TransformHelpers.cs +1 -1
- package/Runtime/Core/Helper/ReflectionHelpers.cs +173 -36
- package/Runtime/Core/Helper/SceneHelper.cs +3 -5
- package/Runtime/Core/Helper/SpriteHelpers.cs +3 -3
- package/Runtime/Core/Helper/StringInList.cs +1 -1
- package/Runtime/Core/Helper/UnityMainThreadDispatcher.cs +2 -4
- package/Runtime/Core/Helper/WallMath.cs +1 -1
- package/Runtime/Core/Math/Line.cs +1 -1
- package/Runtime/Core/Math/Parabola.cs +1 -1
- package/Runtime/Core/Math/PointPolygonCheck.cs +1 -1
- package/Runtime/Core/Math/Range.cs +1 -1
- package/Runtime/Core/Math/XXHash.cs +1 -1
- package/Runtime/Core/Model/Direction.cs +1 -1
- package/Runtime/Core/OneOf/FastOneOf.cs +1 -1
- package/Runtime/Core/OneOf/None.cs +1 -1
- package/Runtime/Core/Random/AbstractRandom.cs +1 -1
- package/Runtime/Core/Random/DotNetRandom.cs +1 -1
- package/Runtime/Core/Random/IRandom.cs +1 -1
- package/Runtime/Core/Random/LinearCongruentialGenerator.cs +1 -1
- package/Runtime/Core/Random/NativePcgRandom.cs +1 -1
- package/Runtime/Core/Random/PRNG.cs +1 -1
- package/Runtime/Core/Random/PcgRandom.cs +1 -1
- package/Runtime/Core/Random/PerlinNoise.cs +1 -1
- package/Runtime/Core/Random/RandomState.cs +1 -1
- package/Runtime/Core/Random/RandomUtilities.cs +1 -1
- package/Runtime/Core/Random/RomuDuo.cs +1 -1
- package/Runtime/Core/Random/SplitMix64.cs +1 -1
- package/Runtime/Core/Random/SquirrelRandom.cs +1 -1
- package/Runtime/Core/Random/SystemRandom.cs +1 -1
- package/Runtime/Core/Random/ThreadLocalRandom.cs +1 -1
- package/Runtime/Core/Random/UnityRandom.cs +1 -1
- package/Runtime/Core/Random/WyRandom.cs +1 -1
- package/Runtime/Core/Random/XorShiftRandom.cs +1 -1
- package/Runtime/Core/Random/XorShiroRandom.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/ColorConverter.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/GameObjectConverter.cs +1 -2
- package/Runtime/Core/Serialization/JsonConverters/Matrix4x4Converter.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/TypeConverter.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/Vector2Converter.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/Vector3Converter.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/Vector4Converter.cs +1 -1
- package/Runtime/Core/Serialization/Serializer.cs +1 -1
- package/Runtime/Core/Threading/SingleThreadedThreadPool.cs +1 -1
- package/Runtime/UI/LayeredImage.cs +1 -1
- package/Runtime/Utils/AnimationEventEqualityComparer.cs +1 -1
- package/Runtime/Utils/AnimatorEnumStateMachine.cs +1 -1
- package/Runtime/Utils/Buffers.cs +1 -1
- package/Runtime/Utils/CenterPointOffset.cs +1 -1
- package/Runtime/Utils/CircleLineRenderer.cs +4 -6
- package/Runtime/Utils/CoroutineHandler.cs +1 -1
- package/Runtime/Utils/DeferredDisposalResult.cs +1 -1
- package/Runtime/Utils/MatchColliderToSprite.cs +1 -1
- package/Runtime/Utils/Oscillator.cs +1 -1
- package/Runtime/Utils/RuntimeSingleton.cs +1 -1
- package/Runtime/Utils/SetTextureImportData.cs +1 -1
- package/Runtime/Utils/SpriteRendererMetadata.cs +1 -1
- package/Runtime/Utils/SpriteRendererSyncer.cs +1 -1
- package/Runtime/Utils/StartTracker.cs +1 -1
- package/Runtime/Utils/TextureScale.cs +1 -1
- package/Runtime/Utils/TypeNameSorter.cs +17 -0
- package/Runtime/Utils/TypeNameSorter.cs.meta +3 -0
- package/Runtime/Utils/UnityObjectNameComparer.cs +1 -1
- package/Runtime/WallstopStudios.UnityHelpers.asmdef +1 -1
- package/Tests/Runtime/Attributes/ChildComponentTests.cs +2 -2
- package/Tests/Runtime/Attributes/Components/ExpectChildSpriteRenderers.cs +2 -2
- package/Tests/Runtime/Attributes/Components/ExpectParentSpriteRenderers.cs +2 -2
- package/Tests/Runtime/Attributes/ParentComponentTests.cs +2 -2
- package/Tests/Runtime/Components/RelationalComponentTesterComplex.cs +2 -2
- package/Tests/Runtime/Components/RelationalComponentsTesterSimple.cs +4 -4
- package/Tests/Runtime/DataStructures/BalancedKDTreeTests.cs +2 -2
- package/Tests/Runtime/DataStructures/CyclicBufferTests.cs +3 -3
- package/Tests/Runtime/DataStructures/QuadTreeTests.cs +2 -2
- package/Tests/Runtime/DataStructures/SpatialTreeTests.cs +4 -4
- package/Tests/Runtime/DataStructures/UnbalancedKDTreeTests.cs +2 -2
- package/Tests/Runtime/Extensions/DictionaryExtensionTests.cs +2 -3
- package/Tests/Runtime/Extensions/EnumExtensionTests.cs +2 -2
- package/Tests/Runtime/Extensions/IListExtensionTests.cs +3 -3
- package/Tests/Runtime/Extensions/LoggingExtensionTests.cs +718 -0
- package/Tests/Runtime/Extensions/LoggingExtensionTests.cs.meta +3 -0
- package/Tests/Runtime/Extensions/RandomExtensionTests.cs +3 -3
- package/Tests/Runtime/Extensions/StringExtensionTests.cs +2 -2
- package/Tests/Runtime/Helper/ArrayConverterTests.cs +3 -3
- package/Tests/Runtime/Helper/FormattingHelperTests.cs +3 -3
- package/Tests/Runtime/Helper/ObjectHelperTests.cs +2 -2
- package/Tests/Runtime/Helper/ReflectionHelperTests.cs +3 -3
- package/Tests/Runtime/Helper/SceneHelperTests.cs +3 -3
- package/Tests/Runtime/Helper/WallMathTests.cs +5 -5
- package/Tests/Runtime/Performance/KDTreePerformanceTests.cs +2 -2
- package/Tests/Runtime/Performance/QuadTreePerformanceTests.cs +2 -2
- package/Tests/Runtime/Performance/RandomPerformanceTests.cs +2 -2
- package/Tests/Runtime/Performance/RelationComponentPerformanceTests.cs +2 -2
- package/Tests/Runtime/Performance/SpatialTreePerformanceTest.cs +2 -2
- package/Tests/Runtime/Performance/UnbalancedKDTreeTests.cs +2 -2
- package/Tests/Runtime/Random/DotNetRandomTests.cs +2 -2
- package/Tests/Runtime/Random/LinearCongruentialGeneratorTests.cs +2 -2
- package/Tests/Runtime/Random/PcgRandomTests.cs +2 -2
- package/Tests/Runtime/Random/RandomTestBase.cs +7 -7
- package/Tests/Runtime/Random/RomuDuoRandomTests.cs +2 -2
- package/Tests/Runtime/Random/SplitMix64RandomTests.cs +2 -2
- package/Tests/Runtime/Random/SquirrelRandomTests.cs +2 -2
- package/Tests/Runtime/Random/SystemRandomTests.cs +2 -2
- package/Tests/Runtime/Random/UnityRandomTests.cs +2 -2
- package/Tests/Runtime/Random/WyRandomTests.cs +2 -2
- package/Tests/Runtime/Random/XorShiftRandomTests.cs +2 -2
- package/Tests/Runtime/Random/XorShiroRandomTests.cs +2 -2
- package/Tests/Runtime/Serialization/JsonSerializationTest.cs +5 -5
- package/Tests/Runtime/Utils/SpriteRendererMetadataTests.cs +3 -4
- package/Tests/Runtime/WallstopStudios.UnityHelpers.Tests.Runtime.asmdef +1 -1
- package/package.json +1 -1
|
@@ -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,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.
|
|
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(
|
|
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,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.
|
|
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
|
|
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,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.
|
|
9
|
+
using WallstopStudios.UnityHelpers.Core.Random;
|
|
10
|
+
using WallstopStudios.UnityHelpers.Utils;
|
|
12
11
|
|
|
13
12
|
public sealed class SpriteRendererMetadataTests
|
|
14
13
|
{
|