Beispiel #1
0
        protected virtual void OnLobbyPropertyChange(string propertyKey)
        {
            var packet = new StringPairPacket()
            {
                A = propertyKey,
                B = propertiesList[propertyKey]
            };

            // Broadcast new properties
            Broadcast(MessageHelper.Create((short)MsfMessageCodes.LobbyPropertyChanged, packet.ToBytes()));
        }
Beispiel #2
0
        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)MsfMessageCodes.LobbyMemberReadyStatusChange, packet.ToBytes()));
        }
Beispiel #3
0
        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)MsfMessageCodes.LobbyMemberChangedTeam, packet.ToBytes());

            Broadcast(msg);
        }