提交无缝数据回滚

This commit is contained in:
PC-20230316NUNE\Administrator
2024-08-23 10:48:19 +08:00
parent 8932528f5e
commit 77db4d7d71
23 changed files with 98 additions and 98 deletions

View File

@@ -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();