提交无缝数据回滚

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

@@ -43,7 +43,7 @@ namespace JNGame.Sync.State.Tile.Entity
}
}
public T TileSyncCreate(long id)
public T TileSyncCreate(ulong id)
{
//判断是否有这个Id实体

View File

@@ -32,6 +32,11 @@ namespace JNGame.Sync.State.Tile
/// </summary>
public int TID { get; private set; }
/// <summary>
/// 随机数大小(100000000000UL * RandomSize)
/// </summary>
public int RandomSize { get; protected set; } = 1;
/// <summary>
/// 区块最大最小位置
/// </summary>
@@ -70,7 +75,7 @@ namespace JNGame.Sync.State.Tile
{
//根据区块设置Id 起始值
var random = base.CreateRandom();
random.SetIdValue(100000000000L * TID,(100000000000L * (TID + 1) - 1));
random.SetIdValue(100000000000UL * (ulong)RandomSize,(100000000000UL * ((ulong)RandomSize + 1) - 1));
return random;
}