From 784ae57519fb53620cf5047628cc5ed02b8546f6 Mon Sep 17 00:00:00 2001 From: rawer470 Date: Tue, 20 Aug 2024 17:38:04 +0300 Subject: [PATCH] MakeUpdateCreatePlayer --- ZoFo/GameCore/GUI/SelectingServerGUI.cs | 6 +----- .../ServerToClient/UpdateCreatePlayer.cs | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 ZoFo/GameCore/GameManagers/NetworkManager/Updates/ServerToClient/UpdateCreatePlayer.cs diff --git a/ZoFo/GameCore/GUI/SelectingServerGUI.cs b/ZoFo/GameCore/GUI/SelectingServerGUI.cs index 8de30cb..e1296ef 100644 --- a/ZoFo/GameCore/GUI/SelectingServerGUI.cs +++ b/ZoFo/GameCore/GUI/SelectingServerGUI.cs @@ -80,11 +80,7 @@ public class SelectingServerGUI : AbstractGUI AppManager.Instance.SetGUI(new WaitingForPlayersGUI(false)); } } - catch (Exception) - { - - // throw; - } + catch (Exception) { } // ваш код здесь }; diff --git a/ZoFo/GameCore/GameManagers/NetworkManager/Updates/ServerToClient/UpdateCreatePlayer.cs b/ZoFo/GameCore/GameManagers/NetworkManager/Updates/ServerToClient/UpdateCreatePlayer.cs new file mode 100644 index 0000000..c393dc9 --- /dev/null +++ b/ZoFo/GameCore/GameManagers/NetworkManager/Updates/ServerToClient/UpdateCreatePlayer.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient +{ + public class UpdateCreatePlayer : UpdateData + { + public int PlayerId { get; set; } + public UpdateCreatePlayer() + { + isImportant = true; + UpdateType = "UpdateCreatePlayer"; + } + + } +}