Browse Source

Changed idea on class idea

tags/Rel25b
sebas77 6 years ago
parent
commit
c699863e11
2 changed files with 3 additions and 10 deletions
  1. +2
    -2
      Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs
  2. +1
    -8
      Svelto.ECS/Sequencer.cs

Svelto.ECS/Extensions/Unity/UnityEntityDescriptorHolder.cs → Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs View File

@@ -1,7 +1,7 @@
#if UNITY_5 || UNITY_5_3_OR_NEWER
namespace Svelto.ECS
namespace Svelto.ECS.Unity
{
public class UnityEntityDescriptorHolder<T>:
public class GenericEntityDescriptorHolder<T>:
UnityEngine.MonoBehaviour , IEntityDescriptorHolder
where T: IEntityDescriptor, new()
{

+ 1
- 8
Svelto.ECS/Sequencer.cs View File

@@ -40,14 +40,7 @@ namespace Svelto.ECS
void Step(ref T token, Enum condition);
}
public interface ISequencer
{
void Next<T>(IEngine engine, ref T param);
void Next<T>(IEngine engine, ref T param, int condition);
void Next<T, C>(IEngine engine, ref T param, C condition) where C : struct, IConvertible;
}

public abstract class Sequencer : ISequencer
public abstract class Sequencer
{
public void SetSequence(Steps steps)
{


Loading…
Cancel
Save