Example #1
0
        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()));
        }
Example #2
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)OpCodes.LobbyMemberChangedTeam, packet.ToBytes());

            Broadcast(msg);
        }
Example #3
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)OpCodes.LobbyMemberReadyStatusChange, packet.ToBytes()));
        }