public void UpdateCurrentRoomReference(IClientDistributedRoom room) { mCurrentRoom = room; UserAccountProxy userAccountProxy = GameFacade.Instance.RetrieveProxy <UserAccountProxy>(); userAccountProxy.SetAccountProperty <RoomId>(UserAccountProperties.LastRoomId, mCurrentRoom.RoomId); }
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); }