public void ReadyToStartGame() { if (_users.UserExists(Context.ConnectionId)) { try { User user = Users.Instance.GetUser(Context.ConnectionId); if (user.InMatch()) { user.CurrentMatch.UserReady(user); } } catch (Exception ex) { ErrorLog.Instance.Log(ex); } } }
public void LoadCompressionContracts() { if (_users.UserExists(Context.ConnectionId)) { try { Clients.Caller.loadCompressionContracts(PayloadManager.GetCompressionContacts()); } catch (Exception ex) { ErrorLog.Instance.Log(ex); } } }