NPCAvatar.cs 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  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. using OpenSim.Framework;
  33. using OpenSim.Region.Environment.Scenes;
  34. namespace OpenSim.Region.Environment.Modules.World.NPC
  35. {
  36. public class NPCAvatar : IClientAPI
  37. {
  38. private readonly string m_firstname;
  39. private readonly string m_lastname;
  40. private readonly LLVector3 m_startPos;
  41. private readonly LLUUID m_uuid = LLUUID.Random();
  42. private readonly Scene m_scene;
  43. public NPCAvatar(string firstname, string lastname, LLVector3 position, Scene scene)
  44. {
  45. m_firstname = firstname;
  46. m_lastname = lastname;
  47. m_startPos = position;
  48. m_scene = scene;
  49. }
  50. public void Say(string message)
  51. {
  52. SendOnChatFromViewer(message, ChatTypeEnum.Say);
  53. }
  54. public void Shout(string message)
  55. {
  56. SendOnChatFromViewer(message, ChatTypeEnum.Shout);
  57. }
  58. public void Whisper(string message)
  59. {
  60. SendOnChatFromViewer(message, ChatTypeEnum.Whisper);
  61. }
  62. public void Broadcast(string message)
  63. {
  64. SendOnChatFromViewer(message, ChatTypeEnum.Broadcast);
  65. }
  66. public void GiveMoney(LLUUID target, int amount)
  67. {
  68. OnMoneyTransferRequest(m_uuid, target, amount, 1, "Payment");
  69. }
  70. public void InstantMessage(LLUUID target, string message)
  71. {
  72. OnInstantMessage(this, m_uuid, SessionId, target, LLUUID.Combine(m_uuid, target),
  73. (uint) Util.UnixTimeSinceEpoch(), Name, message, 0, false, 0, 0,
  74. Position, m_scene.RegionInfo.RegionID, new byte[0]);
  75. }
  76. public void SendAgentOffline(LLUUID[] agentIDs)
  77. {
  78. }
  79. public void SendAgentOnline(LLUUID[] agentIDs)
  80. {
  81. }
  82. public void SendSitResponse(LLUUID TargetID, LLVector3 OffsetPos, LLQuaternion SitOrientation, bool autopilot,
  83. LLVector3 CameraAtOffset, LLVector3 CameraEyeOffset, bool ForceMouseLook)
  84. {
  85. }
  86. public void SendAdminResponse(LLUUID Token, uint AdminLevel)
  87. {
  88. }
  89. public void SendGroupMembership(GroupData[] GroupMembership)
  90. {
  91. }
  92. public LLUUID GetDefaultAnimation(string name)
  93. {
  94. return LLUUID.Zero;
  95. }
  96. public LLVector3 Position
  97. {
  98. get { return m_scene.Entities[m_uuid].AbsolutePosition; }
  99. set { m_scene.Entities[m_uuid].AbsolutePosition = value; }
  100. }
  101. #region Internal Functions
  102. private void SendOnChatFromViewer(string message, ChatTypeEnum chatType)
  103. {
  104. ChatFromViewerArgs chatFromViewer = new ChatFromViewerArgs();
  105. chatFromViewer.Channel = 0;
  106. chatFromViewer.From = Name;
  107. chatFromViewer.Message = message;
  108. chatFromViewer.Position = StartPos;
  109. chatFromViewer.Scene = m_scene;
  110. chatFromViewer.Sender = this;
  111. chatFromViewer.SenderUUID = AgentId;
  112. chatFromViewer.Type = chatType;
  113. OnChatFromViewer(this, chatFromViewer);
  114. }
  115. #endregion
  116. #region Event Definitions IGNORE
  117. // disable warning: public events constituting public API
  118. #pragma warning disable 67
  119. public event Action<IClientAPI> OnLogout;
  120. public event ObjectPermissions OnObjectPermissions;
  121. public event MoneyTransferRequest OnMoneyTransferRequest;
  122. public event ParcelBuy OnParcelBuy;
  123. public event Action<IClientAPI> OnConnectionClosed;
  124. public event ImprovedInstantMessage OnInstantMessage;
  125. public event ChatFromViewer OnChatFromViewer;
  126. public event TextureRequest OnRequestTexture;
  127. public event RezObject OnRezObject;
  128. public event ModifyTerrain OnModifyTerrain;
  129. public event SetAppearance OnSetAppearance;
  130. public event AvatarNowWearing OnAvatarNowWearing;
  131. public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
  132. public event UUIDNameRequest OnDetachAttachmentIntoInv;
  133. public event ObjectAttach OnObjectAttach;
  134. public event ObjectDeselect OnObjectDetach;
  135. public event StartAnim OnStartAnim;
  136. public event StopAnim OnStopAnim;
  137. public event LinkObjects OnLinkObjects;
  138. public event DelinkObjects OnDelinkObjects;
  139. public event RequestMapBlocks OnRequestMapBlocks;
  140. public event RequestMapName OnMapNameRequest;
  141. public event TeleportLocationRequest OnTeleportLocationRequest;
  142. public event TeleportLandmarkRequest OnTeleportLandmarkRequest;
  143. public event DisconnectUser OnDisconnectUser;
  144. public event RequestAvatarProperties OnRequestAvatarProperties;
  145. public event SetAlwaysRun OnSetAlwaysRun;
  146. public event GenericCall4 OnDeRezObject;
  147. public event Action<IClientAPI> OnRegionHandShakeReply;
  148. public event GenericCall2 OnRequestWearables;
  149. public event GenericCall2 OnCompleteMovementToRegion;
  150. public event UpdateAgent OnAgentUpdate;
  151. public event AgentRequestSit OnAgentRequestSit;
  152. public event AgentSit OnAgentSit;
  153. public event AvatarPickerRequest OnAvatarPickerRequest;
  154. public event Action<IClientAPI> OnRequestAvatarsData;
  155. public event AddNewPrim OnAddPrim;
  156. public event RequestGodlikePowers OnRequestGodlikePowers;
  157. public event GodKickUser OnGodKickUser;
  158. public event ObjectDuplicate OnObjectDuplicate;
  159. public event UpdateVector OnGrabObject;
  160. public event ObjectSelect OnDeGrabObject;
  161. public event MoveObject OnGrabUpdate;
  162. public event ViewerEffectEventHandler OnViewerEffect;
  163. public event FetchInventory OnAgentDataUpdateRequest;
  164. public event FetchInventory OnUserInfoRequest;
  165. public event TeleportLocationRequest OnSetStartLocationRequest;
  166. public event UpdateShape OnUpdatePrimShape;
  167. public event ObjectExtraParams OnUpdateExtraParams;
  168. public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily;
  169. public event ObjectSelect OnObjectSelect;
  170. public event GenericCall7 OnObjectDescription;
  171. public event GenericCall7 OnObjectName;
  172. public event UpdatePrimFlags OnUpdatePrimFlags;
  173. public event UpdatePrimTexture OnUpdatePrimTexture;
  174. public event UpdateVector OnUpdatePrimGroupPosition;
  175. public event UpdateVector OnUpdatePrimSinglePosition;
  176. public event UpdatePrimRotation OnUpdatePrimGroupRotation;
  177. public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation;
  178. public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation;
  179. public event UpdateVector OnUpdatePrimScale;
  180. public event UpdateVector OnUpdatePrimGroupScale;
  181. public event StatusChange OnChildAgentStatus;
  182. public event GenericCall2 OnStopMovement;
  183. public event Action<LLUUID> OnRemoveAvatar;
  184. public event CreateNewInventoryItem OnCreateNewInventoryItem;
  185. public event CreateInventoryFolder OnCreateNewInventoryFolder;
  186. public event UpdateInventoryFolder OnUpdateInventoryFolder;
  187. public event MoveInventoryFolder OnMoveInventoryFolder;
  188. public event RemoveInventoryFolder OnRemoveInventoryFolder;
  189. public event RemoveInventoryItem OnRemoveInventoryItem;
  190. public event FetchInventoryDescendents OnFetchInventoryDescendents;
  191. public event PurgeInventoryDescendents OnPurgeInventoryDescendents;
  192. public event FetchInventory OnFetchInventory;
  193. public event RequestTaskInventory OnRequestTaskInventory;
  194. public event UpdateInventoryItem OnUpdateInventoryItem;
  195. public event CopyInventoryItem OnCopyInventoryItem;
  196. public event MoveInventoryItem OnMoveInventoryItem;
  197. public event UDPAssetUploadRequest OnAssetUploadRequest;
  198. public event XferReceive OnXferReceive;
  199. public event RequestXfer OnRequestXfer;
  200. public event ConfirmXfer OnConfirmXfer;
  201. public event RezScript OnRezScript;
  202. public event UpdateTaskInventory OnUpdateTaskInventory;
  203. public event MoveTaskInventory OnMoveTaskItem;
  204. public event RemoveTaskInventory OnRemoveTaskItem;
  205. public event RequestAsset OnRequestAsset;
  206. public event UUIDNameRequest OnNameFromUUIDRequest;
  207. public event UUIDNameRequest OnUUIDGroupNameRequest;
  208. public event ParcelPropertiesRequest OnParcelPropertiesRequest;
  209. public event ParcelDivideRequest OnParcelDivideRequest;
  210. public event ParcelJoinRequest OnParcelJoinRequest;
  211. public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest;
  212. public event ParcelAbandonRequest OnParcelAbandonRequest;
  213. public event ParcelReclaim OnParcelReclaim;
  214. public event ParcelReturnObjectsRequest OnParcelReturnObjectsRequest;
  215. public event ParcelAccessListRequest OnParcelAccessListRequest;
  216. public event ParcelAccessListUpdateRequest OnParcelAccessListUpdateRequest;
  217. public event ParcelSelectObjects OnParcelSelectObjects;
  218. public event ParcelObjectOwnerRequest OnParcelObjectOwnerRequest;
  219. public event ObjectDeselect OnObjectDeselect;
  220. public event RegionInfoRequest OnRegionInfoRequest;
  221. public event EstateCovenantRequest OnEstateCovenantRequest;
  222. public event ObjectDuplicateOnRay OnObjectDuplicateOnRay;
  223. public event FriendActionDelegate OnApproveFriendRequest;
  224. public event FriendActionDelegate OnDenyFriendRequest;
  225. public event FriendshipTermination OnTerminateFriendship;
  226. public event PacketStats OnPacketStats;
  227. public event EconomyDataRequest OnEconomyDataRequest;
  228. public event MoneyBalanceRequest OnMoneyBalanceRequest;
  229. public event UpdateAvatarProperties OnUpdateAvatarProperties;
  230. public event ObjectIncludeInSearch OnObjectIncludeInSearch;
  231. public event UUIDNameRequest OnTeleportHomeRequest;
  232. public event ScriptAnswer OnScriptAnswer;
  233. public event RequestPayPrice OnRequestPayPrice;
  234. public event AgentSit OnUndo;
  235. public event ForceReleaseControls OnForceReleaseControls;
  236. public event GodLandStatRequest OnLandStatRequest;
  237. public event RequestObjectPropertiesFamily OnObjectGroupRequest;
  238. public event DetailedEstateDataRequest OnDetailedEstateDataRequest;
  239. public event SetEstateFlagsRequest OnSetEstateFlagsRequest;
  240. public event SetEstateTerrainBaseTexture OnSetEstateTerrainBaseTexture;
  241. public event SetEstateTerrainDetailTexture OnSetEstateTerrainDetailTexture;
  242. public event SetEstateTerrainTextureHeights OnSetEstateTerrainTextureHeights;
  243. public event CommitEstateTerrainTextureRequest OnCommitEstateTerrainTextureRequest;
  244. public event SetRegionTerrainSettings OnSetRegionTerrainSettings;
  245. public event BakeTerrain OnBakeTerrain;
  246. public event EstateRestartSimRequest OnEstateRestartSimRequest;
  247. public event EstateChangeCovenantRequest OnEstateChangeCovenantRequest;
  248. public event UpdateEstateAccessDeltaRequest OnUpdateEstateAccessDeltaRequest;
  249. public event SimulatorBlueBoxMessageRequest OnSimulatorBlueBoxMessageRequest;
  250. public event EstateBlueBoxMessageRequest OnEstateBlueBoxMessageRequest;
  251. public event EstateDebugRegionRequest OnEstateDebugRegionRequest;
  252. public event EstateTeleportOneUserHomeRequest OnEstateTeleportOneUserHomeRequest;
  253. public event EstateChangeInfo OnEstateChangeInfo;
  254. public event ScriptReset OnScriptReset;
  255. public event GetScriptRunning OnGetScriptRunning;
  256. public event SetScriptRunning OnSetScriptRunning;
  257. public event UpdateVector OnAutoPilotGo;
  258. #pragma warning restore 67
  259. #endregion
  260. #region Overrriden Methods IGNORE
  261. public virtual LLVector3 StartPos
  262. {
  263. get { return m_startPos; }
  264. set { }
  265. }
  266. public virtual LLUUID AgentId
  267. {
  268. get { return m_uuid; }
  269. }
  270. public LLUUID SessionId
  271. {
  272. get { return LLUUID.Zero; }
  273. }
  274. public LLUUID SecureSessionId
  275. {
  276. get { return LLUUID.Zero; }
  277. }
  278. public virtual string FirstName
  279. {
  280. get { return m_firstname; }
  281. }
  282. public virtual string LastName
  283. {
  284. get { return m_lastname; }
  285. }
  286. public virtual String Name
  287. {
  288. get { return FirstName + " " + LastName; }
  289. }
  290. public bool IsActive
  291. {
  292. get { return true; }
  293. set { }
  294. }
  295. public LLUUID ActiveGroupId
  296. {
  297. get { return LLUUID.Zero; }
  298. }
  299. public string ActiveGroupName
  300. {
  301. get { return String.Empty; }
  302. }
  303. public ulong ActiveGroupPowers
  304. {
  305. get { return 0; }
  306. }
  307. public virtual int NextAnimationSequenceNumber
  308. {
  309. get { return 1; }
  310. }
  311. public virtual void OutPacket(Packet newPack, ThrottleOutPacketType packType)
  312. {
  313. }
  314. public virtual void SendWearables(AvatarWearable[] wearables, int serial)
  315. {
  316. }
  317. public virtual void SendAppearance(LLUUID agentID, byte[] visualParams, byte[] textureEntry)
  318. {
  319. }
  320. public virtual void Kick(string message)
  321. {
  322. }
  323. public virtual void SendStartPingCheck(byte seq)
  324. {
  325. }
  326. public virtual void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data)
  327. {
  328. }
  329. public virtual void SendAgentDataUpdate(LLUUID agentid, LLUUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle)
  330. {
  331. }
  332. public virtual void SendKillObject(ulong regionHandle, uint localID)
  333. {
  334. }
  335. public virtual void SetChildAgentThrottle(byte[] throttle)
  336. {
  337. }
  338. public byte[] GetThrottlesPacked(float multiplier)
  339. {
  340. return new byte[0];
  341. }
  342. public virtual void SendAnimations(LLUUID[] animations, int[] seqs, LLUUID sourceAgentId)
  343. {
  344. }
  345. public virtual void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName,
  346. LLUUID fromAgentID, byte source, byte audible)
  347. {
  348. }
  349. public virtual void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName,
  350. LLUUID fromAgentID, byte source, byte audible)
  351. {
  352. }
  353. public virtual void SendInstantMessage(LLUUID fromAgent, LLUUID fromAgentSession, string message, LLUUID toAgent,
  354. LLUUID imSessionID, string fromName, byte dialog, uint timeStamp)
  355. {
  356. }
  357. public virtual void SendInstantMessage(LLUUID fromAgent, LLUUID fromAgentSession, string message, LLUUID toAgent,
  358. LLUUID imSessionID, string fromName, byte dialog, uint timeStamp,
  359. byte[] binaryBucket)
  360. {
  361. }
  362. public virtual void SendLayerData(float[] map)
  363. {
  364. }
  365. public virtual void SendLayerData(int px, int py, float[] map)
  366. {
  367. }
  368. public virtual void MoveAgentIntoRegion(RegionInfo regInfo, LLVector3 pos, LLVector3 look)
  369. {
  370. }
  371. public virtual void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint)
  372. {
  373. }
  374. public virtual AgentCircuitData RequestClientInfo()
  375. {
  376. return new AgentCircuitData();
  377. }
  378. public virtual void CrossRegion(ulong newRegionHandle, LLVector3 pos, LLVector3 lookAt,
  379. IPEndPoint newRegionExternalEndPoint, string capsURL)
  380. {
  381. }
  382. public virtual void SendMapBlock(List<MapBlockData> mapBlocks, uint flag)
  383. {
  384. }
  385. public virtual void SendLocalTeleport(LLVector3 position, LLVector3 lookAt, uint flags)
  386. {
  387. }
  388. public virtual void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint,
  389. uint locationID, uint flags, string capsURL)
  390. {
  391. }
  392. public virtual void SendTeleportFailed(string reason)
  393. {
  394. }
  395. public virtual void SendTeleportLocationStart()
  396. {
  397. }
  398. public virtual void SendMoneyBalance(LLUUID transaction, bool success, byte[] description, int balance)
  399. {
  400. }
  401. public virtual void SendPayPrice(LLUUID objectID, int[] payPrice)
  402. {
  403. }
  404. public virtual void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID,
  405. uint avatarLocalID, LLVector3 Pos, byte[] textureEntry, uint parentID)
  406. {
  407. }
  408. public virtual void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID,
  409. LLVector3 position, LLVector3 velocity, LLQuaternion rotation)
  410. {
  411. }
  412. public virtual void SendCoarseLocationUpdate(List<LLVector3> CoarseLocations)
  413. {
  414. }
  415. public virtual void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint)
  416. {
  417. }
  418. public virtual void SendDialog(string objectname, LLUUID objectID, LLUUID ownerID, string msg, LLUUID textureID, int ch, string[] buttonlabels)
  419. {
  420. }
  421. public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID,
  422. PrimitiveBaseShape primShape, LLVector3 pos, LLVector3 vel,
  423. LLVector3 acc, LLQuaternion rotation, LLVector3 rvel, uint flags,
  424. LLUUID objectID, LLUUID ownerID, string text, byte[] color,
  425. uint parentID,
  426. byte[] particleSystem, byte clickAction)
  427. {
  428. }
  429. public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID,
  430. PrimitiveBaseShape primShape, LLVector3 pos, LLVector3 vel,
  431. LLVector3 acc, LLQuaternion rotation, LLVector3 rvel, uint flags,
  432. LLUUID objectID, LLUUID ownerID, string text, byte[] color,
  433. uint parentID,
  434. byte[] particleSystem, byte clickAction, byte[] textureanimation,
  435. bool attachment, uint AttachmentPoint, LLUUID AssetId, LLUUID SoundId, double SoundVolume, byte SoundFlags, double SoundRadius)
  436. {
  437. }
  438. public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID,
  439. LLVector3 position, LLQuaternion rotation, LLVector3 velocity,
  440. LLVector3 rotationalvelocity, byte state, LLUUID AssetId)
  441. {
  442. }
  443. public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID,
  444. LLVector3 position, LLQuaternion rotation, LLVector3 velocity,
  445. LLVector3 rotationalvelocity)
  446. {
  447. }
  448. public virtual void SendInventoryFolderDetails(LLUUID ownerID, LLUUID folderID,
  449. List<InventoryItemBase> items,
  450. List<InventoryFolderBase> folders,
  451. bool fetchFolders,
  452. bool fetchItems)
  453. {
  454. }
  455. public virtual void SendInventoryItemDetails(LLUUID ownerID, InventoryItemBase item)
  456. {
  457. }
  458. public virtual void SendInventoryItemCreateUpdate(InventoryItemBase Item)
  459. {
  460. }
  461. public virtual void SendRemoveInventoryItem(LLUUID itemID)
  462. {
  463. }
  464. /// <see>IClientAPI.SendBulkUpdateInventory(InventoryItemBase)</see>
  465. public virtual void SendBulkUpdateInventory(InventoryItemBase item)
  466. {
  467. }
  468. public void SendTakeControls(int controls, bool passToAgent, bool TakeControls)
  469. {
  470. }
  471. public virtual void SendTaskInventory(LLUUID taskID, short serial, byte[] fileName)
  472. {
  473. }
  474. public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data)
  475. {
  476. }
  477. public virtual void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit,
  478. int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, float PriceObjectScaleFactor,
  479. int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent, int PricePublicObjectDecay,
  480. int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice, float TeleportPriceExponent)
  481. {
  482. }
  483. public virtual void SendNameReply(LLUUID profileId, string firstname, string lastname)
  484. {
  485. }
  486. public virtual void SendPreLoadSound(LLUUID objectID, LLUUID ownerID, LLUUID soundID)
  487. {
  488. }
  489. public virtual void SendPlayAttachedSound(LLUUID soundID, LLUUID objectID, LLUUID ownerID, float gain,
  490. byte flags)
  491. {
  492. }
  493. public void SendTriggeredSound(LLUUID soundID, LLUUID ownerID, LLUUID objectID, LLUUID parentID, ulong handle, LLVector3 position, float gain)
  494. {
  495. }
  496. public void SendAttachedSoundGainChange(LLUUID objectID, float gain)
  497. {
  498. }
  499. public void SendAlertMessage(string message)
  500. {
  501. }
  502. public void SendAgentAlertMessage(string message, bool modal)
  503. {
  504. }
  505. public void SendSystemAlertMessage(string message)
  506. {
  507. }
  508. public void SendLoadURL(string objectname, LLUUID objectID, LLUUID ownerID, bool groupOwned, string message,
  509. string url)
  510. {
  511. }
  512. public virtual void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args)
  513. {
  514. if (OnRegionHandShakeReply != null)
  515. {
  516. OnRegionHandShakeReply(this);
  517. }
  518. if (OnCompleteMovementToRegion != null)
  519. {
  520. OnCompleteMovementToRegion();
  521. }
  522. }
  523. public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, LLUUID AssetFullID)
  524. {
  525. }
  526. public void SendConfirmXfer(ulong xferID, uint PacketID)
  527. {
  528. }
  529. public void SendXferRequest(ulong XferID, short AssetType, LLUUID vFileID, byte FilePath, byte[] FileName)
  530. {
  531. }
  532. public void SendImagePart(ushort numParts, LLUUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec)
  533. {
  534. }
  535. public void SendShutdownConnectionNotice()
  536. {
  537. }
  538. public void SendSimStats(Packet pack)
  539. {
  540. }
  541. public void SendObjectPropertiesFamilyData(uint RequestFlags, LLUUID ObjectUUID, LLUUID OwnerID, LLUUID GroupID,
  542. uint BaseMask, uint OwnerMask, uint GroupMask, uint EveryoneMask,
  543. uint NextOwnerMask, int OwnershipCost, byte SaleType, int SalePrice, uint Category,
  544. LLUUID LastOwnerID, string ObjectName, string Description)
  545. {
  546. }
  547. public void SendObjectPropertiesReply(LLUUID ItemID, ulong CreationDate, LLUUID CreatorUUID, LLUUID FolderUUID, LLUUID FromTaskUUID,
  548. LLUUID GroupUUID, short InventorySerial, LLUUID LastOwnerUUID, LLUUID ObjectUUID,
  549. LLUUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName,
  550. string ItemDescription, uint OwnerMask, uint NextOwnerMask, uint GroupMask, uint EveryoneMask,
  551. uint BaseMask)
  552. {
  553. }
  554. public bool AddMoney(int debit)
  555. {
  556. return false;
  557. }
  558. public void SendSunPos(LLVector3 sunPos, LLVector3 sunVel, ulong time, uint dlen, uint ylen, float phase)
  559. {
  560. }
  561. public void SendViewerTime(int phase)
  562. {
  563. }
  564. public void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, string charterMember,
  565. string flAbout, uint flags, LLUUID flImageID, LLUUID imageID, string profileURL,
  566. LLUUID partnerID)
  567. {
  568. }
  569. public void SendAsset(AssetRequestToClient req)
  570. {
  571. }
  572. public void SendTexture(AssetBase TextureAsset)
  573. {
  574. }
  575. public void SetDebug(int newDebug)
  576. {
  577. }
  578. public void InPacket(Packet NewPack)
  579. {
  580. }
  581. public void Close(bool ShutdownCircuit)
  582. {
  583. }
  584. public void Stop()
  585. {
  586. }
  587. private uint m_circuitCode;
  588. public uint CircuitCode
  589. {
  590. get { return m_circuitCode; }
  591. set { m_circuitCode = value; }
  592. }
  593. public void SendBlueBoxMessage(LLUUID FromAvatarID, LLUUID fromSessionID, String FromAvatarName, String Message)
  594. {
  595. }
  596. public void SendLogoutPacket()
  597. {
  598. }
  599. public void Terminate()
  600. {
  601. }
  602. public ClientInfo GetClientInfo()
  603. {
  604. return null;
  605. }
  606. public void SetClientInfo(ClientInfo info)
  607. {
  608. }
  609. public void SendScriptQuestion(LLUUID objectID, string taskName, string ownerName, LLUUID itemID, int question)
  610. {
  611. }
  612. public void SendHealth(float health)
  613. {
  614. }
  615. public void SendEstateManagersList(LLUUID invoice, LLUUID[] EstateManagers, uint estateID)
  616. {
  617. }
  618. public void SendBannedUserList(LLUUID invoice, EstateBan[] banlist, uint estateID)
  619. {
  620. }
  621. public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args)
  622. {
  623. }
  624. public void SendEstateCovenantInformation(LLUUID covenant)
  625. {
  626. }
  627. public void SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant)
  628. {
  629. }
  630. public void SendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor,int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
  631. {
  632. }
  633. public void SendLandAccessListData(List<LLUUID> avatars, uint accessFlag, int localLandID)
  634. {
  635. }
  636. public void SendForceClientSelectObjects(List<uint> objectIDs)
  637. {
  638. }
  639. public void SendLandObjectOwners(Dictionary<LLUUID, int> ownersAndCount)
  640. {
  641. }
  642. public void SendLandParcelOverlay(byte[] data, int sequence_id)
  643. {
  644. }
  645. public void SendGroupNameReply(LLUUID groupLLUID, string GroupName)
  646. {
  647. }
  648. public void SendScriptRunningReply(LLUUID objectID, LLUUID itemID, bool running)
  649. {
  650. }
  651. public void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia)
  652. {
  653. }
  654. #endregion
  655. public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
  656. {
  657. }
  658. public void SendParcelMediaUpdate(string mediaUrl, LLUUID mediaTextureID,
  659. byte autoScale, string mediaType, string mediaDesc, int mediaWidth, int mediaHeight,
  660. byte mediaLoop)
  661. {
  662. }
  663. }
  664. }