IClientAPI.cs 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048
  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 OpenSim 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 libsecondlife;
  31. using libsecondlife.Packets;
  32. namespace OpenSim.Framework
  33. {
  34. // Base Args Interface
  35. public interface IEventArgs
  36. {
  37. IScene Scene { get; set; }
  38. IClientAPI Sender { get; set; }
  39. }
  40. public delegate void ViewerEffectEventHandler(IClientAPI sender, List<ViewerEffectEventHandlerArg> args);
  41. public delegate void ChatFromViewer(Object sender, ChatFromViewerArgs e);
  42. public enum ChatTypeEnum
  43. {
  44. Whisper = 0,
  45. Say = 1,
  46. Shout = 2,
  47. // 3 is an obsolete version of Say
  48. StartTyping = 4,
  49. StopTyping = 5,
  50. DebugChannel = 6,
  51. Region = 7,
  52. Owner = 8,
  53. Broadcast = 0xFF
  54. }
  55. public enum ThrottleOutPacketType : int
  56. {
  57. Resend = 0,
  58. Land = 1,
  59. Wind = 2,
  60. Cloud = 3,
  61. Task = 4,
  62. Texture = 5,
  63. Asset = 6,
  64. Unknown = 7, // Also doubles as 'do not throttle'
  65. Back = 8
  66. }
  67. /// <summary>
  68. /// ChatFromViewer Arguments
  69. /// </summary>
  70. public class ChatFromViewerArgs : EventArgs, IEventArgs
  71. {
  72. protected int m_channel;
  73. protected string m_from;
  74. protected string m_message;
  75. protected LLVector3 m_position;
  76. protected IScene m_scene;
  77. protected IClientAPI m_sender;
  78. protected object m_senderObject;
  79. protected ChatTypeEnum m_type;
  80. protected LLUUID m_fromID;
  81. public ChatFromViewerArgs()
  82. {
  83. m_position = new LLVector3();
  84. }
  85. /// <summary>
  86. /// The message sent by the user
  87. /// </summary>
  88. public string Message
  89. {
  90. get { return m_message; }
  91. set { m_message = value; }
  92. }
  93. /// <summary>
  94. /// The type of message, eg say, shout, broadcast.
  95. /// </summary>
  96. public ChatTypeEnum Type
  97. {
  98. get { return m_type; }
  99. set { m_type = value; }
  100. }
  101. /// <summary>
  102. /// Which channel was this message sent on? Different channels may have different listeners. Public chat is on channel zero.
  103. /// </summary>
  104. public int Channel
  105. {
  106. get { return m_channel; }
  107. set { m_channel = value; }
  108. }
  109. /// <summary>
  110. /// The position of the sender at the time of the message broadcast.
  111. /// </summary>
  112. public LLVector3 Position
  113. {
  114. get { return m_position; }
  115. set { m_position = value; }
  116. }
  117. /// <summary>
  118. /// The name of the sender (needed for scripts)
  119. /// </summary>
  120. public string From
  121. {
  122. get { return m_from; }
  123. set { m_from = value; }
  124. }
  125. #region IEventArgs Members
  126. /// TODO: Sender and SenderObject should just be Sender and of
  127. /// type IChatSender
  128. /// <summary>
  129. /// The client responsible for sending the message, or null.
  130. /// </summary>
  131. public IClientAPI Sender
  132. {
  133. get { return m_sender; }
  134. set { m_sender = value; }
  135. }
  136. /// <summary>
  137. /// The object responsible for sending the message, or null.
  138. /// </summary>
  139. public object SenderObject
  140. {
  141. get { return m_senderObject; }
  142. set { m_senderObject = value; }
  143. }
  144. public LLUUID SenderUUID
  145. {
  146. get { return m_fromID; }
  147. set { m_fromID = value; }
  148. }
  149. /// <summary>
  150. ///
  151. /// </summary>
  152. public IScene Scene
  153. {
  154. get { return m_scene; }
  155. set { m_scene = value; }
  156. }
  157. #endregion
  158. }
  159. public class TextureRequestArgs : EventArgs
  160. {
  161. private sbyte m_discardLevel;
  162. private uint m_packetNumber;
  163. private float m_priority;
  164. protected LLUUID m_requestedAssetID;
  165. public float Priority
  166. {
  167. get { return m_priority; }
  168. set { m_priority = value; }
  169. }
  170. /// <summary>
  171. ///
  172. /// </summary>
  173. public uint PacketNumber
  174. {
  175. get { return m_packetNumber; }
  176. set { m_packetNumber = value; }
  177. }
  178. /// <summary>
  179. ///
  180. /// </summary>
  181. public sbyte DiscardLevel
  182. {
  183. get { return m_discardLevel; }
  184. set { m_discardLevel = value; }
  185. }
  186. /// <summary>
  187. ///
  188. /// </summary>
  189. public LLUUID RequestedAssetID
  190. {
  191. get { return m_requestedAssetID; }
  192. set { m_requestedAssetID = value; }
  193. }
  194. }
  195. public class AvatarWearingArgs : EventArgs
  196. {
  197. private List<Wearable> m_nowWearing = new List<Wearable>();
  198. /// <summary>
  199. ///
  200. /// </summary>
  201. public List<Wearable> NowWearing
  202. {
  203. get { return m_nowWearing; }
  204. set { m_nowWearing = value; }
  205. }
  206. #region Nested type: Wearable
  207. public class Wearable
  208. {
  209. public LLUUID ItemID = new LLUUID("00000000-0000-0000-0000-000000000000");
  210. public byte Type = 0;
  211. public Wearable(LLUUID itemId, byte type)
  212. {
  213. ItemID = itemId;
  214. Type = type;
  215. }
  216. }
  217. #endregion
  218. }
  219. public class ViewerEffectEventHandlerArg : EventArgs
  220. {
  221. public LLUUID AgentID;
  222. public byte[] Color;
  223. public float Duration;
  224. public LLUUID ID;
  225. public byte Type;
  226. public byte[] TypeData;
  227. }
  228. public class LandUpdateArgs : EventArgs
  229. {
  230. public LLUUID AuthBuyerID;
  231. public Parcel.ParcelCategory Category;
  232. public string Desc;
  233. public LLUUID GroupID;
  234. public byte LandingType;
  235. public byte MediaAutoScale;
  236. public LLUUID MediaID;
  237. public string MediaURL;
  238. public string MusicURL;
  239. public string Name;
  240. public uint ParcelFlags;
  241. public float PassHours;
  242. public int PassPrice;
  243. public int SalePrice;
  244. public LLUUID SnapshotID;
  245. public LLVector3 UserLocation;
  246. public LLVector3 UserLookAt;
  247. }
  248. public class RegionHandshakeArgs : EventArgs
  249. {
  250. public bool isEstateManager;
  251. public float billableFactor;
  252. public float terrainHeightRange0;
  253. public float terrainHeightRange1;
  254. public float terrainHeightRange2;
  255. public float terrainHeightRange3;
  256. public float terrainStartHeight0;
  257. public float terrainStartHeight1;
  258. public float terrainStartHeight2;
  259. public float terrainStartHeight3;
  260. public byte simAccess;
  261. public float waterHeight;
  262. public uint regionFlags;
  263. public string regionName;
  264. public LLUUID SimOwner;
  265. public LLUUID terrainBase0;
  266. public LLUUID terrainBase1;
  267. public LLUUID terrainBase2;
  268. public LLUUID terrainBase3;
  269. public LLUUID terrainDetail0;
  270. public LLUUID terrainDetail1;
  271. public LLUUID terrainDetail2;
  272. public LLUUID terrainDetail3;
  273. }
  274. public class RegionInfoForEstateMenuArgs : EventArgs
  275. {
  276. public float billableFactor;
  277. public uint estateID;
  278. public byte maxAgents;
  279. public float objectBonusFactor;
  280. public uint parentEstateID;
  281. public int pricePerMeter;
  282. public int redirectGridX;
  283. public int redirectGridY;
  284. public uint regionFlags;
  285. public byte simAccess;
  286. public float sunHour;
  287. public float terrainLowerLimit;
  288. public float terrainRaiseLimit;
  289. public bool useEstateSun;
  290. public float waterHeight;
  291. public string simName;
  292. }
  293. public class UpdateShapeArgs : EventArgs
  294. {
  295. public uint ObjectLocalID;
  296. public ushort PathBegin;
  297. public byte PathCurve;
  298. public ushort PathEnd;
  299. public sbyte PathRadiusOffset;
  300. public byte PathRevolutions;
  301. public byte PathScaleX;
  302. public byte PathScaleY;
  303. public byte PathShearX;
  304. public byte PathShearY;
  305. public sbyte PathSkew;
  306. public sbyte PathTaperX;
  307. public sbyte PathTaperY;
  308. public sbyte PathTwist;
  309. public sbyte PathTwistBegin;
  310. public ushort ProfileBegin;
  311. public byte ProfileCurve;
  312. public ushort ProfileEnd;
  313. public ushort ProfileHollow;
  314. }
  315. public class RequestAssetArgs : EventArgs
  316. {
  317. public int ChannelType;
  318. public float Priority;
  319. public int SourceType;
  320. public LLUUID TransferID;
  321. }
  322. public class AgentUpdateArgs : EventArgs
  323. {
  324. public LLUUID AgentID;
  325. public LLQuaternion BodyRotation;
  326. public LLVector3 CameraAtAxis;
  327. public LLVector3 CameraCenter;
  328. public LLVector3 CameraLeftAxis;
  329. public LLVector3 CameraUpAxis;
  330. public uint ControlFlags;
  331. public float Far;
  332. public byte Flags;
  333. public LLQuaternion HeadRotation;
  334. public LLUUID SessionID;
  335. public byte State;
  336. }
  337. public class AvatarPickerReplyAgentDataArgs : EventArgs
  338. {
  339. public LLUUID AgentID;
  340. public LLUUID QueryID;
  341. }
  342. public class AvatarPickerReplyDataArgs : EventArgs
  343. {
  344. public LLUUID AvatarID;
  345. public byte[] FirstName;
  346. public byte[] LastName;
  347. }
  348. public delegate void TextureRequest(Object sender, TextureRequestArgs e);
  349. public delegate void AvatarNowWearing(Object sender, AvatarWearingArgs e);
  350. public delegate void ImprovedInstantMessage(IClientAPI remoteclient,
  351. LLUUID fromAgentID, LLUUID fromAgentSession, LLUUID toAgentID, LLUUID imSessionID, uint timestamp,
  352. string fromAgentName, string message, byte dialog, bool fromGroup, byte offline, uint ParentEstateID,
  353. LLVector3 Position, LLUUID RegionID, byte[] binaryBucket); // This shouldn't be cut down...
  354. // especially if we're ever going to implement groups, presence, estate message dialogs...
  355. public delegate void RezObject(IClientAPI remoteClient, LLUUID itemID, LLVector3 RayEnd, LLVector3 RayStart,
  356. LLUUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
  357. uint EveryoneMask, uint GroupMask, uint NextOwnerMask, uint ItemFlags,
  358. bool RezSelected, bool RemoveItem, LLUUID fromTaskID);
  359. public delegate void RezSingleAttachmentFromInv(IClientAPI remoteClient, LLUUID itemID, uint AttachmentPt,
  360. uint ItemFlags, uint NextOwnerMask);
  361. public delegate void ObjectAttach(IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, LLQuaternion rot);
  362. public delegate void ModifyTerrain(
  363. float height, float seconds, byte size, byte action, float north, float west, float south, float east,
  364. IClientAPI remoteClient);
  365. public delegate void SetAppearance(byte[] texture, List<byte> visualParamList);
  366. public delegate void StartAnim(IClientAPI remoteClient, LLUUID animID);
  367. public delegate void StopAnim(IClientAPI remoteClient, LLUUID animID);
  368. public delegate void LinkObjects(IClientAPI remoteClient, uint parent, List<uint> children);
  369. public delegate void DelinkObjects(List<uint> primIds);
  370. public delegate void RequestMapBlocks(IClientAPI remoteClient, int minX, int minY, int maxX, int maxY);
  371. public delegate void RequestMapName(IClientAPI remoteClient, string mapName);
  372. public delegate void TeleportLocationRequest(
  373. IClientAPI remoteClient, ulong regionHandle, LLVector3 position, LLVector3 lookAt, uint flags);
  374. public delegate void TeleportLandmarkRequest(
  375. IClientAPI remoteClient, ulong regionHandle, LLVector3 position);
  376. public delegate void DisconnectUser();
  377. public delegate void RequestAvatarProperties(IClientAPI remoteClient, LLUUID avatarID);
  378. public delegate void UpdateAvatarProperties(IClientAPI remoteClient, UserProfileData ProfileData);
  379. public delegate void SetAlwaysRun(IClientAPI remoteClient, bool SetAlwaysRun);
  380. public delegate void GenericCall2();
  381. // really don't want to be passing packets in these events, so this is very temporary.
  382. public delegate void GenericCall4(Packet packet, IClientAPI remoteClient);
  383. public delegate void GenericCall5(IClientAPI remoteClient, bool status);
  384. public delegate void GenericCall7(IClientAPI remoteClient, uint localID, string message);
  385. public delegate void UpdateShape(LLUUID agentID, uint localID, UpdateShapeArgs shapeBlock);
  386. public delegate void ObjectExtraParams(LLUUID agentID, uint localID, ushort type, bool inUse, byte[] data);
  387. public delegate void ObjectSelect(uint localID, IClientAPI remoteClient);
  388. public delegate void RequestObjectPropertiesFamily(
  389. IClientAPI remoteClient, LLUUID AgentID, uint RequestFlags, LLUUID TaskID);
  390. public delegate void ObjectDeselect(uint localID, IClientAPI remoteClient);
  391. public delegate void UpdatePrimFlags(uint localID, Packet packet, IClientAPI remoteClient);
  392. public delegate void UpdatePrimTexture(uint localID, byte[] texture, IClientAPI remoteClient);
  393. public delegate void UpdateVector(uint localID, LLVector3 pos, IClientAPI remoteClient);
  394. public delegate void UpdatePrimRotation(uint localID, LLQuaternion rot, IClientAPI remoteClient);
  395. public delegate void UpdatePrimSingleRotation(uint localID, LLQuaternion rot, IClientAPI remoteClient);
  396. public delegate void UpdatePrimGroupRotation(uint localID, LLVector3 pos, LLQuaternion rot, IClientAPI remoteClient);
  397. public delegate void ObjectDuplicate(uint localID, LLVector3 offset, uint dupeFlags, LLUUID AgentID, LLUUID GroupID);
  398. public delegate void ObjectDuplicateOnRay(uint localID, uint dupeFlags, LLUUID AgentID, LLUUID GroupID,
  399. LLUUID RayTargetObj, LLVector3 RayEnd, LLVector3 RayStart,
  400. bool BypassRaycast, bool RayEndIsIntersection, bool CopyCenters, bool CopyRotates);
  401. public delegate void StatusChange(bool status);
  402. public delegate void NewAvatar(IClientAPI remoteClient, LLUUID agentID, bool status);
  403. public delegate void UpdateAgent(IClientAPI remoteClient, AgentUpdateArgs agentData);
  404. public delegate void AgentRequestSit(IClientAPI remoteClient, LLUUID agentID, LLUUID targetID, LLVector3 offset);
  405. public delegate void AgentSit(IClientAPI remoteClient, LLUUID agentID);
  406. public delegate void AvatarPickerRequest(IClientAPI remoteClient, LLUUID agentdata, LLUUID queryID, string UserQuery
  407. );
  408. public delegate void MoveObject(LLUUID objectID, LLVector3 offset, LLVector3 grapPos, IClientAPI remoteClient);
  409. public delegate void ParcelAccessListRequest(
  410. LLUUID agentID, LLUUID sessionID, uint flags, int sequenceID, int landLocalID, IClientAPI remote_client);
  411. public delegate void ParcelAccessListUpdateRequest(
  412. LLUUID agentID, LLUUID sessionID, uint flags, int landLocalID, List<ParcelManager.ParcelAccessEntry> entries,
  413. IClientAPI remote_client);
  414. public delegate void ParcelPropertiesRequest(
  415. int start_x, int start_y, int end_x, int end_y, int sequence_id, bool snap_selection, IClientAPI remote_client);
  416. public delegate void ParcelDivideRequest(int west, int south, int east, int north, IClientAPI remote_client);
  417. public delegate void ParcelJoinRequest(int west, int south, int east, int north, IClientAPI remote_client);
  418. public delegate void ParcelPropertiesUpdateRequest(LandUpdateArgs args, int local_id, IClientAPI remote_client);
  419. public delegate void ParcelSelectObjects(int land_local_id, int request_type, IClientAPI remote_client);
  420. public delegate void ParcelObjectOwnerRequest(int local_id, IClientAPI remote_client);
  421. public delegate void ParcelAbandonRequest(int local_id, IClientAPI remote_client);
  422. public delegate void ParcelReturnObjectsRequest(int local_id, uint return_type, LLUUID[] agent_ids, LLUUID[] selected_ids, IClientAPI remote_client);
  423. public delegate void EstateOwnerMessageRequest(LLUUID AgentID, LLUUID SessionID, LLUUID TransactionID, LLUUID Invoice, byte[] Method, byte[][] Parameters, IClientAPI remote_client);
  424. public delegate void RegionInfoRequest(IClientAPI remote_client);
  425. public delegate void EstateCovenantRequest(IClientAPI remote_client);
  426. public delegate void UUIDNameRequest(LLUUID id, IClientAPI remote_client);
  427. public delegate void AddNewPrim(
  428. LLUUID ownerID, LLVector3 RayEnd, LLQuaternion rot, PrimitiveBaseShape shape, byte bypassRaycast, LLVector3 RayStart, LLUUID RayTargetID,
  429. byte RayEndIsIntersection);
  430. public delegate void RequestGodlikePowers(LLUUID AgentID, LLUUID SessionID, LLUUID token, bool GodLike, IClientAPI remote_client);
  431. public delegate void GodKickUser(
  432. LLUUID GodAgentID, LLUUID GodSessionID, LLUUID AgentID, uint kickflags, byte[] reason);
  433. public delegate void CreateInventoryFolder(
  434. IClientAPI remoteClient, LLUUID folderID, ushort folderType, string folderName, LLUUID parentID);
  435. public delegate void UpdateInventoryFolder(
  436. IClientAPI remoteClient, LLUUID folderID, ushort type, string name, LLUUID parentID);
  437. public delegate void MoveInventoryFolder(
  438. IClientAPI remoteClient, LLUUID folderID, LLUUID parentID);
  439. public delegate void CreateNewInventoryItem(
  440. IClientAPI remoteClient, LLUUID transActionID, LLUUID folderID, uint callbackID, string description, string name,
  441. sbyte invType, sbyte type, byte wearableType, uint nextOwnerMask);
  442. public delegate void FetchInventoryDescendents(
  443. IClientAPI remoteClient, LLUUID folderID, LLUUID ownerID, bool fetchFolders, bool fetchItems, int sortOrder);
  444. public delegate void PurgeInventoryDescendents(
  445. IClientAPI remoteClient, LLUUID folderID);
  446. public delegate void FetchInventory(IClientAPI remoteClient, LLUUID itemID, LLUUID ownerID);
  447. public delegate void RequestTaskInventory(IClientAPI remoteClient, uint localID);
  448. /* public delegate void UpdateInventoryItem(
  449. IClientAPI remoteClient, LLUUID transactionID, LLUUID itemID, string name, string description,
  450. uint nextOwnerMask);*/
  451. public delegate void UpdateInventoryItem(
  452. IClientAPI remoteClient, LLUUID transactionID, LLUUID itemID, InventoryItemBase itemUpd);
  453. public delegate void CopyInventoryItem(
  454. IClientAPI remoteClient, uint callbackID, LLUUID oldAgentID, LLUUID oldItemID, LLUUID newFolderID,
  455. string newName);
  456. public delegate void MoveInventoryItem(
  457. IClientAPI remoteClient, LLUUID folderID, LLUUID itemID, int length, string newName);
  458. public delegate void RemoveInventoryItem(
  459. IClientAPI remoteClient, LLUUID itemID);
  460. public delegate void RemoveInventoryFolder(
  461. IClientAPI remoteClient, LLUUID folderID);
  462. public delegate void RequestAsset(IClientAPI remoteClient, RequestAssetArgs transferRequest);
  463. public delegate void RezScript(IClientAPI remoteClient, InventoryItemBase item, LLUUID transactionID, uint localID);
  464. public delegate void UpdateTaskInventory(IClientAPI remoteClient, LLUUID transactionID, TaskInventoryItem item, uint localID);
  465. public delegate void MoveTaskInventory(IClientAPI remoteClient, LLUUID folderID, uint localID, LLUUID itemID);
  466. public delegate void RemoveTaskInventory(IClientAPI remoteClient, LLUUID itemID, uint localID);
  467. public delegate void UDPAssetUploadRequest(
  468. IClientAPI remoteClient, LLUUID assetID, LLUUID transaction, sbyte type, byte[] data, bool storeLocal,
  469. bool tempFile);
  470. public delegate void XferReceive(IClientAPI remoteClient, ulong xferID, uint packetID, byte[] data);
  471. public delegate void RequestXfer(IClientAPI remoteClient, ulong xferID, string fileName);
  472. public delegate void ConfirmXfer(IClientAPI remoteClient, ulong xferID, uint packetID);
  473. public delegate void FriendActionDelegate(IClientAPI remoteClient, LLUUID agentID, LLUUID transactionID, List<LLUUID> callingCardFolders);
  474. public delegate void FriendshipTermination(IClientAPI remoteClient, LLUUID agentID, LLUUID ExID);
  475. public delegate void PacketStats(int inPackets, int outPackets, int unAckedBytes);
  476. public delegate void MoneyTransferRequest(LLUUID sourceID, LLUUID destID, int amount, int transactionType, string description);
  477. public delegate void ParcelBuy(LLUUID agentId, LLUUID groupId, bool final, bool groupOwned,
  478. bool removeContribution, int parcelLocalID, int parcelArea, int parcelPrice, bool authenticated);
  479. // We keep all this information for fraud purposes in the future.
  480. public delegate void MoneyBalanceRequest(IClientAPI remoteClient, LLUUID agentID, LLUUID sessionID, LLUUID TransactionID);
  481. public delegate void ObjectPermissions(IClientAPI controller, LLUUID agentID, LLUUID sessionID, byte field, uint localId, uint mask, byte set);
  482. public delegate void EconomyDataRequest(LLUUID agentID);
  483. public delegate void ObjectIncludeInSearch(IClientAPI remoteClient, bool IncludeInSearch, uint localID);
  484. public delegate void ScriptAnswer(IClientAPI remoteClient, LLUUID objectID, LLUUID itemID, int answer);
  485. public delegate void RequestPayPrice(IClientAPI remoteClient, LLUUID objectID);
  486. public delegate void ForceReleaseControls(IClientAPI remoteClient, LLUUID agentID);
  487. public delegate void GodLandStatRequest(int parcelID, uint reportType, uint requestflags, string filter, IClientAPI remoteClient);
  488. //Estate Requests
  489. public delegate void DetailedEstateDataRequest(IClientAPI remoteClient, LLUUID invoice);
  490. public delegate void SetEstateFlagsRequest(bool blockTerraform, bool noFly, bool allowDamage, bool blockLandResell, int maxAgents, float objectBonusFactor, int matureLevel, bool restrictPushObject, bool allowParcelChanges);
  491. public delegate void SetEstateTerrainBaseTexture(IClientAPI remoteClient, int corner, LLUUID side);
  492. public delegate void SetEstateTerrainDetailTexture(IClientAPI remoteClient, int corner, LLUUID side);
  493. public delegate void SetEstateTerrainTextureHeights(IClientAPI remoteClient, int corner, float lowVal, float highVal);
  494. public delegate void CommitEstateTerrainTextureRequest(IClientAPI remoteClient);
  495. public delegate void SetRegionTerrainSettings(float waterHeight, float terrainRaiseLimit, float terrainLowerLimit, bool fixedSun, float sunHour);
  496. public delegate void EstateRestartSimRequest(IClientAPI remoteClient, int secondsTilReboot);
  497. public delegate void EstateChangeCovenantRequest(IClientAPI remoteClient, LLUUID newCovenantID);
  498. public delegate void UpdateEstateAccessDeltaRequest(IClientAPI remote_client, LLUUID invoice, int estateAccessType, LLUUID user);
  499. public delegate void SimulatorBlueBoxMessageRequest(IClientAPI remoteClient, LLUUID invoice, LLUUID senderID, LLUUID sessionID, string senderName, string message);
  500. public delegate void EstateBlueBoxMessageRequest(IClientAPI remoteClient, LLUUID invoice, LLUUID senderID, LLUUID sessionID, string senderName, string message);
  501. public delegate void EstateDebugRegionRequest(IClientAPI remoteClient, LLUUID invoice, LLUUID senderID, bool scripted, bool collisionEvents, bool physics);
  502. public delegate void EstateTeleportOneUserHomeRequest(IClientAPI remoteClient, LLUUID invoice, LLUUID senderID, LLUUID prey);
  503. public delegate void ScriptReset(IClientAPI remoteClient, LLUUID objectID, LLUUID itemID);
  504. public interface IClientAPI
  505. {
  506. LLVector3 StartPos { get; set; }
  507. LLUUID AgentId { get; }
  508. LLUUID SessionId { get; }
  509. LLUUID SecureSessionId { get; }
  510. LLUUID ActiveGroupId { get; }
  511. string ActiveGroupName { get; }
  512. ulong ActiveGroupPowers { get; }
  513. string FirstName { get; }
  514. string LastName { get; }
  515. [Obsolete("LLClientView Specific - Replace with ???")]
  516. int NextAnimationSequenceNumber { get; }
  517. /// <summary>
  518. /// Returns the full name of the agent/avatar represented by this client
  519. /// </summary>
  520. /// <param name="newPack"></param>
  521. /// <param name="packType"></param>
  522. string Name { get; }
  523. bool IsActive
  524. {
  525. get;
  526. set;
  527. }
  528. [Obsolete("LLClientView Specific - Circuits are unique to LLClientView")]
  529. uint CircuitCode { get; }
  530. [Obsolete("LLClientView Specific - Replace with more bare-bones arguments.")]
  531. event ImprovedInstantMessage OnInstantMessage;
  532. [Obsolete("LLClientView Specific - Replace with more bare-bones arguments. Rename OnChat.")]
  533. event ChatFromViewer OnChatFromViewer;
  534. [Obsolete("LLClientView Specific - Replace with more bare-bones arguments.")]
  535. event TextureRequest OnRequestTexture;
  536. [Obsolete("LLClientView Specific - Remove bitbuckets. Adam, can you be more specific here.. as I don't see any bit buckets.")]
  537. event RezObject OnRezObject;
  538. [Obsolete("LLClientView Specific - Replace with more suitable arguments.")]
  539. event ModifyTerrain OnModifyTerrain;
  540. [Obsolete("LLClientView Specific.")]
  541. event SetAppearance OnSetAppearance;
  542. [Obsolete("LLClientView Specific - Replace and rename OnAvatarUpdate. Difference from SetAppearance?")]
  543. event AvatarNowWearing OnAvatarNowWearing;
  544. event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
  545. event UUIDNameRequest OnDetachAttachmentIntoInv;
  546. event ObjectAttach OnObjectAttach;
  547. event ObjectDeselect OnObjectDetach;
  548. event StartAnim OnStartAnim;
  549. event StopAnim OnStopAnim;
  550. event LinkObjects OnLinkObjects;
  551. event DelinkObjects OnDelinkObjects;
  552. event RequestMapBlocks OnRequestMapBlocks;
  553. event RequestMapName OnMapNameRequest;
  554. event TeleportLocationRequest OnTeleportLocationRequest;
  555. event DisconnectUser OnDisconnectUser;
  556. event RequestAvatarProperties OnRequestAvatarProperties;
  557. event SetAlwaysRun OnSetAlwaysRun;
  558. event TeleportLandmarkRequest OnTeleportLandmarkRequest;
  559. event GenericCall4 OnDeRezObject;
  560. event Action<IClientAPI> OnRegionHandShakeReply;
  561. event GenericCall2 OnRequestWearables;
  562. event GenericCall2 OnCompleteMovementToRegion;
  563. event UpdateAgent OnAgentUpdate;
  564. event AgentRequestSit OnAgentRequestSit;
  565. event AgentSit OnAgentSit;
  566. event AvatarPickerRequest OnAvatarPickerRequest;
  567. event Action<IClientAPI> OnRequestAvatarsData;
  568. event AddNewPrim OnAddPrim;
  569. event FetchInventory OnAgentDataUpdateRequest;
  570. event FetchInventory OnUserInfoRequest;
  571. event TeleportLocationRequest OnSetStartLocationRequest;
  572. event RequestGodlikePowers OnRequestGodlikePowers;
  573. event GodKickUser OnGodKickUser;
  574. event ObjectDuplicate OnObjectDuplicate;
  575. event ObjectDuplicateOnRay OnObjectDuplicateOnRay;
  576. event UpdateVector OnGrabObject;
  577. event ObjectSelect OnDeGrabObject;
  578. event MoveObject OnGrabUpdate;
  579. event UpdateShape OnUpdatePrimShape;
  580. event ObjectExtraParams OnUpdateExtraParams;
  581. event ObjectSelect OnObjectSelect;
  582. event ObjectDeselect OnObjectDeselect;
  583. event GenericCall7 OnObjectDescription;
  584. event GenericCall7 OnObjectName;
  585. event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily;
  586. event UpdatePrimFlags OnUpdatePrimFlags;
  587. event UpdatePrimTexture OnUpdatePrimTexture;
  588. event UpdateVector OnUpdatePrimGroupPosition;
  589. event UpdateVector OnUpdatePrimSinglePosition;
  590. event UpdatePrimRotation OnUpdatePrimGroupRotation;
  591. event UpdatePrimSingleRotation OnUpdatePrimSingleRotation;
  592. event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation;
  593. event UpdateVector OnUpdatePrimScale;
  594. event UpdateVector OnUpdatePrimGroupScale;
  595. event StatusChange OnChildAgentStatus;
  596. event GenericCall2 OnStopMovement;
  597. event Action<LLUUID> OnRemoveAvatar;
  598. event ObjectPermissions OnObjectPermissions;
  599. event CreateNewInventoryItem OnCreateNewInventoryItem;
  600. event CreateInventoryFolder OnCreateNewInventoryFolder;
  601. event UpdateInventoryFolder OnUpdateInventoryFolder;
  602. event MoveInventoryFolder OnMoveInventoryFolder;
  603. event FetchInventoryDescendents OnFetchInventoryDescendents;
  604. event PurgeInventoryDescendents OnPurgeInventoryDescendents;
  605. event FetchInventory OnFetchInventory;
  606. event RequestTaskInventory OnRequestTaskInventory;
  607. event UpdateInventoryItem OnUpdateInventoryItem;
  608. event CopyInventoryItem OnCopyInventoryItem;
  609. event MoveInventoryItem OnMoveInventoryItem;
  610. event RemoveInventoryFolder OnRemoveInventoryFolder;
  611. event RemoveInventoryItem OnRemoveInventoryItem;
  612. event UDPAssetUploadRequest OnAssetUploadRequest;
  613. event XferReceive OnXferReceive;
  614. event RequestXfer OnRequestXfer;
  615. event ConfirmXfer OnConfirmXfer;
  616. event RezScript OnRezScript;
  617. event UpdateTaskInventory OnUpdateTaskInventory;
  618. event MoveTaskInventory OnMoveTaskItem;
  619. event RemoveTaskInventory OnRemoveTaskItem;
  620. event RequestAsset OnRequestAsset;
  621. event UUIDNameRequest OnNameFromUUIDRequest;
  622. event ParcelAccessListRequest OnParcelAccessListRequest;
  623. event ParcelAccessListUpdateRequest OnParcelAccessListUpdateRequest;
  624. event ParcelPropertiesRequest OnParcelPropertiesRequest;
  625. event ParcelDivideRequest OnParcelDivideRequest;
  626. event ParcelJoinRequest OnParcelJoinRequest;
  627. event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest;
  628. event ParcelSelectObjects OnParcelSelectObjects;
  629. event ParcelObjectOwnerRequest OnParcelObjectOwnerRequest;
  630. event ParcelAbandonRequest OnParcelAbandonRequest;
  631. event ParcelReturnObjectsRequest OnParcelReturnObjectsRequest;
  632. event RegionInfoRequest OnRegionInfoRequest;
  633. event EstateCovenantRequest OnEstateCovenantRequest;
  634. event FriendActionDelegate OnApproveFriendRequest;
  635. event FriendActionDelegate OnDenyFriendRequest;
  636. event FriendshipTermination OnTerminateFriendship;
  637. event PacketStats OnPacketStats;
  638. // Financial packets
  639. event MoneyTransferRequest OnMoneyTransferRequest;
  640. event EconomyDataRequest OnEconomyDataRequest;
  641. event MoneyBalanceRequest OnMoneyBalanceRequest;
  642. event UpdateAvatarProperties OnUpdateAvatarProperties;
  643. event ParcelBuy OnParcelBuy;
  644. event RequestPayPrice OnRequestPayPrice;
  645. event ObjectIncludeInSearch OnObjectIncludeInSearch;
  646. event UUIDNameRequest OnTeleportHomeRequest;
  647. event ScriptAnswer OnScriptAnswer;
  648. event AgentSit OnUndo;
  649. event ForceReleaseControls OnForceReleaseControls;
  650. event GodLandStatRequest OnLandStatRequest;
  651. event DetailedEstateDataRequest OnDetailedEstateDataRequest;
  652. event SetEstateFlagsRequest OnSetEstateFlagsRequest;
  653. event SetEstateTerrainBaseTexture OnSetEstateTerrainBaseTexture;
  654. event SetEstateTerrainDetailTexture OnSetEstateTerrainDetailTexture;
  655. event SetEstateTerrainTextureHeights OnSetEstateTerrainTextureHeights;
  656. event CommitEstateTerrainTextureRequest OnCommitEstateTerrainTextureRequest;
  657. event SetRegionTerrainSettings OnSetRegionTerrainSettings;
  658. event EstateRestartSimRequest OnEstateRestartSimRequest;
  659. event EstateChangeCovenantRequest OnEstateChangeCovenantRequest;
  660. event UpdateEstateAccessDeltaRequest OnUpdateEstateAccessDeltaRequest;
  661. event SimulatorBlueBoxMessageRequest OnSimulatorBlueBoxMessageRequest;
  662. event EstateBlueBoxMessageRequest OnEstateBlueBoxMessageRequest;
  663. event EstateDebugRegionRequest OnEstateDebugRegionRequest;
  664. event EstateTeleportOneUserHomeRequest OnEstateTeleportOneUserHomeRequest;
  665. event UUIDNameRequest OnUUIDGroupNameRequest;
  666. event RequestObjectPropertiesFamily OnObjectGroupRequest;
  667. event ScriptReset OnScriptReset;
  668. [Obsolete("IClientAPI.OutPacket SHOULD NOT EXIST outside of LLClientView please refactor appropriately.")]
  669. void OutPacket(Packet newPack, ThrottleOutPacketType packType);
  670. void SendWearables(AvatarWearable[] wearables, int serial);
  671. void SendAppearance(LLUUID agentID, byte[] visualParams, byte[] textureEntry);
  672. void SendStartPingCheck(byte seq);
  673. void SendKillObject(ulong regionHandle, uint localID);
  674. void SendAnimations(LLUUID[] animID, int[] seqs, LLUUID sourceAgentId);
  675. void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args);
  676. void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID, byte source, byte audible);
  677. void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID, byte source, byte audible);
  678. void SendInstantMessage(LLUUID fromAgent, LLUUID fromAgentSession, string message, LLUUID toAgent,
  679. LLUUID imSessionID, string fromName, byte dialog, uint timeStamp);
  680. void SendInstantMessage(LLUUID fromAgent, LLUUID fromAgentSession, string message, LLUUID toAgent,
  681. LLUUID imSessionID, string fromName, byte dialog, uint timeStamp,
  682. byte[] binaryBucket);
  683. void SendLayerData(float[] map);
  684. void SendLayerData(int px, int py, float[] map);
  685. void MoveAgentIntoRegion(RegionInfo regInfo, LLVector3 pos, LLVector3 look);
  686. void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint);
  687. AgentCircuitData RequestClientInfo();
  688. void CrossRegion(ulong newRegionHandle, LLVector3 pos, LLVector3 lookAt, IPEndPoint newRegionExternalEndPoint,
  689. string capsURL);
  690. void SendMapBlock(List<MapBlockData> mapBlocks);
  691. void SendLocalTeleport(LLVector3 position, LLVector3 lookAt, uint flags);
  692. void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, uint locationID,
  693. uint flags, string capsURL);
  694. void SendTeleportFailed(string reason);
  695. void SendTeleportLocationStart();
  696. void SendMoneyBalance(LLUUID transaction, bool success, byte[] description, int balance);
  697. void SendPayPrice(LLUUID objectID, int[] payPrice);
  698. void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID,
  699. LLVector3 Pos, byte[] textureEntry, uint parentID);
  700. void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position,
  701. LLVector3 velocity, LLQuaternion rotation);
  702. void SendCoarseLocationUpdate(List<LLVector3> CoarseLocations);
  703. void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint);
  704. void SetChildAgentThrottle(byte[] throttle);
  705. void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape,
  706. LLVector3 pos, LLVector3 vel, LLVector3 acc, LLQuaternion rotation, LLVector3 rvel,
  707. uint flags,
  708. LLUUID objectID, LLUUID ownerID, string text, byte[] color, uint parentID, byte[] particleSystem,
  709. byte clickAction, byte[] textureanim, bool attachment, uint AttachPoint, LLUUID AssetId, LLUUID SoundId, double SoundVolume, byte SoundFlags, double SoundRadius);
  710. void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape,
  711. LLVector3 pos, LLVector3 vel, LLVector3 acc, LLQuaternion rotation, LLVector3 rvel,
  712. uint flags, LLUUID objectID, LLUUID ownerID, string text, byte[] color,
  713. uint parentID, byte[] particleSystem, byte clickAction);
  714. void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position,
  715. LLQuaternion rotation, LLVector3 velocity, LLVector3 rotationalvelocity, byte state, LLUUID AssetId);
  716. void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position,
  717. LLQuaternion rotation, LLVector3 velocity, LLVector3 rotationalvelocity);
  718. void SendInventoryFolderDetails(LLUUID ownerID, LLUUID folderID, List<InventoryItemBase> items,
  719. List<InventoryFolderBase> folders, bool fetchFolders,
  720. bool fetchItems);
  721. void SendInventoryItemDetails(LLUUID ownerID, InventoryItemBase item);
  722. /// <summary>
  723. /// Tell the client that we have created the item it requested.
  724. /// </summary>
  725. /// <param name="Item"></param>
  726. void SendInventoryItemCreateUpdate(InventoryItemBase Item);
  727. void SendRemoveInventoryItem(LLUUID itemID);
  728. void SendTakeControls(int controls, bool passToAgent, bool TakeControls);
  729. void SendTaskInventory(LLUUID taskID, short serial, byte[] fileName);
  730. /// <summary>
  731. /// Used by the server to inform the client of a new inventory item. Used when transferring items
  732. /// between avatars, possibly among other things.
  733. /// </summary>
  734. /// <param name="item"></param>
  735. void SendBulkUpdateInventory(InventoryItemBase item);
  736. void SendXferPacket(ulong xferID, uint packet, byte[] data);
  737. void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit,
  738. int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, float PriceObjectScaleFactor,
  739. int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent, int PricePublicObjectDecay,
  740. int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice, float TeleportPriceExponent);
  741. void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data);
  742. void SendAgentDataUpdate(LLUUID agentid, LLUUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle);
  743. void SendPreLoadSound(LLUUID objectID, LLUUID ownerID, LLUUID soundID);
  744. void SendPlayAttachedSound(LLUUID soundID, LLUUID objectID, LLUUID ownerID, float gain, byte flags);
  745. void SendTriggeredSound(LLUUID soundID, LLUUID ownerID, LLUUID objectID, LLUUID parentID, ulong handle, LLVector3 position, float gain);
  746. void SendAttachedSoundGainChange(LLUUID objectID, float gain);
  747. void SendNameReply(LLUUID profileId, string firstname, string lastname);
  748. void SendAlertMessage(string message);
  749. void SendAgentAlertMessage(string message, bool modal);
  750. void SendLoadURL(string objectname, LLUUID objectID, LLUUID ownerID, bool groupOwned, string message, string url);
  751. void SendDialog(string objectname, LLUUID objectID, LLUUID ownerID, string msg, LLUUID textureID, int ch, string[] buttonlabels);
  752. bool AddMoney(int debit);
  753. void SendSunPos(LLVector3 sunPos, LLVector3 sunVel, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear, float OrbitalPosition);
  754. void SendViewerTime(int phase);
  755. LLUUID GetDefaultAnimation(string name);
  756. void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, string charterMember, string flAbout,
  757. uint flags, LLUUID flImageID, LLUUID imageID, string profileURL, LLUUID partnerID);
  758. void SendScriptQuestion(LLUUID taskID, string taskName, string ownerName, LLUUID itemID, int question);
  759. void SendHealth(float health);
  760. void sendEstateManagersList(LLUUID invoice, LLUUID[] EstateManagers, uint estateID);
  761. void sendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args);
  762. void sendEstateCovenantInformation();
  763. void sendDetailedEstateData(LLUUID invoice,string estateName, uint estateID);
  764. void sendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int simObjectCapacity, uint regionFlags);
  765. void sendLandAccessListData(List<LLUUID> avatars, uint accessFlag, int localLandID);
  766. void sendForceClientSelectObjects(List<uint> objectIDs);
  767. void sendLandObjectOwners(Dictionary<LLUUID, int> ownersAndCount);
  768. void sendLandParcelOverlay(byte[] data, int sequence_id);
  769. void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, LLUUID AssetFullID);
  770. void SendConfirmXfer(ulong xferID, uint PacketID);
  771. void SendXferRequest(ulong XferID, short AssetType, LLUUID vFileID, byte FilePath, byte[] FileName);
  772. void SendImagePart(ushort numParts, LLUUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec);
  773. void SendShutdownConnectionNotice();
  774. void SendSimStats(Packet pack);
  775. void SendObjectPropertiesFamilyData(uint RequestFlags, LLUUID ObjectUUID, LLUUID OwnerID, LLUUID GroupID,
  776. uint BaseMask, uint OwnerMask, uint GroupMask, uint EveryoneMask,
  777. uint NextOwnerMask, int OwnershipCost, byte SaleType, int SalePrice, uint Category,
  778. LLUUID LastOwnerID, string ObjectName, string Description);
  779. void SendObjectPropertiesReply(LLUUID ItemID, ulong CreationDate, LLUUID CreatorUUID, LLUUID FolderUUID, LLUUID FromTaskUUID,
  780. LLUUID GroupUUID, short InventorySerial, LLUUID LastOwnerUUID, LLUUID ObjectUUID,
  781. LLUUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName,
  782. string ItemDescription, uint OwnerMask, uint NextOwnerMask, uint GroupMask, uint EveryoneMask,
  783. uint BaseMask);
  784. void SendAgentOffline(LLUUID[] agentIDs);
  785. void SendAgentOnline(LLUUID[] agentIDs);
  786. void SendSitResponse(LLUUID TargetID, LLVector3 OffsetPos, LLQuaternion SitOrientation, bool autopilot,
  787. LLVector3 CameraAtOffset, LLVector3 CameraEyeOffset, bool ForceMouseLook);
  788. void SendAdminResponse(LLUUID Token, uint AdminLevel);
  789. void SendGroupMembership(GroupData[] GroupMembership);
  790. void SendGroupNameReply(LLUUID groupLLUID, string GroupName);
  791. void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia);
  792. byte[] GetThrottlesPacked(float multiplier);
  793. void SetDebug(int newDebug);
  794. void InPacket(Packet NewPack);
  795. void Close(bool ShutdownCircuit);
  796. void Kick(string message);
  797. void Stop();
  798. event ViewerEffectEventHandler OnViewerEffect;
  799. event Action<IClientAPI> OnLogout;
  800. event Action<IClientAPI> OnConnectionClosed;
  801. void SendBlueBoxMessage(LLUUID FromAvatarID, LLUUID fromSessionID, String FromAvatarName, String Message);
  802. void SendLogoutPacket();
  803. ClientInfo GetClientInfo();
  804. void SetClientInfo(ClientInfo info);
  805. void Terminate();
  806. }
  807. [Serializable]
  808. public class ClientInfo
  809. {
  810. public sAgentCircuitData agentcircuit;
  811. public Dictionary<uint, byte[]> needAck;
  812. public List<byte[]> out_packets;
  813. public Dictionary<uint, uint> pendingAcks;
  814. public EndPoint proxyEP;
  815. public uint sequence;
  816. public byte[] usecircuit;
  817. public EndPoint userEP;
  818. }
  819. }