|
|
@@ -24,48 +24,48 @@ namespace ET
|
|
|
|
|
|
public interface IAwakeSystem: ISystemType
|
|
|
{
|
|
|
- void Run(object o);
|
|
|
+ void Run(Entity o);
|
|
|
}
|
|
|
|
|
|
public interface IAwakeSystem<A>: ISystemType
|
|
|
{
|
|
|
- void Run(object o, A a);
|
|
|
+ void Run(Entity o, A a);
|
|
|
}
|
|
|
|
|
|
public interface IAwakeSystem<A, B>: ISystemType
|
|
|
{
|
|
|
- void Run(object o, A a, B b);
|
|
|
+ void Run(Entity o, A a, B b);
|
|
|
}
|
|
|
|
|
|
public interface IAwakeSystem<A, B, C>: ISystemType
|
|
|
{
|
|
|
- void Run(object o, A a, B b, C c);
|
|
|
+ void Run(Entity o, A a, B b, C c);
|
|
|
}
|
|
|
|
|
|
public interface IAwakeSystem<A, B, C, D>: ISystemType
|
|
|
{
|
|
|
- void Run(object o, A a, B b, C c, D d);
|
|
|
+ void Run(Entity o, A a, B b, C c, D d);
|
|
|
}
|
|
|
|
|
|
[ObjectSystem]
|
|
|
- public abstract class AwakeSystem<T> : IAwakeSystem where T: IAwake
|
|
|
+ public abstract class AwakeSystem<T> : IAwakeSystem where T: Entity, IAwake
|
|
|
{
|
|
|
- public Type Type()
|
|
|
+ Type ISystemType.Type()
|
|
|
{
|
|
|
return typeof(T);
|
|
|
}
|
|
|
-
|
|
|
- public Type SystemType()
|
|
|
+
|
|
|
+ Type ISystemType.SystemType()
|
|
|
{
|
|
|
return typeof(IAwakeSystem);
|
|
|
}
|
|
|
|
|
|
- public InstanceQueueIndex GetInstanceQueueIndex()
|
|
|
+ InstanceQueueIndex ISystemType.GetInstanceQueueIndex()
|
|
|
{
|
|
|
return InstanceQueueIndex.None;
|
|
|
}
|
|
|
|
|
|
- public void Run(object o)
|
|
|
+ void IAwakeSystem.Run(Entity o)
|
|
|
{
|
|
|
this.Awake((T)o);
|
|
|
}
|
|
|
@@ -74,24 +74,24 @@ namespace ET
|
|
|
}
|
|
|
|
|
|
[ObjectSystem]
|
|
|
- public abstract class AwakeSystem<T, A> : IAwakeSystem<A> where T: IAwake<A>
|
|
|
+ public abstract class AwakeSystem<T, A> : IAwakeSystem<A> where T: Entity, IAwake<A>
|
|
|
{
|
|
|
- public Type Type()
|
|
|
+ Type ISystemType.Type()
|
|
|
{
|
|
|
return typeof(T);
|
|
|
}
|
|
|
-
|
|
|
- public Type SystemType()
|
|
|
+
|
|
|
+ Type ISystemType.SystemType()
|
|
|
{
|
|
|
return typeof(IAwakeSystem<A>);
|
|
|
}
|
|
|
|
|
|
- public InstanceQueueIndex GetInstanceQueueIndex()
|
|
|
+ InstanceQueueIndex ISystemType.GetInstanceQueueIndex()
|
|
|
{
|
|
|
return InstanceQueueIndex.None;
|
|
|
}
|
|
|
|
|
|
- public void Run(object o, A a)
|
|
|
+ void IAwakeSystem<A>.Run(Entity o, A a)
|
|
|
{
|
|
|
this.Awake((T)o, a);
|
|
|
}
|
|
|
@@ -100,24 +100,24 @@ namespace ET
|
|
|
}
|
|
|
|
|
|
[ObjectSystem]
|
|
|
- public abstract class AwakeSystem<T, A, B> : IAwakeSystem<A, B> where T: IAwake<A, B>
|
|
|
+ public abstract class AwakeSystem<T, A, B> : IAwakeSystem<A, B> where T: Entity, IAwake<A, B>
|
|
|
{
|
|
|
- public Type Type()
|
|
|
+ Type ISystemType.Type()
|
|
|
{
|
|
|
return typeof(T);
|
|
|
}
|
|
|
-
|
|
|
- public Type SystemType()
|
|
|
+
|
|
|
+ Type ISystemType.SystemType()
|
|
|
{
|
|
|
return typeof(IAwakeSystem<A, B>);
|
|
|
}
|
|
|
|
|
|
- public InstanceQueueIndex GetInstanceQueueIndex()
|
|
|
+ InstanceQueueIndex ISystemType.GetInstanceQueueIndex()
|
|
|
{
|
|
|
return InstanceQueueIndex.None;
|
|
|
}
|
|
|
|
|
|
- public void Run(object o, A a, B b)
|
|
|
+ void IAwakeSystem<A, B>.Run(Entity o, A a, B b)
|
|
|
{
|
|
|
this.Awake((T)o, a, b);
|
|
|
}
|
|
|
@@ -126,24 +126,24 @@ namespace ET
|
|
|
}
|
|
|
|
|
|
[ObjectSystem]
|
|
|
- public abstract class AwakeSystem<T, A, B, C> : IAwakeSystem<A, B, C> where T: IAwake<A, B, C>
|
|
|
+ public abstract class AwakeSystem<T, A, B, C> : IAwakeSystem<A, B, C> where T: Entity, IAwake<A, B, C>
|
|
|
{
|
|
|
- public Type Type()
|
|
|
+ Type ISystemType.Type()
|
|
|
{
|
|
|
return typeof(T);
|
|
|
}
|
|
|
-
|
|
|
- public Type SystemType()
|
|
|
+
|
|
|
+ Type ISystemType.SystemType()
|
|
|
{
|
|
|
return typeof(IAwakeSystem<A, B, C>);
|
|
|
}
|
|
|
|
|
|
- public InstanceQueueIndex GetInstanceQueueIndex()
|
|
|
+ InstanceQueueIndex ISystemType.GetInstanceQueueIndex()
|
|
|
{
|
|
|
return InstanceQueueIndex.None;
|
|
|
}
|
|
|
|
|
|
- public void Run(object o, A a, B b, C c)
|
|
|
+ void IAwakeSystem<A, B, C>.Run(Entity o, A a, B b, C c)
|
|
|
{
|
|
|
this.Awake((T)o, a, b, c);
|
|
|
}
|
|
|
@@ -152,24 +152,24 @@ namespace ET
|
|
|
}
|
|
|
|
|
|
[ObjectSystem]
|
|
|
- public abstract class AwakeSystem<T, A, B, C, D> : IAwakeSystem<A, B, C, D> where T: IAwake<A, B, C, D>
|
|
|
+ public abstract class AwakeSystem<T, A, B, C, D> : IAwakeSystem<A, B, C, D> where T: Entity, IAwake<A, B, C, D>
|
|
|
{
|
|
|
- public Type Type()
|
|
|
+ Type ISystemType.Type()
|
|
|
{
|
|
|
return typeof(T);
|
|
|
}
|
|
|
-
|
|
|
- public Type SystemType()
|
|
|
+
|
|
|
+ Type ISystemType.SystemType()
|
|
|
{
|
|
|
return typeof(IAwakeSystem<A, B, C, D>);
|
|
|
}
|
|
|
|
|
|
- public InstanceQueueIndex GetInstanceQueueIndex()
|
|
|
+ InstanceQueueIndex ISystemType.GetInstanceQueueIndex()
|
|
|
{
|
|
|
return InstanceQueueIndex.None;
|
|
|
}
|
|
|
|
|
|
- public void Run(object o, A a, B b, C c, D d)
|
|
|
+ void IAwakeSystem<A, B, C, D>.Run(Entity o, A a, B b, C c, D d)
|
|
|
{
|
|
|
this.Awake((T)o, a, b, c, d);
|
|
|
}
|