[+] 接入ET8服务端

[+] 接入ET8服务端
This commit is contained in:
ALEXTANG
2023-07-13 12:23:48 +08:00
parent e0be062006
commit 336d4b2eb9
1316 changed files with 130657 additions and 626 deletions

View File

@@ -0,0 +1,25 @@
namespace ET.Client
{
[ActorMessageHandler(SceneType.LockStep)]
public class Room2C_CheckHashFailHandler: ActorMessageHandler<Scene, Room2C_CheckHashFail>
{
protected override async ETTask Run(Scene root, Room2C_CheckHashFail message)
{
LSWorld serverWorld = MongoHelper.Deserialize(typeof(LSWorld), message.LSWorldBytes, 0, message.LSWorldBytes.Length) as LSWorld;
using (root.AddChild(serverWorld))
{
Log.Debug($"check hash fail, server: {message.Frame} {serverWorld.ToJson()}");
}
Room room = root.GetComponent<Room>();
LSWorld clientWorld = room.GetLSWorld(SceneType.LockStepClient, message.Frame);
using (root.AddChild(clientWorld))
{
Log.Debug($"check hash fail, client: {message.Frame} {clientWorld.ToJson()}");
}
message.Dispose();
await ETTask.CompletedTask;
}
}
}