Skip to content

Commit

Permalink
[v0.0.5] + LineRendererRef
Browse files Browse the repository at this point in the history
  • Loading branch information
g0dzZz-coder committed Nov 10, 2023
1 parent 2f3cc76 commit 6caafbd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Runtime/LineRendererRef.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: Apache-2.0
// © 2023 Nikolay Melnikov <n.melnikov@depra.org>

using UnityEngine;

namespace Depra.Ecs.Components
{
public struct LineRendererRef
{
public LineRenderer Value;
}
}
3 changes: 3 additions & 0 deletions Runtime/LineRendererRef.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Runtime/UnityComponents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public sealed class UnityComponents : IWorldRegistry
public ComponentPool<CameraRef> Cameras { get; private set; }
public ComponentPool<AnimatorRef> Animators { get; private set; }
public ComponentPool<RigidbodyRef> Rigidbodies { get; private set; }
public ComponentPool<LineRendererRef> LineRenderers { get; private set; }
public ComponentPool<CharacterControllerRef> CharacterControllers { get; private set; }

void IWorldRegistry.Initialize(World world)
Expand All @@ -18,6 +19,7 @@ void IWorldRegistry.Initialize(World world)
world.AddPool(Cameras = new ComponentPool<CameraRef>());
world.AddPool(Animators = new ComponentPool<AnimatorRef>());
world.AddPool(Rigidbodies = new ComponentPool<RigidbodyRef>());
world.AddPool(LineRenderers = new ComponentPool<LineRendererRef>());
world.AddPool(CharacterControllers = new ComponentPool<CharacterControllerRef>());
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.depra.ecs.components",
"version": "0.0.4",
"version": "0.0.5",
"displayName": "Depra.Ecs.Components",
"description": "Components for Unity types.",
"unity": "2022.3",
Expand Down

0 comments on commit 6caafbd

Please sign in to comment.