Ejemplo n.º 1
0
        public void UpdateCurrentRoomReference(IClientDistributedRoom room)
        {
            mCurrentRoom = room;
            UserAccountProxy userAccountProxy = GameFacade.Instance.RetrieveProxy <UserAccountProxy>();

            userAccountProxy.SetAccountProperty <RoomId>(UserAccountProperties.LastRoomId, mCurrentRoom.RoomId);
        }
Ejemplo n.º 2
0
        private IClientDistributedRoom BuildRoomDistributedObject(DistributedObjectId id, List <object> messageData)
        {
            RoomType roomType = CheckType.TryAssignType <RoomType>(messageData[2]);

            IClientDistributedRoom clientDistributedRoom = null;

            switch (roomType)
            {
            case RoomType.GreenScreenRoom:
                clientDistributedRoom = new ClientDistributedGreenScreenRoom(mSendMessage, id, messageData);
                break;

            case RoomType.MiniGameRoom:
                throw new System.Exception("we shouldn't be creating these anymore in this way!! talk to matt!");
            }
            RoomManagerProxy roomManagerProxy = GameFacade.Instance.RetrieveProxy <RoomManagerProxy>();

            roomManagerProxy.UpdateCurrentRoomReference(clientDistributedRoom);
            return(clientDistributedRoom);
        }