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.GenericData["AuctionInfo"] = info.ToOSD(); } }
private AuctionInfo GetAuctionInfo(int LocalID) { IParcelManagementModule parcelManagement = m_scene.RequestModuleInterface<IParcelManagementModule>(); if (parcelManagement != null) { ILandObject landObject = parcelManagement.GetLandObject(LocalID); if (landObject == null) return null; OSDMap map = (OSDMap)landObject.LandData.GenericData["AuctionInfo"]; AuctionInfo info = new AuctionInfo(); info.FromOSD(map); return info; } return null; }
public void SetAuctionInfo(int LocalID, AuctionInfo info) { SaveAuctionInfo(LocalID, info); }