mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] 接入ET8服务端
[+] 接入ET8服务端
This commit is contained in:
39
Assets/GameScripts/DotNet/Core/Entity/ILateUpdateSystem.cs
Normal file
39
Assets/GameScripts/DotNet/Core/Entity/ILateUpdateSystem.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
|
||||
namespace ET
|
||||
{
|
||||
public interface ILateUpdate
|
||||
{
|
||||
}
|
||||
|
||||
public interface ILateUpdateSystem: ISystemType
|
||||
{
|
||||
void Run(Entity o);
|
||||
}
|
||||
|
||||
[EntitySystem]
|
||||
public abstract class LateUpdateSystem<T> : ILateUpdateSystem where T: Entity, ILateUpdate
|
||||
{
|
||||
void ILateUpdateSystem.Run(Entity o)
|
||||
{
|
||||
this.LateUpdate((T)o);
|
||||
}
|
||||
|
||||
Type ISystemType.Type()
|
||||
{
|
||||
return typeof(T);
|
||||
}
|
||||
|
||||
Type ISystemType.SystemType()
|
||||
{
|
||||
return typeof(ILateUpdateSystem);
|
||||
}
|
||||
|
||||
int ISystemType.GetInstanceQueueIndex()
|
||||
{
|
||||
return InstanceQueueIndex.LateUpdate;
|
||||
}
|
||||
|
||||
protected abstract void LateUpdate(T self);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user