private void SaveAuctionInfo(int LocalID, AuctionInfo info)
 {
     IParcelManagementModule parcelManagement = m_scene.RequestModuleInterface<IParcelManagementModule>();
     if (parcelManagement != null)
     {
         ILandObject landObject = parcelManagement.GetLandObject(LocalID);
         if (landObject == null)
             return;
         landObject.LandData.AuctionInfo = info;
     }
 }
Пример #2
0
        public override void FromOSD(OSDMap map)
        {
            RegionID = map["RegionID"].AsUUID();
            ScopeID = map["ScopeID"].AsUUID();
            GlobalID = map["GlobalID"].AsUUID();
            LocalID = map["LocalID"].AsInteger();
            SalePrice = map["SalePrice"].AsInteger();
            UserLocation = map["UserLocation"].AsVector3();
            UserLookAt = map["UserLookAt"].AsVector3();
            Name = map["Name"].AsString();
            Description = map["Description"].AsString();
            Flags = (uint) map["Flags"].AsInteger();
            Dwell = map["Dwell"].AsInteger();
            AuctionID = map["AuctionID"].AsUInteger();
            Area = map["Area"].AsInteger();
            Maturity = map["Maturity"].AsInteger();
            OwnerID = map["OwnerID"].AsUUID();
            GroupID = map["GroupID"].AsUUID();
            IsGroupOwned = (GroupID != UUID.Zero);
            SnapshotID = map["SnapshotID"].AsUUID();
            MediaDescription = map["MediaDescription"].AsString();
            MediaWidth = map["MediaWidth"].AsInteger();
            MediaHeight = map["MediaHeight"].AsInteger();
            MediaLoop = map["MediaLoop"].AsBoolean();
            MediaType = map["MediaType"].AsString();
            ObscureMedia = map["ObscureMedia"].AsBoolean();
            ObscureMusic = map["ObscureMusic"].AsBoolean();
            MediaLoopSet = (float) map["MediaLoopSet"].AsReal();
            MediaAutoScale = (byte) map["MediaAutoScale"].AsInteger();
            MediaURL = map["MediaURL"].AsString();
            MusicURL = map["MusicURL"].AsString();
            Bitmap = map["Bitmap"].AsBinary();
            Category = (ParcelCategory) map["Category"].AsInteger();
            FirstParty = map["FirstParty"].AsBoolean();
            ClaimDate = map["ClaimDate"].AsInteger();
            ClaimPrice = map["ClaimPrice"].AsInteger();
            Status = (ParcelStatus) map["Status"].AsInteger();
            LandingType = (byte) map["LandingType"].AsInteger();
            PassHours = (float) map["PassHours"].AsReal();
            PassPrice = map["PassPrice"].AsInteger();
            AuthBuyerID = map["AuthBuyerID"].AsUUID();
            OtherCleanTime = map["OtherCleanTime"].AsInteger();
            RegionHandle = map["RegionHandle"].AsULong();
            Private = map["Private"].AsBoolean();
            AuctionInfo = new AuctionInfo();
            if (map.ContainsKey("AuctionInfo"))
                AuctionInfo.FromOSD((OSDMap) map["AuctionInfo"]);

            if ((IsGroupOwned) && (GroupID != OwnerID)) OwnerID = GroupID;
        }
 public void SetAuctionInfo(int LocalID, AuctionInfo info)
 {
     SaveAuctionInfo(LocalID, info);
 }