mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 07:41:10 +00:00
init: add project
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using _Project.Develop.Runtime.Entities;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Assets._Project.Develop.Runtime.Gameplay.Common
|
||||
{
|
||||
public class CharacterControllerEntityRegistrator : MonoEntityRegistrator
|
||||
{
|
||||
public override void Register(Entity entity)
|
||||
{
|
||||
entity.AddCharacterController(GetComponent<CharacterController>());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 901d0931c1074853a656db4b4364f490
|
||||
timeCreated: 1771433328
|
||||
@@ -0,0 +1,11 @@
|
||||
using _Project.Develop.Runtime.Entities;
|
||||
using UnityEngine;
|
||||
using UnityEngine.AI;
|
||||
|
||||
namespace Assets._Project.Develop.Runtime.Gameplay.Common
|
||||
{
|
||||
public class RigidbodyComponent : IEntityComponent { public Rigidbody Value; }
|
||||
public class TransformComponent : IEntityComponent { public Transform Value; }
|
||||
public class CharacterControllerComponent : IEntityComponent { public CharacterController Value; }
|
||||
public class NavMeshAgentComponent : IEntityComponent { public NavMeshAgent Value; }
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29b78ec58e4a493fbc73c343aa2e9144
|
||||
timeCreated: 1771427186
|
||||
@@ -0,0 +1,13 @@
|
||||
using _Project.Develop.Runtime.Entities;
|
||||
using UnityEngine.AI;
|
||||
|
||||
namespace Assets._Project.Develop.Runtime.Gameplay.Common
|
||||
{
|
||||
public class NavMeshAgentEntityRegistrator : MonoEntityRegistrator
|
||||
{
|
||||
public override void Register(Entity entity)
|
||||
{
|
||||
entity.AddNavMeshAgent(GetComponent<NavMeshAgent>());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d8fec398824640aba90f8183ba2b5985
|
||||
timeCreated: 1771435813
|
||||
@@ -0,0 +1,13 @@
|
||||
using _Project.Develop.Runtime.Entities;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Assets._Project.Develop.Runtime.Gameplay.Common
|
||||
{
|
||||
public class RigidbodyEntityRegistrator : MonoEntityRegistrator
|
||||
{
|
||||
public override void Register(Entity entity)
|
||||
{
|
||||
entity.AddRigidbody(GetComponent<Rigidbody>());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b7fdeece4c60497ea61a1006e47bfbc5
|
||||
timeCreated: 1771427186
|
||||
@@ -0,0 +1,12 @@
|
||||
using _Project.Develop.Runtime.Entities;
|
||||
|
||||
namespace Assets._Project.Develop.Runtime.Gameplay.Common
|
||||
{
|
||||
public class TransformEntityRegistrator : MonoEntityRegistrator
|
||||
{
|
||||
public override void Register(Entity entity)
|
||||
{
|
||||
entity.AddTransform(transform);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b3d77209b50f4ecf9185ae250a76b909
|
||||
timeCreated: 1771433629
|
||||
Reference in New Issue
Block a user