예제 #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);
        }
예제 #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);
        }