protected virtual void OnLobbyPropertyChange(string propertyKey) { var packet = new StringPairPacket() { A = propertyKey, B = Properties[propertyKey] }; // Broadcast new properties Broadcast(MessageHelper.Create((short)OpCodes.LobbyPropertyChanged, packet.ToBytes())); }
protected virtual void OnPlayerTeamChanged(LobbyMember member, LobbyTeam newTeam) { var packet = new StringPairPacket() { A = member.Username, B = newTeam.Name }; // Broadcast the change var msg = MessageHelper.Create((short)OpCodes.LobbyMemberChangedTeam, packet.ToBytes()); Broadcast(msg); }
protected virtual void OnPlayerReadyStatusChange(LobbyMember member) { // Broadcast the new status var packet = new StringPairPacket() { A = member.Username, B = member.IsReady.ToString() }; Broadcast(MessageHelper.Create((short)OpCodes.LobbyMemberReadyStatusChange, packet.ToBytes())); }