mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交无缝数据回滚
This commit is contained in:
@@ -33,8 +33,8 @@ namespace JNGame.Sync.Entity
|
||||
public abstract class JNEntity : Entitas.Entity,IJNEntity,IComparable
|
||||
{
|
||||
|
||||
private long _id;
|
||||
public long Id => _id;
|
||||
private ulong _id;
|
||||
public ulong Id => _id;
|
||||
|
||||
public IJNContext Context { get; private set; }
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace JNGame.Sync.Entity
|
||||
/// </summary>
|
||||
public LVector3 Position => Transform.Position;
|
||||
|
||||
public void OnInit(IJNContext context,long id = 0)
|
||||
public void OnInit(IJNContext context,ulong id = 0)
|
||||
{
|
||||
Context = context;
|
||||
_id = id;
|
||||
@@ -58,10 +58,6 @@ namespace JNGame.Sync.Entity
|
||||
{
|
||||
_id = GetSystem<JNRandomSystem>().NextId();
|
||||
}
|
||||
else
|
||||
{
|
||||
GetSystem<JNRandomSystem>().AdaptId(id);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract JNEntityLookup NewCLookup();
|
||||
|
Reference in New Issue
Block a user