diff --git a/test.meta b/test.meta deleted file mode 100644 index e25bdca..0000000 --- a/test.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3776f76149b634c48a0bf7a7f98ee0c5 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/Components.meta b/test/Components.meta deleted file mode 100644 index 9c37766..0000000 --- a/test/Components.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 44bc1d65f4a37af4fb55621ae2da09be -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/Components/EnemyTag.cs b/test/Components/EnemyTag.cs deleted file mode 100644 index 0bbe577..0000000 --- a/test/Components/EnemyTag.cs +++ /dev/null @@ -1,7 +0,0 @@ - -namespace DCFApixels.DragonECS -{ - public struct EnemyTag - { - } -} diff --git a/test/Components/EnemyTag.cs.meta b/test/Components/EnemyTag.cs.meta deleted file mode 100644 index ca97167..0000000 --- a/test/Components/EnemyTag.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c7100cf6b7909824ba4ffcd869e64167 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/Components/PlayerTag.cs b/test/Components/PlayerTag.cs deleted file mode 100644 index 7f52051..0000000 --- a/test/Components/PlayerTag.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DCFApixels.DragonECS -{ - public struct PlayerTag - { - } -} diff --git a/test/Components/PlayerTag.cs.meta b/test/Components/PlayerTag.cs.meta deleted file mode 100644 index 08847d8..0000000 --- a/test/Components/PlayerTag.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 730345f3f95800a4dbd182950d4e9f19 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/Components/TransfromCom.cs b/test/Components/TransfromCom.cs deleted file mode 100644 index 93669f3..0000000 --- a/test/Components/TransfromCom.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; - -namespace DCFApixels.DragonECS -{ - public struct TransfromCom - { - public Vector3 position; - } -} diff --git a/test/Components/TransfromCom.cs.meta b/test/Components/TransfromCom.cs.meta deleted file mode 100644 index b8d4de8..0000000 --- a/test/Components/TransfromCom.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8c391c96db013de4780ce5e87c015fa1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/Components/Velocity.cs b/test/Components/Velocity.cs deleted file mode 100644 index 9783525..0000000 --- a/test/Components/Velocity.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; - -namespace DCFApixels.DragonECS -{ - public struct Velocity - { - public Vector3 value; - } -} diff --git a/test/Components/Velocity.cs.meta b/test/Components/Velocity.cs.meta deleted file mode 100644 index 2478ef7..0000000 --- a/test/Components/Velocity.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8a819836b0a5354408897f028b67504c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/Components/View.cs b/test/Components/View.cs deleted file mode 100644 index e5e7b46..0000000 --- a/test/Components/View.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; - -namespace DCFApixels.DragonECS -{ - public struct View - { - public Transform Ref; - } -} diff --git a/test/Components/View.cs.meta b/test/Components/View.cs.meta deleted file mode 100644 index 5509e04..0000000 --- a/test/Components/View.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: df980941b94b3864c81750c212259b8f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/SharedData.cs b/test/SharedData.cs deleted file mode 100644 index ba64396..0000000 --- a/test/SharedData.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -namespace DCFApixels.DragonECS -{ - [Serializable] - public class SharedData - { - public Transform view1; - public Transform view2; - } -} diff --git a/test/SharedData.cs.meta b/test/SharedData.cs.meta deleted file mode 100644 index f302dab..0000000 --- a/test/SharedData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ea74209e58692b3428f531e27d577cd7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/Startup.cs b/test/Startup.cs deleted file mode 100644 index f2ee0b1..0000000 --- a/test/Startup.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using DCFApixels; -using UnityEngine; - -namespace DCFApixels.DragonECS -{ - public class Startup : MonoBehaviour - { - - private EcsSession _ecsSession; - - [SerializeField] - public SharedData _data = new SharedData(); - - private void Start() - { - _ecsSession = new EcsSession() - .Inject(_data) - .AddWorld(new EcsWorld()) - .Add(new TestSystem()) - .Add(new VelocitySystem()) - .Add(new ViewSystem()) - .Init(); - } - - private void Update() - { - _ecsSession.Run(); - } - - private void OnDestroy() - { - _ecsSession.Destroy(); - } - } -} diff --git a/test/Startup.cs.meta b/test/Startup.cs.meta deleted file mode 100644 index a4f9497..0000000 --- a/test/Startup.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8520d71f413c71442bd847f51820760e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/TestSystem.cs b/test/TestSystem.cs deleted file mode 100644 index fedd9e9..0000000 --- a/test/TestSystem.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -namespace DCFApixels.DragonECS -{ - public class TestSystem : IEcsInject, IEcsInject, IEcsInitSystem - { - private SharedData _sharedData; - private EcsWorld _world; - public void Inject(SharedData obj) => _sharedData = obj; - public void Inject(EcsWorldMap obj) { _world = obj.Get(); } - - public void Init(EcsSession session) - { - //var x1 = _world.GetFilter>(); - //var x2 = _world.GetFilter>(); - //var x3 = _world.GetFilter>(); - //var x4 = _world.GetFilter>(); - //var x5 = _world.GetFilter>(); - // - //int has1 = x1.GetHashCode(); - //int has2 = x2.GetHashCode(); - //int has3 = x3.GetHashCode(); - //int has4 = x4.GetHashCode(); - //int has5 = x5.GetHashCode(); - // - //Debug.Log("1 " + has1); - //Debug.Log("2 " + has2); - //Debug.Log("3 " + has3); - //Debug.Log("4 " + has4); - //Debug.Log("5 " + has5); - var e = _world.NewEntity(); - e.Write().position = Vector3.zero; - e.Write().value = Vector3.one; - e.Write().Ref = _sharedData.view1; - e.Write(); - - var e2 = _world.NewEntity(); - e2.Write().position = Vector3.zero; - e2.Write().value = Vector3.zero; - e2.Write().Ref = _sharedData.view2; - e2.Write(); - - var x1 = _world.GetFilter>(); - - bool bb = _world.IsMaskCompatible(x1.Mask, e.id); - //has1 = x1.GetHashCode(); - - - } - } -} diff --git a/test/TestSystem.cs.meta b/test/TestSystem.cs.meta deleted file mode 100644 index db63935..0000000 --- a/test/TestSystem.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: affa952a9e445864ebfe2ca2388e76de -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/VelocitySystem.cs b/test/VelocitySystem.cs deleted file mode 100644 index d129cf8..0000000 --- a/test/VelocitySystem.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -namespace DCFApixels.DragonECS -{ - public class VelocitySystem : IEcsInject, IEcsRunSystem - { - private EcsWorld _world; - public void Inject(EcsWorldMap obj) { _world = obj.Get(); } - - public void Run(EcsSession session) - { - var x = _world.GetFilter>(); - foreach (var item in _world.GetFilter>().Entities) - { - item.Write().position += item.Read().value * Time.deltaTime; - } - } - } -} diff --git a/test/VelocitySystem.cs.meta b/test/VelocitySystem.cs.meta deleted file mode 100644 index c62d03a..0000000 --- a/test/VelocitySystem.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 447778e02b3f0f8409c44680de9dbc0e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/test/ViewSystem.cs b/test/ViewSystem.cs deleted file mode 100644 index cb7c5d3..0000000 --- a/test/ViewSystem.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -namespace DCFApixels.DragonECS -{ - public class ViewSystem : IEcsInject, IEcsRunSystem - { - private EcsWorld _world; - public void Inject(EcsWorldMap obj) { _world = obj.Get(); } - - public void Run(EcsSession session) - { - foreach (var item in _world.GetFilter>().Entities) - { - item.Write().Ref.position = item.Read().position; - } - } - - } -} diff --git a/test/ViewSystem.cs.meta b/test/ViewSystem.cs.meta deleted file mode 100644 index e77c537..0000000 --- a/test/ViewSystem.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 780f70f4504a08b45b58c4fe891b894f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: