public GameScreen(RenderWindow window)
: base(window)
{
Window.KeyPressed += _window_KeyPressed;
Window.KeyReleased += _window_KeyReleased;
Window.Resized += _window_Resized;
Window.MouseButtonPressed += _window_MouseButtonPressed;
this.CanRender = true;
AudioManager.Instance.MusicManager.StopMusic();
_mainView = this.Window.GetView();
var net = ServiceLocator.NetManager;
net.AddPacketHandler(PacketType.AlertMessagePacket, this.HandleAlertMessage);
net.AddPacketHandler(PacketType.ChatMessagePacket, this.HandleChatMessage);
this.TextureManager = new GameTextureManager();
this.TextureManager.LoadTextures();
this.LoadInterface();
}