mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
25 lines
991 B
C#
25 lines
991 B
C#
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;
|
|
}
|
|
}
|
|
} |