Exemplo n.º 1
0
        public MultiplayerRoomUser AddUser(APIUser user, bool markAsPlaying = false)
        {
            var roomUser = new MultiplayerRoomUser(user.Id)
            {
                User = user
            };

            addUser(roomUser);

            if (markAsPlaying)
            {
                PlayingUserIds.Add(user.Id);
            }

            return(roomUser);
        }
Exemplo n.º 2
0
        public MultiplayerRoomUser AddUser(User user, bool markAsPlaying = false)
        {
            var roomUser = new MultiplayerRoomUser(user.Id)
            {
                User = user
            };

            ((IMultiplayerClient)this).UserJoined(roomUser);

            if (markAsPlaying)
            {
                PlayingUserIds.Add(user.Id);
            }

            return(roomUser);
        }