diff --git a/Runtime/RigidbodyRef.cs b/Runtime/RigidbodyRef.cs index 806c5b4..113f55b 100644 --- a/Runtime/RigidbodyRef.cs +++ b/Runtime/RigidbodyRef.cs @@ -1,12 +1,10 @@ // SPDX-License-Identifier: Apache-2.0 // © 2023 Nikolay Melnikov -using System; using UnityEngine; namespace Depra.Ecs.Components { - [Serializable] public struct RigidbodyRef { public Rigidbody Value; diff --git a/Runtime/SliderRef.cs b/Runtime/SliderRef.cs new file mode 100644 index 0000000..d996882 --- /dev/null +++ b/Runtime/SliderRef.cs @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: Apache-2.0 +// © 2023 Nikolay Melnikov + +using UnityEngine.UI; + +namespace Depra.Ecs.Components +{ + public struct SliderRef + { + public Slider Value; + } +} \ No newline at end of file diff --git a/Runtime/SliderRef.cs.meta b/Runtime/SliderRef.cs.meta new file mode 100644 index 0000000..37d864d --- /dev/null +++ b/Runtime/SliderRef.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 8bf8f921361a4ba8a57a863f4ee285fd +timeCreated: 1701893824 \ No newline at end of file diff --git a/Runtime/UnityComponents.cs b/Runtime/UnityComponents.cs index da5d8a3..f53913e 100644 --- a/Runtime/UnityComponents.cs +++ b/Runtime/UnityComponents.cs @@ -8,17 +8,19 @@ namespace Depra.Ecs.Components public sealed class UnityComponents : IWorldRegistry { public ComponentPool Cameras { get; private set; } + public ComponentPool Sliders { get; private set; } public ComponentPool Animators { get; private set; } public ComponentPool Transforms { get; private set; } public ComponentPool Rigidbodies { get; private set; } public ComponentPool LineRenderers { get; private set; } - public ComponentPool ForceModes { get; private set; } + public ComponentPool ForceModes { get; private set; } public ComponentPool CharacterControllers { get; private set; } void IWorldRegistry.Initialize(World world) { world.AddRegistry(this); world.AddPool(Cameras = new ComponentPool()); + world.AddPool(Sliders = new ComponentPool()); world.AddPool(Animators = new ComponentPool()); world.AddPool(Transforms = new ComponentPool()); world.AddPool(Rigidbodies = new ComponentPool()); diff --git a/package.json b/package.json index 0abaf0b..08d53a3 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { "name": "com.depra.ecs.components", - "version": "0.0.9", + "version": "0.1.0", "displayName": "Depra.Ecs.Components", "description": "Components for Unity types.", "unity": "2022.3", "license": "Apache-2.0", "keywords": [ - "Depra", - "Ecs", - "Unity", - "Components" + "depra", + "ecs", + "unity", + "components" ], "author": { "name": "Depra, Inc.",