mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
33 lines
734 B
C#
33 lines
734 B
C#
using JNGame.Sync.Frame.Service;
|
|
using NotImplementedException = System.NotImplementedException;
|
|
|
|
namespace JNGame.Sync.System
|
|
{
|
|
/// <summary>
|
|
/// 帧同步 - 逻辑系统
|
|
/// </summary>
|
|
public class SLogicSystem : SBaseSystem,IJNSyncCycle,IJNSyncId
|
|
{
|
|
|
|
private long _id;
|
|
public long 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(){}
|
|
|
|
}
|
|
} |