From 63b6ab467a2d617b180284861baba544cac602d2 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 24 Aug 2008 00:51:21 +0000 Subject: Implements 80% of object buy (prim vendor). You can't buy the object yet, and the for sale setting doesn't survive a sim restart, but this is most of the plumbing. --- OpenSim/Framework/IClientAPI.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework/IClientAPI.cs') diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 8aac9ce..b2d13c7 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs @@ -271,6 +271,9 @@ namespace OpenSim.Framework public delegate void ScriptAnswer(IClientAPI remoteClient, LLUUID objectID, LLUUID itemID, int answer); public delegate void RequestPayPrice(IClientAPI remoteClient, LLUUID objectID); + public delegate void ObjectSaleInfo(IClientAPI remoteClient, LLUUID agentID, LLUUID sessionID, uint localID, byte saleType, int salePrice); + public delegate void ObjectBuy(IClientAPI remoteClient, LLUUID agentID, LLUUID sessionID, LLUUID groupID, LLUUID categoryID, uint localID, byte saleType, int salePrice); + public delegate void BuyObjectInventory(IClientAPI remoteClient, LLUUID agentID, LLUUID sessionID, LLUUID objectID, LLUUID itemID, LLUUID folderID); public delegate void ForceReleaseControls(IClientAPI remoteClient, LLUUID agentID); @@ -475,6 +478,9 @@ namespace OpenSim.Framework event UpdateAvatarProperties OnUpdateAvatarProperties; event ParcelBuy OnParcelBuy; event RequestPayPrice OnRequestPayPrice; + event ObjectSaleInfo OnObjectSaleInfo; + event ObjectBuy OnObjectBuy; + event BuyObjectInventory OnBuyObjectInventory; event ObjectIncludeInSearch OnObjectIncludeInSearch; @@ -688,7 +694,7 @@ namespace OpenSim.Framework LLUUID GroupUUID, short InventorySerial, LLUUID LastOwnerUUID, LLUUID ObjectUUID, LLUUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName, string ItemDescription, uint OwnerMask, uint NextOwnerMask, uint GroupMask, uint EveryoneMask, - uint BaseMask); + uint BaseMask, byte saleType, int salePrice); void SendAgentOffline(LLUUID[] agentIDs); void SendAgentOnline(LLUUID[] agentIDs); -- cgit v1.1