PC-20230316NUNE\Administrator 77db4d7d71 提交无缝数据回滚
2024-08-23 10:48:19 +08:00

33 lines
736 B
C#

using JNGame.Sync.Frame.Service;
using NotImplementedException = System.NotImplementedException;
namespace JNGame.Sync.System
{
/// <summary>
/// 帧同步 - 逻辑系统
/// </summary>
public class SLogicSystem : SBaseSystem,IJNSyncCycle,IJNSyncId
{
private ulong _id;
public ulong Id => _id;
public virtual void OnSyncStart()
{
JNRandomSystem random;
if (this is JNRandomSystem) random = (JNRandomSystem)this;
else random = GetSystem<JNRandomSystem>();
_id = random.NextId();
}
public virtual void OnSyncUpdate()
{
}
public void OnSyncDestroy(){}
}
}