public Task InitializeAsync(Abstractions.Model.Game.Player player) { _ = player.SendAsync(new SendMapRegionMessage(player)).ContinueWith(_ => { var defaultTabs = _tabManager.Default; for (int tab = 0; tab < defaultTabs.Length; tab++) { var interfaceId = defaultTabs[tab]; _ = _tabManager.SetTabAsync(player, tab, interfaceId); } }); var openLoginScreenMessage = new SendInterfaceMessage { InterfaceId = 549 }; _ = _protoMessageSender.SendAsync(player, openLoginScreenMessage); _ = _protoMessageSender.SendAsync(player, new OpenInterfaceMessage { Window = 549, Position = 2, InterfaceId = 378, Walkable = true }); _ = _protoMessageSender.SendAsync(player, new OpenInterfaceMessage { Window = 549, Position = 3, InterfaceId = 17, Walkable = true }); return(Task.CompletedTask); }
public Task InitializeAsync(Abstractions.Model.Game.Player player) { var initMessage = new ThreeOneSevenEncoderMessages.Types. IdAssignmentMessage { IsMembers = true, NewId = 1 }; _ = _protoMessageSender.SendAsync(player, initMessage); player.UpdateAppearance(); var defaultTabs = _tabManager.Default; for (int tab = 0; tab < defaultTabs.Length; tab++) { var interfaceId = defaultTabs[tab]; _ = _tabManager.SetTabAsync(player, tab, interfaceId); } return(Task.CompletedTask); }