mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] 接入ET8服务端
[+] 接入ET8服务端
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user