IClientAPI.cs 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System;
  28. using System.Collections.Generic;
  29. using System.Net;
  30. using OpenMetaverse;
  31. using OpenMetaverse.Packets;
  32. namespace OpenSim.Framework
  33. {
  34. #region Client API Delegate definitions
  35. public delegate void ViewerEffectEventHandler(IClientAPI sender, List<ViewerEffectEventHandlerArg> args);
  36. public delegate void ChatMessage(Object sender, OSChatMessage e);
  37. public delegate void GenericMessage(Object sender, string method, List<String> args);
  38. public delegate void TextureRequest(Object sender, TextureRequestArgs e);
  39. public delegate void AvatarNowWearing(IClientAPI sender, AvatarWearingArgs e);
  40. public delegate void ImprovedInstantMessage(IClientAPI remoteclient, GridInstantMessage im);
  41. public delegate void RezObject(IClientAPI remoteClient, UUID itemID, UUID GroupID,
  42. Vector3 RayEnd, Vector3 RayStart,
  43. UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
  44. bool RezSelected, bool RemoveItem, UUID fromTaskID);
  45. public delegate void RezRestoreToWorld(IClientAPI remoteClient, UUID itemId);
  46. public delegate ISceneEntity RezSingleAttachmentFromInv(IClientAPI remoteClient, UUID itemID, uint AttachmentPt);
  47. public delegate void RezMultipleAttachmentsFromInv(IClientAPI remoteClient, List<KeyValuePair<UUID, uint>> rezlist );
  48. public delegate void ObjectAttach(
  49. IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, bool silent);
  50. public delegate void ModifyTerrain(UUID user,
  51. float height, float seconds, byte size, byte action, float north, float west, float south, float east,
  52. UUID agentId);
  53. public delegate void NetworkStats(int inPackets, int outPackets, int unAckedBytes);
  54. public delegate void SetAppearance(IClientAPI remoteClient, Primitive.TextureEntry textureEntry, byte[] visualParams, Vector3 AvSize, WearableCacheItem[] CacheItems);
  55. public delegate void CachedTextureRequest(IClientAPI remoteClient, int serial, List<CachedTextureRequestArg> cachedTextureRequest);
  56. public delegate void StartAnim(IClientAPI remoteClient, UUID animID);
  57. public delegate void StopAnim(IClientAPI remoteClient, UUID animID);
  58. public delegate void ChangeAnim(UUID animID, bool addOrRemove, bool sendPack);
  59. public delegate void LinkObjects(IClientAPI remoteClient, uint parent, List<uint> children);
  60. public delegate void DelinkObjects(List<uint> primIds, IClientAPI client);
  61. public delegate void RequestMapBlocks(IClientAPI remoteClient, int minX, int minY, int maxX, int maxY, uint flag);
  62. public delegate void RequestMapName(IClientAPI remoteClient, string mapName, uint flags);
  63. public delegate void TeleportLocationRequest(
  64. IClientAPI remoteClient, ulong regionHandle, Vector3 position, Vector3 lookAt, uint flags);
  65. public delegate void TeleportLandmarkRequest(
  66. IClientAPI remoteClient, AssetLandmark lm);
  67. public delegate void TeleportCancel(IClientAPI remoteClient);
  68. public delegate void DisconnectUser();
  69. public delegate void RequestAvatarProperties(IClientAPI remoteClient, UUID avatarID);
  70. public delegate void UpdateAvatarProperties(IClientAPI remoteClient, UserProfileData ProfileData);
  71. public delegate void SetAlwaysRun(IClientAPI remoteClient, bool SetAlwaysRun);
  72. public delegate void GenericCall1(IClientAPI remoteClient);
  73. public delegate void GenericCall2();
  74. // really don't want to be passing packets in these events, so this is very temporary.
  75. public delegate void GenericCall4(Packet packet, IClientAPI remoteClient);
  76. public delegate void DeRezObject(
  77. IClientAPI remoteClient, List<uint> localIDs, UUID groupID, DeRezAction action, UUID destinationID, bool AddToReturns = true);
  78. public delegate void GenericCall5(IClientAPI remoteClient, bool status);
  79. public delegate void GenericCall7(IClientAPI remoteClient, uint localID, string message);
  80. public delegate void UpdateShape(UUID agentID, uint localID, UpdateShapeArgs shapeBlock);
  81. public delegate void ObjectExtraParams(UUID agentID, uint localID, ushort type, bool inUse, byte[] data);
  82. public delegate void ObjectSelect(List<uint> localID, IClientAPI remoteClient);
  83. public delegate void ObjectRequest(uint localID, IClientAPI remoteClient);
  84. public delegate void RequestObjectPropertiesFamily(
  85. IClientAPI remoteClient, UUID AgentID, uint RequestFlags, UUID TaskID);
  86. public delegate void ObjectDeselect(uint localID, IClientAPI remoteClient);
  87. public delegate void ObjectDrop(uint localID, IClientAPI remoteClient);
  88. public delegate void UpdatePrimFlags(
  89. uint localID, bool UsePhysics, bool IsTemporary, bool IsPhantom, ExtraPhysicsData PhysData, IClientAPI remoteClient);
  90. public delegate void UpdatePrimTexture(uint localID, byte[] texture, IClientAPI remoteClient);
  91. public delegate void UpdateVector(uint localID, Vector3 pos, IClientAPI remoteClient);
  92. public delegate void ClientChangeObject(uint localID, object data ,IClientAPI remoteClient);
  93. public delegate void UpdatePrimRotation(uint localID, Quaternion rot, IClientAPI remoteClient);
  94. public delegate void UpdatePrimSingleRotation(uint localID, Quaternion rot, IClientAPI remoteClient);
  95. public delegate void UpdatePrimSingleRotationPosition(uint localID, Quaternion rot, Vector3 pos, IClientAPI remoteClient);
  96. public delegate void UpdatePrimGroupRotation(uint localID, Vector3 pos, Quaternion rot, IClientAPI remoteClient);
  97. public delegate void ObjectDuplicate(uint localID, Vector3 offset, uint dupeFlags, UUID AgentID, UUID GroupID);
  98. public delegate void ObjectDuplicateOnRay(uint localID, uint dupeFlags, UUID AgentID, UUID GroupID,
  99. UUID RayTargetObj, Vector3 RayEnd, Vector3 RayStart,
  100. bool BypassRaycast, bool RayEndIsIntersection, bool CopyCenters,
  101. bool CopyRotates);
  102. public delegate void StatusChange(bool status);
  103. public delegate void NewAvatar(IClientAPI remoteClient, UUID agentID, bool status);
  104. public delegate void UpdateAgent(IClientAPI remoteClient, AgentUpdateArgs agentData);
  105. public delegate void AgentRequestSit(IClientAPI remoteClient, UUID agentID, UUID targetID, Vector3 offset);
  106. public delegate void AgentSit(IClientAPI remoteClient, UUID agentID);
  107. public delegate void LandUndo(IClientAPI remoteClient);
  108. public delegate void AvatarPickerRequest(IClientAPI remoteClient, UUID agentdata, UUID queryID, string UserQuery);
  109. public delegate void GrabObject(
  110. uint localID, Vector3 pos, IClientAPI remoteClient, List<SurfaceTouchEventArgs> surfaceArgs);
  111. public delegate void DeGrabObject(
  112. uint localID, IClientAPI remoteClient, List<SurfaceTouchEventArgs> surfaceArgs);
  113. public delegate void MoveObject(
  114. UUID objectID, Vector3 offset, Vector3 grapPos, IClientAPI remoteClient, List<SurfaceTouchEventArgs> surfaceArgs);
  115. public delegate void SpinStart(UUID objectID, IClientAPI remoteClient);
  116. public delegate void SpinObject(UUID objectID, Quaternion rotation, IClientAPI remoteClient);
  117. public delegate void SpinStop(UUID objectID, IClientAPI remoteClient);
  118. public delegate void ParcelAccessListRequest(
  119. UUID agentID, UUID sessionID, uint flags, int sequenceID, int landLocalID, IClientAPI remote_client);
  120. public delegate void ParcelAccessListUpdateRequest(UUID agentID, uint flags, UUID transactionID,
  121. int landLocalID, List<LandAccessEntry> entries, IClientAPI remote_client);
  122. public delegate void ParcelPropertiesRequest(
  123. int start_x, int start_y, int end_x, int end_y, int sequence_id, bool snap_selection, IClientAPI remote_client);
  124. public delegate void ParcelDivideRequest(int west, int south, int east, int north, IClientAPI remote_client);
  125. public delegate void ParcelJoinRequest(int west, int south, int east, int north, IClientAPI remote_client);
  126. public delegate void ParcelPropertiesUpdateRequest(LandUpdateArgs args, int local_id, IClientAPI remote_client);
  127. public delegate void ParcelSelectObjects(int land_local_id, int request_type, List<UUID> returnIDs, IClientAPI remote_client);
  128. public delegate void ParcelObjectOwnerRequest(int local_id, IClientAPI remote_client);
  129. public delegate void ParcelAbandonRequest(int local_id, IClientAPI remote_client);
  130. public delegate void ParcelGodForceOwner(int local_id, UUID ownerID, IClientAPI remote_client);
  131. public delegate void ParcelReclaim(int local_id, IClientAPI remote_client);
  132. public delegate void ParcelReturnObjectsRequest(
  133. int local_id, uint return_type, UUID[] agent_ids, UUID[] selected_ids, IClientAPI remote_client);
  134. public delegate void ParcelDeedToGroup(int local_id, UUID group_id, IClientAPI remote_client);
  135. public delegate void EstateOwnerMessageRequest(
  136. UUID AgentID, UUID SessionID, UUID TransactionID, UUID Invoice, byte[] Method, byte[][] Parameters,
  137. IClientAPI remote_client);
  138. public delegate void RegionInfoRequest(IClientAPI remote_client);
  139. public delegate void EstateCovenantRequest(IClientAPI remote_client);
  140. public delegate void UUIDNameRequest(UUID id, IClientAPI remote_client);
  141. public delegate void AddNewPrim(
  142. UUID ownerID, UUID groupID, Vector3 RayEnd, Quaternion rot, PrimitiveBaseShape shape, byte bypassRaycast, Vector3 RayStart,
  143. UUID RayTargetID,
  144. byte RayEndIsIntersection);
  145. public delegate void RequestGodlikePowers(
  146. UUID AgentID, UUID SessionID, UUID token, bool GodLike);
  147. public delegate void GodKickUser(
  148. UUID GodAgentID, UUID AgentID, uint kickflags, byte[] reason);
  149. public delegate void CreateInventoryFolder(
  150. IClientAPI remoteClient, UUID folderID, ushort folderType, string folderName, UUID parentID);
  151. public delegate void UpdateInventoryFolder(
  152. IClientAPI remoteClient, UUID folderID, ushort type, string name, UUID parentID);
  153. public delegate void MoveInventoryFolder(
  154. IClientAPI remoteClient, UUID folderID, UUID parentID);
  155. public delegate void CreateNewInventoryItem(
  156. IClientAPI remoteClient, UUID transActionID, UUID folderID, uint callbackID, string description, string name,
  157. sbyte invType, sbyte type, byte wearableType, uint everyoneMask, int creationDate);
  158. public delegate void LinkInventoryItem(
  159. IClientAPI remoteClient, UUID transActionID, UUID folderID, uint callbackID, string description, string name,
  160. sbyte invType, sbyte type, UUID olditemID);
  161. public delegate void FetchInventoryDescendents(
  162. IClientAPI remoteClient, UUID folderID, UUID ownerID, bool fetchFolders, bool fetchItems, int sortOrder);
  163. public delegate void PurgeInventoryDescendents(
  164. IClientAPI remoteClient, UUID folderID);
  165. public delegate void FetchInventory(IClientAPI remoteClient, UUID itemID, UUID ownerID);
  166. public delegate void RequestTaskInventory(IClientAPI remoteClient, uint localID);
  167. /* public delegate void UpdateInventoryItem(
  168. IClientAPI remoteClient, UUID transactionID, UUID itemID, string name, string description,
  169. uint nextOwnerMask);*/
  170. public delegate void UpdateInventoryItem(
  171. IClientAPI remoteClient, UUID transactionID, UUID itemID, InventoryItemBase itemUpd);
  172. public delegate void CopyInventoryItem(
  173. IClientAPI remoteClient, uint callbackID, UUID oldAgentID, UUID oldItemID, UUID newFolderID,
  174. string newName);
  175. public delegate void MoveInventoryItem(
  176. IClientAPI remoteClient, List<InventoryItemBase> items);
  177. public delegate void MoveItemsAndLeaveCopy(
  178. IClientAPI remoteClient, List<InventoryItemBase> items, UUID destFolder);
  179. public delegate void RemoveInventoryItem(
  180. IClientAPI remoteClient, List<UUID> itemIDs);
  181. public delegate void RemoveInventoryFolder(
  182. IClientAPI remoteClient, List<UUID> folderIDs);
  183. public delegate void RequestAsset(IClientAPI remoteClient, RequestAssetArgs transferRequest);
  184. public delegate void AbortXfer(IClientAPI remoteClient, ulong xferID);
  185. public delegate void RezScript(IClientAPI remoteClient, InventoryItemBase item, UUID transactionID, uint localID);
  186. public delegate void UpdateTaskInventory(
  187. IClientAPI remoteClient, UUID transactionID, TaskInventoryItem item, uint localID);
  188. public delegate void MoveTaskInventory(IClientAPI remoteClient, UUID folderID, uint localID, UUID itemID);
  189. public delegate void RemoveTaskInventory(IClientAPI remoteClient, UUID itemID, uint localID);
  190. public delegate void UDPAssetUploadRequest(
  191. IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, byte[] data, bool storeLocal,
  192. bool tempFile);
  193. public delegate void XferReceive(IClientAPI remoteClient, ulong xferID, uint packetID, byte[] data);
  194. public delegate void RequestXfer(IClientAPI remoteClient, ulong xferID, string fileName);
  195. public delegate void ConfirmXfer(IClientAPI remoteClient, ulong xferID, uint packetID);
  196. public delegate void FriendActionDelegate(
  197. IClientAPI remoteClient, UUID transactionID, List<UUID> callingCardFolders);
  198. public delegate void FriendshipTermination(IClientAPI remoteClient, UUID ExID);
  199. public delegate void MoneyTransferRequest(
  200. UUID sourceID, UUID destID, int amount, int transactionType, string description);
  201. public delegate void ParcelBuy(UUID agentId, UUID groupId, bool final, bool groupOwned,
  202. bool removeContribution, int parcelLocalID, int parcelArea, int parcelPrice,
  203. bool authenticated);
  204. // We keep all this information for fraud purposes in the future.
  205. public delegate void MoneyBalanceRequest(IClientAPI remoteClient, UUID agentID, UUID sessionID, UUID TransactionID);
  206. public delegate void ObjectPermissions(
  207. IClientAPI controller, UUID agentID, UUID sessionID, byte field, uint localId, uint mask, byte set);
  208. public delegate void EconomyDataRequest(IClientAPI client);
  209. public delegate void ObjectIncludeInSearch(IClientAPI remoteClient, bool IncludeInSearch, uint localID);
  210. public delegate void ScriptAnswer(IClientAPI remoteClient, UUID objectID, UUID itemID, int answer);
  211. public delegate void RequestPayPrice(IClientAPI remoteClient, UUID objectID);
  212. public delegate void ObjectSaleInfo(
  213. IClientAPI remoteClient, UUID agentID, UUID sessionID, uint localID, byte saleType, int salePrice);
  214. public delegate void ObjectBuy(
  215. IClientAPI remoteClient, UUID agentID, UUID sessionID, UUID groupID, UUID categoryID, uint localID,
  216. byte saleType, int salePrice);
  217. public delegate void BuyObjectInventory(
  218. IClientAPI remoteClient, UUID agentID, UUID sessionID, UUID objectID, UUID itemID, UUID folderID);
  219. public delegate void ForceReleaseControls(IClientAPI remoteClient, UUID agentID);
  220. public delegate void GodLandStatRequest(
  221. int parcelID, uint reportType, uint requestflags, string filter, IClientAPI remoteClient);
  222. //Estate Requests
  223. public delegate void DetailedEstateDataRequest(IClientAPI remoteClient, UUID invoice);
  224. public delegate void SetEstateFlagsRequest(
  225. bool blockTerraform, bool noFly, bool allowDamage, bool blockLandResell, int maxAgents, float objectBonusFactor,
  226. int matureLevel, bool restrictPushObject, bool allowParcelChanges);
  227. public delegate void SetEstateTerrainBaseTexture(IClientAPI remoteClient, int corner, UUID side);
  228. public delegate void SetEstateTerrainDetailTexture(IClientAPI remoteClient, int corner, UUID side);
  229. public delegate void SetEstateTerrainTextureHeights(IClientAPI remoteClient, int corner, float lowVal, float highVal
  230. );
  231. public delegate void CommitEstateTerrainTextureRequest(IClientAPI remoteClient);
  232. public delegate void SetRegionTerrainSettings(
  233. float waterHeight, float terrainRaiseLimit, float terrainLowerLimit, bool estateSun, bool fixedSun,
  234. float sunHour, bool globalSun, bool estateFixed, float estateSunHour);
  235. public delegate void EstateChangeInfo(IClientAPI client, UUID invoice, UUID senderID, UInt32 param1, UInt32 param2);
  236. public delegate void EstateManageTelehub(IClientAPI client, UUID invoice, UUID senderID, string cmd, UInt32 param1);
  237. public delegate void RequestTerrain(IClientAPI remoteClient, string clientFileName);
  238. public delegate void BakeTerrain(IClientAPI remoteClient);
  239. public delegate void EstateRestartSimRequest(IClientAPI remoteClient, int secondsTilReboot);
  240. public delegate void EstateChangeCovenantRequest(IClientAPI remoteClient, UUID newCovenantID);
  241. public delegate void UpdateEstateAccessDeltaRequest(
  242. IClientAPI remote_client, UUID invoice, int estateAccessType, UUID user);
  243. public delegate void SimulatorBlueBoxMessageRequest(
  244. IClientAPI remoteClient, UUID invoice, UUID senderID, UUID sessionID, string senderName, string message);
  245. public delegate void EstateBlueBoxMessageRequest(
  246. IClientAPI remoteClient, UUID invoice, UUID senderID, UUID sessionID, string senderName, string message);
  247. public delegate void EstateDebugRegionRequest(
  248. IClientAPI remoteClient, UUID invoice, UUID senderID, bool scripted, bool collisionEvents, bool physics);
  249. public delegate void EstateTeleportOneUserHomeRequest(
  250. IClientAPI remoteClient, UUID invoice, UUID senderID, UUID prey, bool kill);
  251. public delegate void EstateTeleportAllUsersHomeRequest(IClientAPI remoteClient, UUID invoice, UUID senderID);
  252. public delegate void RegionHandleRequest(IClientAPI remoteClient, UUID regionID);
  253. public delegate void ParcelInfoRequest(IClientAPI remoteClient, UUID parcelID);
  254. public delegate void ScriptReset(IClientAPI remoteClient, UUID objectID, UUID itemID);
  255. public delegate void GetScriptRunning(IClientAPI remoteClient, UUID objectID, UUID itemID);
  256. public delegate void SetScriptRunning(IClientAPI remoteClient, UUID objectID, UUID itemID, bool running);
  257. public delegate void ActivateGesture(IClientAPI client, UUID gestureid, UUID assetId);
  258. public delegate void DeactivateGesture(IClientAPI client, UUID gestureid);
  259. public delegate void TerrainUnacked(IClientAPI remoteClient, int patchX, int patchY);
  260. public delegate void ObjectOwner(IClientAPI remoteClient, UUID ownerID, UUID groupID, List<uint> localIDs);
  261. public delegate void DirPlacesQuery(
  262. IClientAPI remoteClient, UUID queryID, string queryText, int queryFlags, int category, string simName,
  263. int queryStart);
  264. public delegate void DirFindQuery(
  265. IClientAPI remoteClient, UUID queryID, string queryText, uint queryFlags, int queryStart);
  266. public delegate void DirLandQuery(
  267. IClientAPI remoteClient, UUID queryID, uint queryFlags, uint searchType, int price, int area, int queryStart);
  268. public delegate void DirPopularQuery(IClientAPI remoteClient, UUID queryID, uint queryFlags);
  269. public delegate void DirClassifiedQuery(
  270. IClientAPI remoteClient, UUID queryID, string queryText, uint queryFlags, uint category, int queryStart);
  271. public delegate void EventInfoRequest(IClientAPI remoteClient, uint eventID);
  272. public delegate void ParcelSetOtherCleanTime(IClientAPI remoteClient, int localID, int otherCleanTime);
  273. public delegate void MapItemRequest(
  274. IClientAPI remoteClient, uint flags, uint EstateID, bool godlike, uint itemtype, ulong regionhandle);
  275. public delegate void OfferCallingCard(IClientAPI remoteClient, UUID destID, UUID transactionID);
  276. public delegate void AcceptCallingCard(IClientAPI remoteClient, UUID transactionID, UUID folderID);
  277. public delegate void DeclineCallingCard(IClientAPI remoteClient, UUID transactionID);
  278. public delegate void SoundTrigger(
  279. UUID soundId, UUID ownerid, UUID objid, UUID parentid, double Gain, Vector3 Position, UInt64 Handle);
  280. public delegate void StartLure(byte lureType, string message, UUID targetID, IClientAPI client);
  281. public delegate void TeleportLureRequest(UUID lureID, uint teleportFlags, IClientAPI client);
  282. public delegate void ClassifiedInfoRequest(UUID classifiedID, IClientAPI client);
  283. public delegate void ClassifiedInfoUpdate(UUID classifiedID, uint category, string name, string description, UUID parcelID, uint parentEstate, UUID snapshotID, Vector3 globalPos, byte classifiedFlags, int price, IClientAPI client);
  284. public delegate void ClassifiedDelete(UUID classifiedID, IClientAPI client);
  285. public delegate void ClassifiedGodDelete(UUID classifiedID, UUID queryID, IClientAPI client);
  286. public delegate void EventNotificationAddRequest(uint EventID, IClientAPI client);
  287. public delegate void EventNotificationRemoveRequest(uint EventID, IClientAPI client);
  288. public delegate void EventGodDelete(uint eventID, UUID queryID, string queryText, uint queryFlags, int queryStart, IClientAPI client);
  289. public delegate void ParcelDwellRequest(int localID, IClientAPI client);
  290. public delegate void UserInfoRequest(IClientAPI client);
  291. public delegate void UpdateUserInfo(bool imViaEmail, bool visible, IClientAPI client);
  292. public delegate void RetrieveInstantMessages(IClientAPI client);
  293. public delegate void PickDelete(IClientAPI client, UUID pickID);
  294. public delegate void PickGodDelete(IClientAPI client, UUID agentID, UUID pickID, UUID queryID);
  295. public delegate void PickInfoUpdate(IClientAPI client, UUID pickID, UUID creatorID, bool topPick, string name, string desc, UUID snapshotID, int sortOrder, bool enabled);
  296. public delegate void AvatarNotesUpdate(IClientAPI client, UUID targetID, string notes);
  297. public delegate void MuteListRequest(IClientAPI client, uint muteCRC);
  298. public delegate void AvatarInterestUpdate(IClientAPI client, uint wantmask, string wanttext, uint skillsmask, string skillstext, string languages);
  299. public delegate void GrantUserFriendRights(IClientAPI client, UUID target, int rights);
  300. public delegate void PlacesQuery(UUID QueryID, UUID TransactionID, string QueryText, uint QueryFlags, byte Category, string SimName, IClientAPI client);
  301. public delegate void AgentFOV(IClientAPI client, float verticalAngle);
  302. public delegate void MuteListEntryUpdate(IClientAPI client, UUID MuteID, string Name, int type, uint flags);
  303. public delegate void MuteListEntryRemove(IClientAPI client, UUID MuteID, string Name);
  304. public delegate void AvatarInterestReply(IClientAPI client,UUID target, uint wantmask, string wanttext, uint skillsmask, string skillstext, string languages);
  305. public delegate void FindAgentUpdate(IClientAPI client, UUID hunter, UUID target);
  306. public delegate void TrackAgentUpdate(IClientAPI client, UUID hunter, UUID target);
  307. public delegate void FreezeUserUpdate(IClientAPI client, UUID parcelowner,uint flags, UUID target);
  308. public delegate void EjectUserUpdate(IClientAPI client, UUID parcelowner,uint flags, UUID target);
  309. public delegate void NewUserReport(IClientAPI client, string regionName,UUID abuserID, byte catagory, byte checkflags, string details, UUID objectID, Vector3 postion, byte reportType ,UUID screenshotID, string Summary, UUID reporter);
  310. public delegate void GodUpdateRegionInfoUpdate(IClientAPI client, float BillableFactor, ulong EstateID, ulong RegionFlags, byte[] SimName,int RedirectX, int RedirectY);
  311. public delegate void GodlikeMessage(IClientAPI client, UUID requester, byte[] Method, byte[] Parameter);
  312. public delegate void SaveStateHandler(IClientAPI client,UUID agentID);
  313. public delegate void GroupAccountSummaryRequest(IClientAPI client,UUID agentID, UUID groupID);
  314. public delegate void GroupAccountDetailsRequest(IClientAPI client,UUID agentID, UUID groupID, UUID transactionID, UUID sessionID);
  315. public delegate void GroupAccountTransactionsRequest(IClientAPI client,UUID agentID, UUID groupID, UUID transactionID, UUID sessionID);
  316. public delegate void ParcelBuyPass(IClientAPI client, UUID agentID, int ParcelLocalID);
  317. public delegate void ParcelGodMark(IClientAPI client, UUID agentID, int ParcelLocalID);
  318. public delegate void GroupActiveProposalsRequest(IClientAPI client,UUID agentID, UUID groupID, UUID transactionID, UUID sessionID);
  319. public delegate void GroupVoteHistoryRequest(IClientAPI client,UUID agentID, UUID groupID, UUID transactionID, UUID sessionID);
  320. public delegate void SimWideDeletesDelegate(IClientAPI client,UUID agentID, int flags, UUID targetID);
  321. public delegate void SendPostcard(IClientAPI client);
  322. public delegate void ChangeInventoryItemFlags(IClientAPI client, UUID itemID, uint flags);
  323. #endregion
  324. public struct DirPlacesReplyData
  325. {
  326. public UUID parcelID;
  327. public string name;
  328. public bool forSale;
  329. public bool auction;
  330. public float dwell;
  331. public uint Status;
  332. }
  333. public struct DirPeopleReplyData
  334. {
  335. public UUID agentID;
  336. public string firstName;
  337. public string lastName;
  338. public string group;
  339. public bool online;
  340. public int reputation;
  341. }
  342. public struct DirEventsReplyData
  343. {
  344. public UUID ownerID;
  345. public string name;
  346. public uint eventID;
  347. public string date;
  348. public uint unixTime;
  349. public uint eventFlags;
  350. public uint Status;
  351. }
  352. public struct DirGroupsReplyData
  353. {
  354. public UUID groupID;
  355. public string groupName;
  356. public int members;
  357. public float searchOrder;
  358. }
  359. public struct DirClassifiedReplyData
  360. {
  361. public UUID classifiedID;
  362. public string name;
  363. public byte classifiedFlags;
  364. public uint creationDate;
  365. public uint expirationDate;
  366. public int price;
  367. public uint Status;
  368. }
  369. public struct DirLandReplyData
  370. {
  371. public UUID parcelID;
  372. public string name;
  373. public bool auction;
  374. public bool forSale;
  375. public int salePrice;
  376. public int actualArea;
  377. }
  378. public struct DirPopularReplyData
  379. {
  380. public UUID parcelID;
  381. public string name;
  382. public float dwell;
  383. }
  384. public class EntityUpdate
  385. {
  386. private ISceneEntity m_entity;
  387. private PrimUpdateFlags m_flags;
  388. public ISceneEntity Entity
  389. {
  390. get { return m_entity; }
  391. }
  392. public PrimUpdateFlags Flags
  393. {
  394. get { return m_flags; }
  395. set { m_flags = value; }
  396. }
  397. public virtual void Update()
  398. {
  399. // we are on the new one
  400. if (m_flags.HasFlag(PrimUpdateFlags.CancelKill))
  401. {
  402. if (m_flags.HasFlag(PrimUpdateFlags.UpdateProbe))
  403. m_flags = PrimUpdateFlags.UpdateProbe;
  404. else
  405. m_flags = PrimUpdateFlags.FullUpdatewithAnim;
  406. }
  407. }
  408. public virtual void Update(EntityUpdate oldupdate)
  409. {
  410. // we are on the new one
  411. PrimUpdateFlags updateFlags = oldupdate.Flags;
  412. if (updateFlags.HasFlag(PrimUpdateFlags.UpdateProbe))
  413. updateFlags &= ~PrimUpdateFlags.UpdateProbe;
  414. if (m_flags.HasFlag(PrimUpdateFlags.CancelKill))
  415. {
  416. if(m_flags.HasFlag(PrimUpdateFlags.UpdateProbe))
  417. m_flags = PrimUpdateFlags.UpdateProbe;
  418. else
  419. m_flags = PrimUpdateFlags.FullUpdatewithAnim;
  420. }
  421. else
  422. m_flags |= updateFlags;
  423. }
  424. public EntityUpdate(ISceneEntity entity, PrimUpdateFlags flags)
  425. {
  426. m_entity = entity;
  427. m_flags = flags;
  428. }
  429. }
  430. public class PlacesReplyData
  431. {
  432. public UUID OwnerID;
  433. public string Name;
  434. public string Desc;
  435. public int ActualArea;
  436. public int BillableArea;
  437. public byte Flags;
  438. public uint GlobalX;
  439. public uint GlobalY;
  440. public uint GlobalZ;
  441. public string SimName;
  442. public UUID SnapshotID;
  443. public uint Dwell;
  444. public int Price;
  445. }
  446. /// <summary>
  447. /// Specifies the fields that have been changed when sending a prim or
  448. /// avatar update
  449. /// </summary>
  450. [Flags]
  451. public enum PrimUpdateFlags : uint
  452. {
  453. None = 0,
  454. AttachmentPoint = 1 << 0,
  455. Material = 1 << 1,
  456. ClickAction = 1 << 2,
  457. Scale = 1 << 3,
  458. ParentID = 1 << 4,
  459. PrimFlags = 1 << 5,
  460. PrimData = 1 << 6,
  461. MediaURL = 1 << 7,
  462. ScratchPad = 1 << 8,
  463. Textures = 1 << 9,
  464. TextureAnim = 1 << 10,
  465. NameValue = 1 << 11,
  466. Position = 1 << 12,
  467. Rotation = 1 << 13,
  468. Velocity = 1 << 14,
  469. Acceleration = 1 << 15,
  470. AngularVelocity = 1 << 16,
  471. CollisionPlane = 1 << 17,
  472. Text = 1 << 18,
  473. Particles = 1 << 19,
  474. ExtraData = 1 << 20,
  475. Sound = 1 << 21,
  476. TerseUpdate = Position | Rotation | Velocity | Acceleration | AngularVelocity,
  477. FullUpdate = 0x00ffffff,
  478. Animations = 1 << 24,
  479. FullUpdatewithAnim = FullUpdate | Animations,
  480. UpdateProbe = 0x10000000, // 1 << 28
  481. SendInTransit = 0x20000000, // 1 << 29
  482. CancelKill = 0x40000000, // 1 << 30
  483. Kill = 0x80000000 // 1 << 31
  484. }
  485. /* included in .net 4.0
  486. public static class PrimUpdateFlagsExtensions
  487. {
  488. public static bool HasFlag(this PrimUpdateFlags updateFlags, PrimUpdateFlags flag)
  489. {
  490. return (updateFlags & flag) == flag;
  491. }
  492. }
  493. */
  494. public interface IClientAPI
  495. {
  496. Vector3 StartPos { get; set; }
  497. float StartFar { get; set; }
  498. UUID AgentId { get; }
  499. UUID ScopeId { get; }
  500. /// <summary>
  501. /// The scene agent for this client. This will only be set if the client has an agent in a scene (i.e. if it
  502. /// is connected).
  503. /// </summary>
  504. ISceneAgent SceneAgent { get; set; }
  505. UUID SessionId { get; }
  506. UUID SecureSessionId { get; }
  507. UUID ActiveGroupId { get; set; }
  508. string ActiveGroupName { get; set;}
  509. ulong ActiveGroupPowers { get; set;}
  510. Dictionary<UUID, ulong> GetGroupPowers();
  511. void SetGroupPowers(Dictionary<UUID, ulong> powers);
  512. ulong GetGroupPowers(UUID groupID);
  513. bool IsGroupMember(UUID GroupID);
  514. string FirstName { get; }
  515. string LastName { get; }
  516. IScene Scene { get; }
  517. List<uint> SelectedObjects { get; }
  518. /// <summary>
  519. /// Returns the full name of the agent/avatar represented by this client
  520. /// </summary>
  521. string Name { get; }
  522. /// <summary>
  523. /// True if the client is active (sending and receiving new UDP messages). False if the client is being closed.
  524. /// </summary>
  525. bool IsActive { get; set; }
  526. int PingTimeMS { get; }
  527. /// <summary>
  528. /// Set if the client is closing due to a logout request
  529. /// </summary>
  530. /// <remarks>
  531. /// Do not use this flag if you want to know if the client is closing, since it will not be set in other
  532. /// circumstances (e.g. if a child agent is closed or the agent is kicked off the simulator). Use IsActive
  533. /// instead with a IClientAPI.SceneAgent.IsChildAgent check if necessary.
  534. ///
  535. /// Only set for root agents.
  536. /// </remarks>
  537. bool IsLoggingOut { get; set; }
  538. bool SendLogoutPacketWhenClosing { set; }
  539. int NextAnimationSequenceNumber {get; set;}
  540. // [Obsolete("LLClientView Specific - Circuits are unique to LLClientView")]
  541. uint CircuitCode { get; }
  542. IPEndPoint RemoteEndPoint { get; }
  543. event GenericMessage OnGenericMessage;
  544. // [Obsolete("LLClientView Specific - Replace with more bare-bones arguments.")]
  545. event ImprovedInstantMessage OnInstantMessage;
  546. // [Obsolete("LLClientView Specific - Replace with more bare-bones arguments. Rename OnChat.")]
  547. event ChatMessage OnChatFromClient;
  548. // [Obsolete("LLClientView Specific - Replace with more bare-bones arguments.")]
  549. event TextureRequest OnRequestTexture;
  550. // [Obsolete("LLClientView Specific - Remove bitbuckets. Adam, can you be more specific here.. as I don't see any bit buckets.")]
  551. event RezObject OnRezObject;
  552. // [Obsolete("LLClientView Specific - Replace with more suitable arguments.")]
  553. event ModifyTerrain OnModifyTerrain;
  554. event BakeTerrain OnBakeTerrain;
  555. event EstateChangeInfo OnEstateChangeInfo;
  556. event EstateManageTelehub OnEstateManageTelehub;
  557. // [Obsolete("LLClientView Specific.")]
  558. event CachedTextureRequest OnCachedTextureRequest;
  559. event SetAppearance OnSetAppearance;
  560. // [Obsolete("LLClientView Specific - Replace and rename OnAvatarUpdate. Difference from SetAppearance?")]
  561. event AvatarNowWearing OnAvatarNowWearing;
  562. event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
  563. event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
  564. event UUIDNameRequest OnDetachAttachmentIntoInv;
  565. event ObjectAttach OnObjectAttach;
  566. event ObjectDeselect OnObjectDetach;
  567. event ObjectDrop OnObjectDrop;
  568. event StartAnim OnStartAnim;
  569. event StopAnim OnStopAnim;
  570. event ChangeAnim OnChangeAnim;
  571. event LinkObjects OnLinkObjects;
  572. event DelinkObjects OnDelinkObjects;
  573. event RequestMapBlocks OnRequestMapBlocks;
  574. event RequestMapName OnMapNameRequest;
  575. event TeleportLocationRequest OnTeleportLocationRequest;
  576. event DisconnectUser OnDisconnectUser;
  577. event RequestAvatarProperties OnRequestAvatarProperties;
  578. event SetAlwaysRun OnSetAlwaysRun;
  579. event TeleportLandmarkRequest OnTeleportLandmarkRequest;
  580. event TeleportCancel OnTeleportCancel;
  581. event DeRezObject OnDeRezObject;
  582. event RezRestoreToWorld OnRezRestoreToWorld;
  583. event Action<IClientAPI> OnRegionHandShakeReply;
  584. event GenericCall1 OnRequestWearables;
  585. event Action<IClientAPI, bool> OnCompleteMovementToRegion;
  586. /// <summary>
  587. /// Called when an AgentUpdate message is received and before OnAgentUpdate.
  588. /// </summary>
  589. /// <remarks>
  590. /// Listeners must not retain a reference to AgentUpdateArgs since this object may be reused for subsequent AgentUpdates.
  591. /// </remarks>
  592. event UpdateAgent OnPreAgentUpdate;
  593. /// <summary>
  594. /// Called when an AgentUpdate message is received and after OnPreAgentUpdate.
  595. /// </summary>
  596. /// <remarks>
  597. /// Listeners must not retain a reference to AgentUpdateArgs since this object may be reused for subsequent AgentUpdates.
  598. /// </remarks>
  599. event UpdateAgent OnAgentUpdate;
  600. event UpdateAgent OnAgentCameraUpdate;
  601. event AgentRequestSit OnAgentRequestSit;
  602. event AgentSit OnAgentSit;
  603. event AvatarPickerRequest OnAvatarPickerRequest;
  604. event Action<IClientAPI> OnRequestAvatarsData;
  605. event AddNewPrim OnAddPrim;
  606. event FetchInventory OnAgentDataUpdateRequest;
  607. event TeleportLocationRequest OnSetStartLocationRequest;
  608. event RequestGodlikePowers OnRequestGodlikePowers;
  609. event GodKickUser OnGodKickUser;
  610. event ObjectDuplicate OnObjectDuplicate;
  611. event ObjectDuplicateOnRay OnObjectDuplicateOnRay;
  612. event GrabObject OnGrabObject;
  613. event DeGrabObject OnDeGrabObject;
  614. event MoveObject OnGrabUpdate;
  615. event SpinStart OnSpinStart;
  616. event SpinObject OnSpinUpdate;
  617. event SpinStop OnSpinStop;
  618. event UpdateShape OnUpdatePrimShape;
  619. event ObjectExtraParams OnUpdateExtraParams;
  620. event ObjectRequest OnObjectRequest;
  621. event ObjectSelect OnObjectSelect;
  622. event ObjectDeselect OnObjectDeselect;
  623. event GenericCall7 OnObjectDescription;
  624. event GenericCall7 OnObjectName;
  625. event GenericCall7 OnObjectClickAction;
  626. event GenericCall7 OnObjectMaterial;
  627. event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily;
  628. event UpdatePrimFlags OnUpdatePrimFlags;
  629. event UpdatePrimTexture OnUpdatePrimTexture;
  630. event ClientChangeObject onClientChangeObject;
  631. event UpdateVector OnUpdatePrimGroupPosition;
  632. event UpdateVector OnUpdatePrimSinglePosition;
  633. event UpdatePrimRotation OnUpdatePrimGroupRotation;
  634. event UpdatePrimSingleRotation OnUpdatePrimSingleRotation;
  635. event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition;
  636. event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation;
  637. event UpdateVector OnUpdatePrimScale;
  638. event UpdateVector OnUpdatePrimGroupScale;
  639. event StatusChange OnChildAgentStatus;
  640. event GenericCall2 OnStopMovement;
  641. event Action<UUID> OnRemoveAvatar;
  642. event ObjectPermissions OnObjectPermissions;
  643. event CreateNewInventoryItem OnCreateNewInventoryItem;
  644. event LinkInventoryItem OnLinkInventoryItem;
  645. event CreateInventoryFolder OnCreateNewInventoryFolder;
  646. event UpdateInventoryFolder OnUpdateInventoryFolder;
  647. event MoveInventoryFolder OnMoveInventoryFolder;
  648. event FetchInventoryDescendents OnFetchInventoryDescendents;
  649. event PurgeInventoryDescendents OnPurgeInventoryDescendents;
  650. event FetchInventory OnFetchInventory;
  651. event RequestTaskInventory OnRequestTaskInventory;
  652. event UpdateInventoryItem OnUpdateInventoryItem;
  653. event CopyInventoryItem OnCopyInventoryItem;
  654. event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy;
  655. event MoveInventoryItem OnMoveInventoryItem;
  656. event RemoveInventoryFolder OnRemoveInventoryFolder;
  657. event RemoveInventoryItem OnRemoveInventoryItem;
  658. event UDPAssetUploadRequest OnAssetUploadRequest;
  659. event XferReceive OnXferReceive;
  660. event RequestXfer OnRequestXfer;
  661. event ConfirmXfer OnConfirmXfer;
  662. event AbortXfer OnAbortXfer;
  663. event RezScript OnRezScript;
  664. event UpdateTaskInventory OnUpdateTaskInventory;
  665. event MoveTaskInventory OnMoveTaskItem;
  666. event RemoveTaskInventory OnRemoveTaskItem;
  667. event RequestAsset OnRequestAsset;
  668. event UUIDNameRequest OnNameFromUUIDRequest;
  669. event ParcelAccessListRequest OnParcelAccessListRequest;
  670. event ParcelAccessListUpdateRequest OnParcelAccessListUpdateRequest;
  671. event ParcelPropertiesRequest OnParcelPropertiesRequest;
  672. event ParcelDivideRequest OnParcelDivideRequest;
  673. event ParcelJoinRequest OnParcelJoinRequest;
  674. event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest;
  675. event ParcelSelectObjects OnParcelSelectObjects;
  676. event ParcelObjectOwnerRequest OnParcelObjectOwnerRequest;
  677. event ParcelAbandonRequest OnParcelAbandonRequest;
  678. event ParcelGodForceOwner OnParcelGodForceOwner;
  679. event ParcelReclaim OnParcelReclaim;
  680. event ParcelReturnObjectsRequest OnParcelReturnObjectsRequest;
  681. event ParcelDeedToGroup OnParcelDeedToGroup;
  682. event RegionInfoRequest OnRegionInfoRequest;
  683. event EstateCovenantRequest OnEstateCovenantRequest;
  684. event FriendActionDelegate OnApproveFriendRequest;
  685. event FriendActionDelegate OnDenyFriendRequest;
  686. event FriendshipTermination OnTerminateFriendship;
  687. // Financial packets
  688. event MoneyTransferRequest OnMoneyTransferRequest;
  689. event EconomyDataRequest OnEconomyDataRequest;
  690. event MoneyBalanceRequest OnMoneyBalanceRequest;
  691. event UpdateAvatarProperties OnUpdateAvatarProperties;
  692. event ParcelBuy OnParcelBuy;
  693. event RequestPayPrice OnRequestPayPrice;
  694. event ObjectSaleInfo OnObjectSaleInfo;
  695. event ObjectBuy OnObjectBuy;
  696. event BuyObjectInventory OnBuyObjectInventory;
  697. event RequestTerrain OnRequestTerrain;
  698. event RequestTerrain OnUploadTerrain;
  699. event ObjectIncludeInSearch OnObjectIncludeInSearch;
  700. event UUIDNameRequest OnTeleportHomeRequest;
  701. event ScriptAnswer OnScriptAnswer;
  702. event AgentSit OnUndo;
  703. event AgentSit OnRedo;
  704. event LandUndo OnLandUndo;
  705. event ForceReleaseControls OnForceReleaseControls;
  706. event GodLandStatRequest OnLandStatRequest;
  707. event DetailedEstateDataRequest OnDetailedEstateDataRequest;
  708. event SetEstateFlagsRequest OnSetEstateFlagsRequest;
  709. event SetEstateTerrainBaseTexture OnSetEstateTerrainBaseTexture;
  710. event SetEstateTerrainDetailTexture OnSetEstateTerrainDetailTexture;
  711. event SetEstateTerrainTextureHeights OnSetEstateTerrainTextureHeights;
  712. event CommitEstateTerrainTextureRequest OnCommitEstateTerrainTextureRequest;
  713. event SetRegionTerrainSettings OnSetRegionTerrainSettings;
  714. event EstateRestartSimRequest OnEstateRestartSimRequest;
  715. event EstateChangeCovenantRequest OnEstateChangeCovenantRequest;
  716. event UpdateEstateAccessDeltaRequest OnUpdateEstateAccessDeltaRequest;
  717. event SimulatorBlueBoxMessageRequest OnSimulatorBlueBoxMessageRequest;
  718. event EstateBlueBoxMessageRequest OnEstateBlueBoxMessageRequest;
  719. event EstateDebugRegionRequest OnEstateDebugRegionRequest;
  720. event EstateTeleportOneUserHomeRequest OnEstateTeleportOneUserHomeRequest;
  721. event EstateTeleportAllUsersHomeRequest OnEstateTeleportAllUsersHomeRequest;
  722. event UUIDNameRequest OnUUIDGroupNameRequest;
  723. event RegionHandleRequest OnRegionHandleRequest;
  724. event ParcelInfoRequest OnParcelInfoRequest;
  725. event RequestObjectPropertiesFamily OnObjectGroupRequest;
  726. event ScriptReset OnScriptReset;
  727. event GetScriptRunning OnGetScriptRunning;
  728. event SetScriptRunning OnSetScriptRunning;
  729. event Action<Vector3, bool, bool> OnAutoPilotGo;
  730. event TerrainUnacked OnUnackedTerrain;
  731. event ActivateGesture OnActivateGesture;
  732. event DeactivateGesture OnDeactivateGesture;
  733. event ObjectOwner OnObjectOwner;
  734. event DirPlacesQuery OnDirPlacesQuery;
  735. event DirFindQuery OnDirFindQuery;
  736. event DirLandQuery OnDirLandQuery;
  737. event DirPopularQuery OnDirPopularQuery;
  738. event DirClassifiedQuery OnDirClassifiedQuery;
  739. event EventInfoRequest OnEventInfoRequest;
  740. event ParcelSetOtherCleanTime OnParcelSetOtherCleanTime;
  741. event MapItemRequest OnMapItemRequest;
  742. event OfferCallingCard OnOfferCallingCard;
  743. event AcceptCallingCard OnAcceptCallingCard;
  744. event DeclineCallingCard OnDeclineCallingCard;
  745. event SoundTrigger OnSoundTrigger;
  746. event StartLure OnStartLure;
  747. event TeleportLureRequest OnTeleportLureRequest;
  748. event NetworkStats OnNetworkStatsUpdate;
  749. event ClassifiedInfoRequest OnClassifiedInfoRequest;
  750. event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
  751. event ClassifiedDelete OnClassifiedDelete;
  752. event ClassifiedGodDelete OnClassifiedGodDelete;
  753. event EventNotificationAddRequest OnEventNotificationAddRequest;
  754. event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
  755. event EventGodDelete OnEventGodDelete;
  756. event ParcelDwellRequest OnParcelDwellRequest;
  757. event UserInfoRequest OnUserInfoRequest;
  758. event UpdateUserInfo OnUpdateUserInfo;
  759. event RetrieveInstantMessages OnRetrieveInstantMessages;
  760. event PickDelete OnPickDelete;
  761. event PickGodDelete OnPickGodDelete;
  762. event PickInfoUpdate OnPickInfoUpdate;
  763. event AvatarNotesUpdate OnAvatarNotesUpdate;
  764. event AvatarInterestUpdate OnAvatarInterestUpdate;
  765. event GrantUserFriendRights OnGrantUserRights;
  766. event MuteListRequest OnMuteListRequest;
  767. event PlacesQuery OnPlacesQuery;
  768. event FindAgentUpdate OnFindAgent;
  769. event TrackAgentUpdate OnTrackAgent;
  770. event NewUserReport OnUserReport;
  771. event SaveStateHandler OnSaveState;
  772. event GroupAccountSummaryRequest OnGroupAccountSummaryRequest;
  773. event GroupAccountDetailsRequest OnGroupAccountDetailsRequest;
  774. event GroupAccountTransactionsRequest OnGroupAccountTransactionsRequest;
  775. event FreezeUserUpdate OnParcelFreezeUser;
  776. event EjectUserUpdate OnParcelEjectUser;
  777. event ParcelBuyPass OnParcelBuyPass;
  778. event ParcelGodMark OnParcelGodMark;
  779. event GroupActiveProposalsRequest OnGroupActiveProposalsRequest;
  780. event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
  781. event SimWideDeletesDelegate OnSimWideDeletes;
  782. event SendPostcard OnSendPostcard;
  783. event ChangeInventoryItemFlags OnChangeInventoryItemFlags;
  784. event MuteListEntryUpdate OnUpdateMuteListEntry;
  785. event MuteListEntryRemove OnRemoveMuteListEntry;
  786. event GodlikeMessage onGodlikeMessage;
  787. event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
  788. event GenericCall2 OnUpdateThrottles;
  789. /// <summary>
  790. /// Set the debug level at which packet output should be printed to console.
  791. /// </summary>
  792. int DebugPacketLevel { get; set; }
  793. void InPacket(object NewPack);
  794. void ProcessInPacket(Packet NewPack);
  795. /// <summary>
  796. /// Close this client
  797. /// </summary>
  798. void Close();
  799. /// <summary>
  800. /// Close this client
  801. /// </summary>
  802. /// <param name='force'>
  803. /// If true, attempts the close without checking active status. You do not want to try this except as a last
  804. /// ditch attempt where Active == false but the ScenePresence still exists.
  805. /// </param>
  806. void Close(bool sendStop, bool force);
  807. void Kick(string message);
  808. /// <summary>
  809. /// Start processing for this client.
  810. /// </summary>
  811. void Start();
  812. void Stop();
  813. // void ActivateGesture(UUID assetId, UUID gestureId);
  814. /// <summary>
  815. /// Tell this client what items it should be wearing now
  816. /// </summary>
  817. void SendWearables(AvatarWearable[] wearables, int serial);
  818. /// <summary>
  819. /// Send information about the given agent's appearance to another client.
  820. /// </summary>
  821. /// <param name="agentID">The id of the agent associated with the appearance</param>
  822. /// <param name="visualParams"></param>
  823. /// <param name="textureEntry"></param>
  824. void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry, float hoverheight);
  825. void SendCachedTextureResponse(ISceneEntity avatar, int serial, List<CachedTextureResponseArg> cachedTextures);
  826. /// <summary>
  827. /// Tell the client that an object has been deleted
  828. /// </summary>
  829. /// <param name="localID"></param>
  830. void SendKillObject(List<uint> localID);
  831. // void SendPartFullUpdate(ISceneEntity ent, uint? parentID);
  832. void SendAnimations(UUID[] animID, int[] seqs, UUID sourceAgentId, UUID[] objectIDs);
  833. void SendRegionHandshake();
  834. /// <summary>
  835. /// Send chat to the viewer.
  836. /// </summary>
  837. /// <param name='message'></param>
  838. /// <param name='type'></param>
  839. /// <param name='fromPos'></param>
  840. /// <param name='fromName'></param>
  841. /// <param name='fromAgentID'></param>
  842. /// <param name='ownerID'></param>
  843. /// <param name='source'></param>
  844. /// <param name='audible'></param>
  845. void SendChatMessage(
  846. string message, byte type, Vector3 fromPos, string fromName, UUID fromAgentID, UUID ownerID, byte source,
  847. byte audible);
  848. void SendInstantMessage(GridInstantMessage im);
  849. void SendGenericMessage(string method, UUID invoice, List<string> message);
  850. void SendGenericMessage(string method, UUID invoice, List<byte[]> message);
  851. bool CanSendLayerData();
  852. void SendLayerData();
  853. void SendLayerData(int[] map);
  854. void SendWindData(int version, Vector2[] windSpeeds);
  855. void SendCloudData(int version, float[] cloudCover);
  856. /// <summary>
  857. /// Sent when an agent completes its movement into a region.
  858. /// </summary>
  859. /// <remarks>
  860. /// This packet marks completion of the arrival of a root avatar in a region, whether through login, region
  861. /// crossing or direct teleport.
  862. /// </remarks>
  863. void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look);
  864. void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint);
  865. /// <summary>
  866. /// Return circuit information for this client.
  867. /// </summary>
  868. /// <returns></returns>
  869. AgentCircuitData RequestClientInfo();
  870. void CrossRegion(ulong newRegionHandle, Vector3 pos, Vector3 lookAt, IPEndPoint newRegionExternalEndPoint,
  871. string capsURL);
  872. void SendMapBlock(List<MapBlockData> mapBlocks, uint flag);
  873. void SendLocalTeleport(Vector3 position, Vector3 lookAt, uint flags);
  874. void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, uint locationID,
  875. uint flags, string capsURL);
  876. void SendTeleportFailed(string reason);
  877. void SendTeleportStart(uint flags);
  878. void SendTeleportProgress(uint flags, string message);
  879. void SendMoneyBalance(UUID transaction, bool success, byte[] description, int balance, int transactionType, UUID sourceID, bool sourceIsGroup, UUID destID, bool destIsGroup, int amount, string item);
  880. void SendPayPrice(UUID objectID, int[] payPrice);
  881. void SendCoarseLocationUpdate(List<UUID> users, List<Vector3> CoarseLocations);
  882. void SetChildAgentThrottle(byte[] throttle);
  883. void SetChildAgentThrottle(byte[] throttle,float factor);
  884. void SetAgentThrottleSilent(int throttle, int setting);
  885. int GetAgentThrottleSilent(int throttle);
  886. void SendEntityFullUpdateImmediate(ISceneEntity entity);
  887. void SendEntityTerseUpdateImmediate(ISceneEntity entity);
  888. /// <summary>
  889. /// Send a positional, velocity, etc. update to the viewer for a given entity.
  890. /// </summary>
  891. /// <param name="entity"></param>
  892. /// <param name="updateFlags"></param>
  893. void SendEntityUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags);
  894. void ReprioritizeUpdates();
  895. void FlushPrimUpdates();
  896. void SendInventoryFolderDetails(UUID ownerID, UUID folderID, List<InventoryItemBase> items,
  897. List<InventoryFolderBase> folders, int version, bool fetchFolders,
  898. bool fetchItems);
  899. void SendInventoryItemDetails(UUID ownerID, InventoryItemBase item);
  900. /// <summary>
  901. /// Tell the client that we have created the item it requested.
  902. /// </summary>
  903. /// <param name="Item"></param>
  904. void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId);
  905. void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId);
  906. void SendRemoveInventoryItem(UUID itemID);
  907. void SendTakeControls(int controls, bool passToAgent, bool TakeControls);
  908. void SendTaskInventory(UUID taskID, short serial, byte[] fileName);
  909. void SendTelehubInfo(UUID ObjectID, string ObjectName, Vector3 ObjectPos, Quaternion ObjectRot, List<Vector3> SpawnPoint);
  910. /// <summary>
  911. /// Used by the server to inform the client of new inventory items and folders.
  912. /// </summary>
  913. ///
  914. /// If the node is a folder then the contents will be transferred
  915. /// (including all descendent folders) as well as the folder itself.
  916. ///
  917. /// <param name="node"></param>
  918. void SendBulkUpdateInventory(InventoryNodeBase node);
  919. void SendXferPacket(ulong xferID, uint packet,
  920. byte[] XferData, int XferDataOffset, int XferDatapktLen, bool isTaskInventory);
  921. void SendAbortXferPacket(ulong xferID);
  922. void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit,
  923. int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent,
  924. float PriceObjectScaleFactor,
  925. int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent,
  926. int PricePublicObjectDecay,
  927. int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice,
  928. float TeleportPriceExponent);
  929. void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data);
  930. void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers,
  931. string groupname, string grouptitle);
  932. void SendPreLoadSound(UUID objectID, UUID ownerID, UUID soundID);
  933. void SendPlayAttachedSound(UUID soundID, UUID objectID, UUID ownerID, float gain, byte flags);
  934. void SendTriggeredSound(UUID soundID, UUID ownerID, UUID objectID, UUID parentID, ulong handle, Vector3 position,
  935. float gain);
  936. void SendAttachedSoundGainChange(UUID objectID, float gain);
  937. void SendNameReply(UUID profileId, string firstname, string lastname);
  938. void SendAlertMessage(string message);
  939. void SendAlertMessage(string message, string into);
  940. void SendAgentAlertMessage(string message, bool modal);
  941. void SendLoadURL(string objectname, UUID objectID, UUID ownerID, bool groupOwned, string message, string url);
  942. /// <summary>
  943. /// Open a dialog box on the client.
  944. /// </summary>
  945. /// <param name="objectname"></param>
  946. /// <param name="objectID"></param>
  947. /// <param name="ownerID">/param>
  948. /// <param name="ownerFirstName"></param>
  949. /// <param name="ownerLastName"></param>
  950. /// <param name="msg"></param>
  951. /// <param name="textureID"></param>
  952. /// <param name="ch"></param>
  953. /// <param name="buttonlabels"></param>
  954. void SendDialog(string objectname, UUID objectID, UUID ownerID, string ownerFirstName, string ownerLastName, string msg, UUID textureID, int ch,
  955. string[] buttonlabels);
  956. /// <summary>
  957. /// Update the client as to where the sun is currently located.
  958. /// </summary>
  959. /// <param name="sunPos"></param>
  960. /// <param name="sunVel"></param>
  961. /// <param name="CurrentTime">Seconds since Unix Epoch 01/01/1970 00:00:00</param>
  962. /// <param name="SecondsPerSunCycle"></param>
  963. /// <param name="SecondsPerYear"></param>
  964. /// <param name="OrbitalPosition">The orbital position is given in radians, and must be "adjusted" for the linden client, see LLClientView</param>
  965. void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear,
  966. float OrbitalPosition);
  967. void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks);
  968. void SendViewerTime(int phase);
  969. void SendAvatarProperties(UUID avatarID, string aboutText, string bornOn, Byte[] membershipType, string flAbout,
  970. uint flags, UUID flImageID, UUID imageID, string profileURL, UUID partnerID);
  971. void SendScriptQuestion(UUID taskID, string taskName, string ownerName, UUID itemID, int question);
  972. void SendHealth(float health);
  973. void SendEstateList(UUID invoice, int code, UUID[] Data, uint estateID);
  974. void SendBannedUserList(UUID invoice, EstateBan[] banlist, uint estateID);
  975. void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args);
  976. void SendEstateCovenantInformation(UUID covenant);
  977. void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags,
  978. uint sunPosition, UUID covenant, uint covenantChanged, string abuseEmail, UUID estateOwner);
  979. /// <summary>
  980. /// Send land properties to the client.
  981. /// </summary>
  982. /// <param name="sequence_id"></param>
  983. /// <param name="snap_selection"></param>
  984. /// <param name="request_result"></param>
  985. /// <param name="lo"></param></param>
  986. /// <param name="parcelObjectCapacity">/param>
  987. /// <param name="simObjectCapacity"></param>
  988. /// <param name="regionFlags"></param>
  989. void SendLandProperties(int sequence_id, bool snap_selection, int request_result, ILandObject lo,
  990. float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity,
  991. uint regionFlags);
  992. void SendLandAccessListData(List<LandAccessEntry> accessList, uint accessFlag, int localLandID);
  993. void SendForceClientSelectObjects(List<uint> objectIDs);
  994. void SendCameraConstraint(Vector4 ConstraintPlane);
  995. void SendLandObjectOwners(LandData land, List<UUID> groups, Dictionary<UUID, int> ownersAndCount);
  996. void SendLandParcelOverlay(byte[] data, int sequence_id);
  997. #region Parcel Methods
  998. void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time);
  999. void SendParcelMediaUpdate(string mediaUrl, UUID mediaTextureID,
  1000. byte autoScale, string mediaType, string mediaDesc, int mediaWidth, int mediaHeight,
  1001. byte mediaLoop);
  1002. #endregion
  1003. void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID);
  1004. void SendConfirmXfer(ulong xferID, uint PacketID);
  1005. void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName);
  1006. void SendInitiateDownload(string simFileName, string clientFileName);
  1007. /// <summary>
  1008. /// Send the first part of a texture. For sufficiently small textures, this may be the only packet.
  1009. /// </summary>
  1010. /// <param name="numParts"></param>
  1011. /// <param name="ImageUUID"></param>
  1012. /// <param name="ImageSize"></param>
  1013. /// <param name="ImageData"></param>
  1014. /// <param name="imageCodec"></param>
  1015. void SendImageFirstPart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec);
  1016. /// <summary>
  1017. /// Send the next packet for a series of packets making up a single texture,
  1018. /// as established by SendImageFirstPart()
  1019. /// </summary>
  1020. /// <param name="partNumber"></param>
  1021. /// <param name="imageUuid"></param>
  1022. /// <param name="imageData"></param>
  1023. void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData);
  1024. /// <summary>
  1025. /// Tell the client that the requested texture cannot be found
  1026. /// </summary>
  1027. void SendImageNotFound(UUID imageid);
  1028. void SendShutdownConnectionNotice();
  1029. /// <summary>
  1030. /// Send statistical information about the sim to the client.
  1031. /// </summary>
  1032. /// <param name="stats"></param>
  1033. void SendSimStats(SimStats stats);
  1034. void SendObjectPropertiesFamilyData(ISceneEntity Entity, uint RequestFlags);
  1035. void SendObjectPropertiesReply(ISceneEntity Entity);
  1036. void SendSelectedPartsProprieties(List<ISceneEntity> parts);
  1037. void SendPartPhysicsProprieties(ISceneEntity Entity);
  1038. void SendAgentOffline(UUID[] agentIDs);
  1039. void SendAgentOnline(UUID[] agentIDs);
  1040. void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY);
  1041. void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,
  1042. Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook);
  1043. void SendAdminResponse(UUID Token, uint AdminLevel);
  1044. void SendGroupMembership(GroupMembershipData[] GroupMembership);
  1045. void SendGroupNameReply(UUID groupLLUID, string GroupName);
  1046. void SendJoinGroupReply(UUID groupID, bool success);
  1047. void SendEjectGroupMemberReply(UUID agentID, UUID groupID, bool success);
  1048. void SendLeaveGroupReply(UUID groupID, bool success);
  1049. void SendCreateGroupReply(UUID groupID, bool success, string message);
  1050. void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia);
  1051. void SendScriptRunningReply(UUID objectID, UUID itemID, bool running);
  1052. void SendAsset(AssetRequestToClient req);
  1053. void SendTexture(AssetBase TextureAsset);
  1054. byte[] GetThrottlesPacked(float multiplier);
  1055. event ViewerEffectEventHandler OnViewerEffect;
  1056. event Action<IClientAPI> OnLogout;
  1057. event Action<IClientAPI> OnConnectionClosed;
  1058. void SendBlueBoxMessage(UUID FromAvatarID, String FromAvatarName, String Message);
  1059. void SendLogoutPacket();
  1060. // WARNING WARNING WARNING
  1061. //
  1062. // The two following methods are EXCLUSIVELY for the load balancer.
  1063. // they cause a MASSIVE performance hit!
  1064. //
  1065. ClientInfo GetClientInfo();
  1066. void SetClientInfo(ClientInfo info);
  1067. void SetClientOption(string option, string value);
  1068. string GetClientOption(string option);
  1069. void SendSetFollowCamProperties(UUID objectID, SortedDictionary<int, float> parameters);
  1070. void SendClearFollowCamProperties(UUID objectID);
  1071. void SendRegionHandle(UUID regoinID, ulong handle);
  1072. void SendParcelInfo(RegionInfo info, LandData land, UUID parcelID, uint x, uint y);
  1073. void SendScriptTeleportRequest(string objName, string simName, Vector3 pos, Vector3 lookAt);
  1074. void SendDirPlacesReply(UUID queryID, DirPlacesReplyData[] data);
  1075. void SendDirPeopleReply(UUID queryID, DirPeopleReplyData[] data);
  1076. void SendDirEventsReply(UUID queryID, DirEventsReplyData[] data);
  1077. void SendDirGroupsReply(UUID queryID, DirGroupsReplyData[] data);
  1078. void SendDirClassifiedReply(UUID queryID, DirClassifiedReplyData[] data);
  1079. void SendDirLandReply(UUID queryID, DirLandReplyData[] data);
  1080. void SendDirPopularReply(UUID queryID, DirPopularReplyData[] data);
  1081. void SendEventInfoReply(EventData info);
  1082. void SendMapItemReply(mapItemReply[] replies, uint mapitemtype, uint flags);
  1083. void SendAvatarGroupsReply(UUID avatarID, GroupMembershipData[] data);
  1084. void SendAgentGroupDataUpdate(UUID avatarID, GroupMembershipData[] data);
  1085. void SendOfferCallingCard(UUID srcID, UUID transactionID);
  1086. void SendAcceptCallingCard(UUID transactionID);
  1087. void SendDeclineCallingCard(UUID transactionID);
  1088. void SendTerminateFriend(UUID exFriendID);
  1089. void SendAvatarClassifiedReply(UUID targetID, UUID[] classifiedID, string[] name);
  1090. void SendClassifiedInfoReply(UUID classifiedID, UUID creatorID, uint creationDate, uint expirationDate, uint category, string name, string description, UUID parcelID, uint parentEstate, UUID snapshotID, string simName, Vector3 globalPos, string parcelName, byte classifiedFlags, int price);
  1091. void SendAgentDropGroup(UUID groupID);
  1092. void RefreshGroupMembership();
  1093. void UpdateGroupMembership(GroupMembershipData[] data);
  1094. void GroupMembershipRemove(UUID GroupID);
  1095. void GroupMembershipAddReplace(UUID GroupID,ulong GroupPowers);
  1096. void SendAvatarNotesReply(UUID targetID, string text);
  1097. void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks);
  1098. void SendPickInfoReply(UUID pickID,UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled);
  1099. void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds);
  1100. void SendParcelDwellReply(int localID, UUID parcelID, float dwell);
  1101. void SendUserInfoReply(bool imViaEmail, bool visible, string email);
  1102. void SendUseCachedMuteList();
  1103. void SendEmpytMuteList();
  1104. void SendMuteListUpdate(string filename);
  1105. void SendGroupActiveProposals(UUID groupID, UUID transactionID, GroupActiveProposals[] Proposals);
  1106. void SendGroupVoteHistory(UUID groupID, UUID transactionID, GroupVoteHistory[] Votes);
  1107. bool AddGenericPacketHandler(string MethodName, GenericMessage handler);
  1108. void SendRebakeAvatarTextures(UUID textureID);
  1109. void SendAvatarInterestsReply(UUID avatarID, uint wantMask, string wantText, uint skillsMask, string skillsText, string languages);
  1110. void SendGroupAccountingDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID, int amt);
  1111. void SendGroupAccountingSummary(IClientAPI sender,UUID groupID, uint moneyAmt, int totalTier, int usedTier);
  1112. void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt);
  1113. void SendChangeUserRights(UUID agentID, UUID friendID, int rights);
  1114. void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId);
  1115. void SendAgentTerseUpdate(ISceneEntity presence);
  1116. void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data);
  1117. uint GetViewerCaps();
  1118. }
  1119. }