TestClient.cs 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323
  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 System.Reflection;
  31. using System.Threading;
  32. using log4net;
  33. using OpenMetaverse;
  34. using OpenMetaverse.Packets;
  35. using OpenSim.Framework;
  36. using OpenSim.Region.Framework.Interfaces;
  37. using OpenSim.Region.Framework.Scenes;
  38. using OpenSim.Framework.Client;
  39. namespace OpenSim.Tests.Common.Mock
  40. {
  41. public class TestClient : IClientAPI, IClientCore
  42. {
  43. private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
  44. EventWaitHandle wh = new EventWaitHandle (false, EventResetMode.AutoReset, "Crossing");
  45. private Scene m_scene;
  46. // Properties so that we can get at received data for test purposes
  47. public List<uint> ReceivedKills { get; private set; }
  48. public List<UUID> ReceivedOfflineNotifications { get; private set; }
  49. public List<UUID> ReceivedOnlineNotifications { get; private set; }
  50. public List<UUID> ReceivedFriendshipTerminations { get; private set; }
  51. public List<ImageDataPacket> SentImageDataPackets { get; private set; }
  52. public List<ImagePacketPacket> SentImagePacketPackets { get; private set; }
  53. public List<ImageNotInDatabasePacket> SentImageNotInDatabasePackets { get; private set; }
  54. // Test client specific events - for use by tests to implement some IClientAPI behaviour.
  55. public event Action<RegionInfo, Vector3, Vector3> OnReceivedMoveAgentIntoRegion;
  56. public event Action<ulong, IPEndPoint> OnTestClientInformClientOfNeighbour;
  57. public event TestClientOnSendRegionTeleportDelegate OnTestClientSendRegionTeleport;
  58. public event Action<ISceneEntity, PrimUpdateFlags> OnReceivedEntityUpdate;
  59. public event OnReceivedChatMessageDelegate OnReceivedChatMessage;
  60. public event Action<GridInstantMessage> OnReceivedInstantMessage;
  61. public event Action<UUID> OnReceivedSendRebakeAvatarTextures;
  62. public delegate void TestClientOnSendRegionTeleportDelegate(
  63. ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint,
  64. uint locationID, uint flags, string capsURL);
  65. public delegate void OnReceivedChatMessageDelegate(
  66. string message, byte type, Vector3 fromPos, string fromName,
  67. UUID fromAgentID, UUID ownerID, byte source, byte audible);
  68. // disable warning: public events, part of the public API
  69. #pragma warning disable 67
  70. public event Action<IClientAPI> OnLogout;
  71. public event ObjectPermissions OnObjectPermissions;
  72. public event MoneyTransferRequest OnMoneyTransferRequest;
  73. public event ParcelBuy OnParcelBuy;
  74. public event Action<IClientAPI> OnConnectionClosed;
  75. public event ImprovedInstantMessage OnInstantMessage;
  76. public event ChatMessage OnChatFromClient;
  77. public event TextureRequest OnRequestTexture;
  78. public event RezObject OnRezObject;
  79. public event ModifyTerrain OnModifyTerrain;
  80. public event BakeTerrain OnBakeTerrain;
  81. public event SetAppearance OnSetAppearance;
  82. public event AvatarNowWearing OnAvatarNowWearing;
  83. public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
  84. public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
  85. public event UUIDNameRequest OnDetachAttachmentIntoInv;
  86. public event ObjectAttach OnObjectAttach;
  87. public event ObjectDeselect OnObjectDetach;
  88. public event ObjectDrop OnObjectDrop;
  89. public event StartAnim OnStartAnim;
  90. public event StopAnim OnStopAnim;
  91. public event LinkObjects OnLinkObjects;
  92. public event DelinkObjects OnDelinkObjects;
  93. public event RequestMapBlocks OnRequestMapBlocks;
  94. public event RequestMapName OnMapNameRequest;
  95. public event TeleportLocationRequest OnTeleportLocationRequest;
  96. public event TeleportLandmarkRequest OnTeleportLandmarkRequest;
  97. public event TeleportCancel OnTeleportCancel;
  98. public event DisconnectUser OnDisconnectUser;
  99. public event RequestAvatarProperties OnRequestAvatarProperties;
  100. public event SetAlwaysRun OnSetAlwaysRun;
  101. public event DeRezObject OnDeRezObject;
  102. public event Action<IClientAPI> OnRegionHandShakeReply;
  103. public event GenericCall1 OnRequestWearables;
  104. public event Action<IClientAPI, bool> OnCompleteMovementToRegion;
  105. public event UpdateAgent OnPreAgentUpdate;
  106. public event UpdateAgent OnAgentUpdate;
  107. public event UpdateAgent OnAgentCameraUpdate;
  108. public event AgentRequestSit OnAgentRequestSit;
  109. public event AgentSit OnAgentSit;
  110. public event AvatarPickerRequest OnAvatarPickerRequest;
  111. public event Action<IClientAPI> OnRequestAvatarsData;
  112. public event AddNewPrim OnAddPrim;
  113. public event RequestGodlikePowers OnRequestGodlikePowers;
  114. public event GodKickUser OnGodKickUser;
  115. public event ObjectDuplicate OnObjectDuplicate;
  116. public event GrabObject OnGrabObject;
  117. public event DeGrabObject OnDeGrabObject;
  118. public event MoveObject OnGrabUpdate;
  119. public event SpinStart OnSpinStart;
  120. public event SpinObject OnSpinUpdate;
  121. public event SpinStop OnSpinStop;
  122. public event ViewerEffectEventHandler OnViewerEffect;
  123. public event FetchInventory OnAgentDataUpdateRequest;
  124. public event TeleportLocationRequest OnSetStartLocationRequest;
  125. public event UpdateShape OnUpdatePrimShape;
  126. public event ObjectExtraParams OnUpdateExtraParams;
  127. public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily;
  128. public event ObjectSelect OnObjectSelect;
  129. public event ObjectRequest OnObjectRequest;
  130. public event GenericCall7 OnObjectDescription;
  131. public event GenericCall7 OnObjectName;
  132. public event GenericCall7 OnObjectClickAction;
  133. public event GenericCall7 OnObjectMaterial;
  134. public event UpdatePrimFlags OnUpdatePrimFlags;
  135. public event UpdatePrimTexture OnUpdatePrimTexture;
  136. public event UpdateVector OnUpdatePrimGroupPosition;
  137. public event UpdateVector OnUpdatePrimSinglePosition;
  138. public event UpdatePrimRotation OnUpdatePrimGroupRotation;
  139. public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation;
  140. public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition;
  141. public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation;
  142. public event UpdateVector OnUpdatePrimScale;
  143. public event UpdateVector OnUpdatePrimGroupScale;
  144. public event StatusChange OnChildAgentStatus;
  145. public event GenericCall2 OnStopMovement;
  146. public event Action<UUID> OnRemoveAvatar;
  147. public event CreateNewInventoryItem OnCreateNewInventoryItem;
  148. public event LinkInventoryItem OnLinkInventoryItem;
  149. public event CreateInventoryFolder OnCreateNewInventoryFolder;
  150. public event UpdateInventoryFolder OnUpdateInventoryFolder;
  151. public event MoveInventoryFolder OnMoveInventoryFolder;
  152. public event RemoveInventoryFolder OnRemoveInventoryFolder;
  153. public event RemoveInventoryItem OnRemoveInventoryItem;
  154. public event FetchInventoryDescendents OnFetchInventoryDescendents;
  155. public event PurgeInventoryDescendents OnPurgeInventoryDescendents;
  156. public event FetchInventory OnFetchInventory;
  157. public event RequestTaskInventory OnRequestTaskInventory;
  158. public event UpdateInventoryItem OnUpdateInventoryItem;
  159. public event CopyInventoryItem OnCopyInventoryItem;
  160. public event MoveInventoryItem OnMoveInventoryItem;
  161. public event UDPAssetUploadRequest OnAssetUploadRequest;
  162. public event RequestTerrain OnRequestTerrain;
  163. public event RequestTerrain OnUploadTerrain;
  164. public event XferReceive OnXferReceive;
  165. public event RequestXfer OnRequestXfer;
  166. public event ConfirmXfer OnConfirmXfer;
  167. public event AbortXfer OnAbortXfer;
  168. public event RezScript OnRezScript;
  169. public event UpdateTaskInventory OnUpdateTaskInventory;
  170. public event MoveTaskInventory OnMoveTaskItem;
  171. public event RemoveTaskInventory OnRemoveTaskItem;
  172. public event RequestAsset OnRequestAsset;
  173. public event GenericMessage OnGenericMessage;
  174. public event UUIDNameRequest OnNameFromUUIDRequest;
  175. public event UUIDNameRequest OnUUIDGroupNameRequest;
  176. public event ParcelPropertiesRequest OnParcelPropertiesRequest;
  177. public event ParcelDivideRequest OnParcelDivideRequest;
  178. public event ParcelJoinRequest OnParcelJoinRequest;
  179. public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest;
  180. public event ParcelAbandonRequest OnParcelAbandonRequest;
  181. public event ParcelGodForceOwner OnParcelGodForceOwner;
  182. public event ParcelReclaim OnParcelReclaim;
  183. public event ParcelReturnObjectsRequest OnParcelReturnObjectsRequest;
  184. public event ParcelAccessListRequest OnParcelAccessListRequest;
  185. public event ParcelAccessListUpdateRequest OnParcelAccessListUpdateRequest;
  186. public event ParcelSelectObjects OnParcelSelectObjects;
  187. public event ParcelObjectOwnerRequest OnParcelObjectOwnerRequest;
  188. public event ParcelDeedToGroup OnParcelDeedToGroup;
  189. public event ObjectDeselect OnObjectDeselect;
  190. public event RegionInfoRequest OnRegionInfoRequest;
  191. public event EstateCovenantRequest OnEstateCovenantRequest;
  192. public event EstateChangeInfo OnEstateChangeInfo;
  193. public event EstateManageTelehub OnEstateManageTelehub;
  194. public event CachedTextureRequest OnCachedTextureRequest;
  195. public event ObjectDuplicateOnRay OnObjectDuplicateOnRay;
  196. public event FriendActionDelegate OnApproveFriendRequest;
  197. public event FriendActionDelegate OnDenyFriendRequest;
  198. public event FriendshipTermination OnTerminateFriendship;
  199. public event GrantUserFriendRights OnGrantUserRights;
  200. public event EconomyDataRequest OnEconomyDataRequest;
  201. public event MoneyBalanceRequest OnMoneyBalanceRequest;
  202. public event UpdateAvatarProperties OnUpdateAvatarProperties;
  203. public event ObjectIncludeInSearch OnObjectIncludeInSearch;
  204. public event UUIDNameRequest OnTeleportHomeRequest;
  205. public event ScriptAnswer OnScriptAnswer;
  206. public event RequestPayPrice OnRequestPayPrice;
  207. public event ObjectSaleInfo OnObjectSaleInfo;
  208. public event ObjectBuy OnObjectBuy;
  209. public event BuyObjectInventory OnBuyObjectInventory;
  210. public event AgentSit OnUndo;
  211. public event AgentSit OnRedo;
  212. public event LandUndo OnLandUndo;
  213. public event ForceReleaseControls OnForceReleaseControls;
  214. public event GodLandStatRequest OnLandStatRequest;
  215. public event RequestObjectPropertiesFamily OnObjectGroupRequest;
  216. public event DetailedEstateDataRequest OnDetailedEstateDataRequest;
  217. public event SetEstateFlagsRequest OnSetEstateFlagsRequest;
  218. public event SetEstateTerrainBaseTexture OnSetEstateTerrainBaseTexture;
  219. public event SetEstateTerrainDetailTexture OnSetEstateTerrainDetailTexture;
  220. public event SetEstateTerrainTextureHeights OnSetEstateTerrainTextureHeights;
  221. public event CommitEstateTerrainTextureRequest OnCommitEstateTerrainTextureRequest;
  222. public event SetRegionTerrainSettings OnSetRegionTerrainSettings;
  223. public event EstateRestartSimRequest OnEstateRestartSimRequest;
  224. public event EstateChangeCovenantRequest OnEstateChangeCovenantRequest;
  225. public event UpdateEstateAccessDeltaRequest OnUpdateEstateAccessDeltaRequest;
  226. public event SimulatorBlueBoxMessageRequest OnSimulatorBlueBoxMessageRequest;
  227. public event EstateBlueBoxMessageRequest OnEstateBlueBoxMessageRequest;
  228. public event EstateDebugRegionRequest OnEstateDebugRegionRequest;
  229. public event EstateTeleportOneUserHomeRequest OnEstateTeleportOneUserHomeRequest;
  230. public event EstateTeleportAllUsersHomeRequest OnEstateTeleportAllUsersHomeRequest;
  231. public event ScriptReset OnScriptReset;
  232. public event GetScriptRunning OnGetScriptRunning;
  233. public event SetScriptRunning OnSetScriptRunning;
  234. public event Action<Vector3, bool, bool> OnAutoPilotGo;
  235. public event TerrainUnacked OnUnackedTerrain;
  236. public event RegionHandleRequest OnRegionHandleRequest;
  237. public event ParcelInfoRequest OnParcelInfoRequest;
  238. public event ActivateGesture OnActivateGesture;
  239. public event DeactivateGesture OnDeactivateGesture;
  240. public event ObjectOwner OnObjectOwner;
  241. public event DirPlacesQuery OnDirPlacesQuery;
  242. public event DirFindQuery OnDirFindQuery;
  243. public event DirLandQuery OnDirLandQuery;
  244. public event DirPopularQuery OnDirPopularQuery;
  245. public event DirClassifiedQuery OnDirClassifiedQuery;
  246. public event EventInfoRequest OnEventInfoRequest;
  247. public event ParcelSetOtherCleanTime OnParcelSetOtherCleanTime;
  248. public event MapItemRequest OnMapItemRequest;
  249. public event OfferCallingCard OnOfferCallingCard;
  250. public event AcceptCallingCard OnAcceptCallingCard;
  251. public event DeclineCallingCard OnDeclineCallingCard;
  252. public event SoundTrigger OnSoundTrigger;
  253. public event StartLure OnStartLure;
  254. public event TeleportLureRequest OnTeleportLureRequest;
  255. public event NetworkStats OnNetworkStatsUpdate;
  256. public event ClassifiedInfoRequest OnClassifiedInfoRequest;
  257. public event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
  258. public event ClassifiedDelete OnClassifiedDelete;
  259. public event ClassifiedDelete OnClassifiedGodDelete;
  260. public event EventNotificationAddRequest OnEventNotificationAddRequest;
  261. public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
  262. public event EventGodDelete OnEventGodDelete;
  263. public event ParcelDwellRequest OnParcelDwellRequest;
  264. public event UserInfoRequest OnUserInfoRequest;
  265. public event UpdateUserInfo OnUpdateUserInfo;
  266. public event RetrieveInstantMessages OnRetrieveInstantMessages;
  267. public event PickDelete OnPickDelete;
  268. public event PickGodDelete OnPickGodDelete;
  269. public event PickInfoUpdate OnPickInfoUpdate;
  270. public event AvatarNotesUpdate OnAvatarNotesUpdate;
  271. public event MuteListRequest OnMuteListRequest;
  272. public event AvatarInterestUpdate OnAvatarInterestUpdate;
  273. public event PlacesQuery OnPlacesQuery;
  274. public event FindAgentUpdate OnFindAgent;
  275. public event TrackAgentUpdate OnTrackAgent;
  276. public event NewUserReport OnUserReport;
  277. public event SaveStateHandler OnSaveState;
  278. public event GroupAccountSummaryRequest OnGroupAccountSummaryRequest;
  279. public event GroupAccountDetailsRequest OnGroupAccountDetailsRequest;
  280. public event GroupAccountTransactionsRequest OnGroupAccountTransactionsRequest;
  281. public event FreezeUserUpdate OnParcelFreezeUser;
  282. public event EjectUserUpdate OnParcelEjectUser;
  283. public event ParcelBuyPass OnParcelBuyPass;
  284. public event ParcelGodMark OnParcelGodMark;
  285. public event GroupActiveProposalsRequest OnGroupActiveProposalsRequest;
  286. public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
  287. public event SimWideDeletesDelegate OnSimWideDeletes;
  288. public event SendPostcard OnSendPostcard;
  289. public event MuteListEntryUpdate OnUpdateMuteListEntry;
  290. public event MuteListEntryRemove OnRemoveMuteListEntry;
  291. public event GodlikeMessage onGodlikeMessage;
  292. public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
  293. #pragma warning restore 67
  294. /// <value>
  295. /// This agent's UUID
  296. /// </value>
  297. private UUID m_agentId;
  298. public ISceneAgent SceneAgent { get; set; }
  299. /// <value>
  300. /// The last caps seed url that this client was given.
  301. /// </value>
  302. public string CapsSeedUrl;
  303. private Vector3 startPos = new Vector3(((int)Constants.RegionSize * 0.5f), ((int)Constants.RegionSize * 0.5f), 2);
  304. public virtual Vector3 StartPos
  305. {
  306. get { return startPos; }
  307. set { }
  308. }
  309. public virtual UUID AgentId
  310. {
  311. get { return m_agentId; }
  312. }
  313. public UUID SessionId { get; set; }
  314. public UUID SecureSessionId { get; set; }
  315. public virtual string FirstName
  316. {
  317. get { return m_firstName; }
  318. }
  319. private string m_firstName;
  320. public virtual string LastName
  321. {
  322. get { return m_lastName; }
  323. }
  324. private string m_lastName;
  325. public virtual String Name
  326. {
  327. get { return FirstName + " " + LastName; }
  328. }
  329. public bool IsActive
  330. {
  331. get { return true; }
  332. set { }
  333. }
  334. public bool IsLoggingOut { get; set; }
  335. public UUID ActiveGroupId
  336. {
  337. get { return UUID.Zero; }
  338. }
  339. public string ActiveGroupName
  340. {
  341. get { return String.Empty; }
  342. }
  343. public ulong ActiveGroupPowers
  344. {
  345. get { return 0; }
  346. }
  347. public bool IsGroupMember(UUID groupID)
  348. {
  349. return false;
  350. }
  351. public ulong GetGroupPowers(UUID groupID)
  352. {
  353. return 0;
  354. }
  355. public virtual int NextAnimationSequenceNumber
  356. {
  357. get { return 1; }
  358. }
  359. public IScene Scene
  360. {
  361. get { return m_scene; }
  362. }
  363. public bool SendLogoutPacketWhenClosing
  364. {
  365. set { }
  366. }
  367. private uint m_circuitCode;
  368. public uint CircuitCode
  369. {
  370. get { return m_circuitCode; }
  371. set { m_circuitCode = value; }
  372. }
  373. public IPEndPoint RemoteEndPoint
  374. {
  375. get { return new IPEndPoint(IPAddress.Loopback, (ushort)m_circuitCode); }
  376. }
  377. /// <summary>
  378. /// Constructor
  379. /// </summary>
  380. /// <param name="agentData"></param>
  381. /// <param name="scene"></param>
  382. /// <param name="sceneManager"></param>
  383. public TestClient(AgentCircuitData agentData, Scene scene)
  384. {
  385. m_agentId = agentData.AgentID;
  386. m_firstName = agentData.firstname;
  387. m_lastName = agentData.lastname;
  388. m_circuitCode = agentData.circuitcode;
  389. m_scene = scene;
  390. SessionId = agentData.SessionID;
  391. SecureSessionId = agentData.SecureSessionID;
  392. CapsSeedUrl = agentData.CapsPath;
  393. ReceivedKills = new List<uint>();
  394. ReceivedOfflineNotifications = new List<UUID>();
  395. ReceivedOnlineNotifications = new List<UUID>();
  396. ReceivedFriendshipTerminations = new List<UUID>();
  397. SentImageDataPackets = new List<ImageDataPacket>();
  398. SentImagePacketPackets = new List<ImagePacketPacket>();
  399. SentImageNotInDatabasePackets = new List<ImageNotInDatabasePacket>();
  400. }
  401. /// <summary>
  402. /// Trigger chat coming from this connection.
  403. /// </summary>
  404. /// <param name="channel"></param>
  405. /// <param name="type"></param>
  406. /// <param name="message"></param>
  407. public bool Chat(int channel, ChatTypeEnum type, string message)
  408. {
  409. ChatMessage handlerChatFromClient = OnChatFromClient;
  410. if (handlerChatFromClient != null)
  411. {
  412. OSChatMessage args = new OSChatMessage();
  413. args.Channel = channel;
  414. args.From = Name;
  415. args.Message = message;
  416. args.Type = type;
  417. args.Scene = Scene;
  418. args.Sender = this;
  419. args.SenderUUID = AgentId;
  420. handlerChatFromClient(this, args);
  421. }
  422. return true;
  423. }
  424. /// <summary>
  425. /// Attempt a teleport to the given region.
  426. /// </summary>
  427. /// <param name="regionHandle"></param>
  428. /// <param name="position"></param>
  429. /// <param name="lookAt"></param>
  430. public void Teleport(ulong regionHandle, Vector3 position, Vector3 lookAt)
  431. {
  432. OnTeleportLocationRequest(this, regionHandle, position, lookAt, 16);
  433. }
  434. public void CompleteMovement()
  435. {
  436. if (OnCompleteMovementToRegion != null)
  437. OnCompleteMovementToRegion(this, true);
  438. }
  439. /// <summary>
  440. /// Emulate sending an IM from the viewer to the simulator.
  441. /// </summary>
  442. /// <param name='im'></param>
  443. public void HandleImprovedInstantMessage(GridInstantMessage im)
  444. {
  445. ImprovedInstantMessage handlerInstantMessage = OnInstantMessage;
  446. if (handlerInstantMessage != null)
  447. handlerInstantMessage(this, im);
  448. }
  449. public virtual void ActivateGesture(UUID assetId, UUID gestureId)
  450. {
  451. }
  452. public virtual void SendWearables(AvatarWearable[] wearables, int serial)
  453. {
  454. }
  455. public virtual void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry)
  456. {
  457. }
  458. public void SendCachedTextureResponse(ISceneEntity avatar, int serial, List<CachedTextureResponseArg> cachedTextures)
  459. {
  460. }
  461. public virtual void Kick(string message)
  462. {
  463. }
  464. public virtual void SendStartPingCheck(byte seq)
  465. {
  466. }
  467. public virtual void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data)
  468. {
  469. }
  470. public virtual void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle)
  471. {
  472. }
  473. public virtual void SendKillObject(List<uint> localID)
  474. {
  475. ReceivedKills.AddRange(localID);
  476. }
  477. public virtual void SetChildAgentThrottle(byte[] throttle)
  478. {
  479. }
  480. public byte[] GetThrottlesPacked(float multiplier)
  481. {
  482. return new byte[0];
  483. }
  484. public virtual void SendAnimations(UUID[] animations, int[] seqs, UUID sourceAgentId, UUID[] objectIDs)
  485. {
  486. }
  487. public virtual void SendChatMessage(
  488. string message, byte type, Vector3 fromPos, string fromName,
  489. UUID fromAgentID, UUID ownerID, byte source, byte audible)
  490. {
  491. // Console.WriteLine("mmm {0} {1} {2}", message, Name, AgentId);
  492. if (OnReceivedChatMessage != null)
  493. OnReceivedChatMessage(message, type, fromPos, fromName, fromAgentID, ownerID, source, audible);
  494. }
  495. public void SendInstantMessage(GridInstantMessage im)
  496. {
  497. if (OnReceivedInstantMessage != null)
  498. OnReceivedInstantMessage(im);
  499. }
  500. public void SendGenericMessage(string method, UUID invoice, List<string> message)
  501. {
  502. }
  503. public void SendGenericMessage(string method, UUID invoice, List<byte[]> message)
  504. {
  505. }
  506. public virtual void SendLayerData(float[] map)
  507. {
  508. }
  509. public virtual void SendLayerData(int px, int py, float[] map)
  510. {
  511. }
  512. public virtual void SendLayerData(int px, int py, float[] map, bool track)
  513. {
  514. }
  515. public virtual void SendWindData(Vector2[] windSpeeds) { }
  516. public virtual void SendCloudData(float[] cloudCover) { }
  517. public virtual void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look)
  518. {
  519. if (OnReceivedMoveAgentIntoRegion != null)
  520. OnReceivedMoveAgentIntoRegion(regInfo, pos, look);
  521. }
  522. public virtual AgentCircuitData RequestClientInfo()
  523. {
  524. AgentCircuitData agentData = new AgentCircuitData();
  525. agentData.AgentID = AgentId;
  526. agentData.SessionID = SessionId;
  527. agentData.SecureSessionID = UUID.Zero;
  528. agentData.circuitcode = m_circuitCode;
  529. agentData.child = false;
  530. agentData.firstname = m_firstName;
  531. agentData.lastname = m_lastName;
  532. ICapabilitiesModule capsModule = m_scene.RequestModuleInterface<ICapabilitiesModule>();
  533. if (capsModule != null)
  534. {
  535. agentData.CapsPath = capsModule.GetCapsPath(m_agentId);
  536. agentData.ChildrenCapSeeds = new Dictionary<ulong, string>(capsModule.GetChildrenSeeds(m_agentId));
  537. }
  538. return agentData;
  539. }
  540. public virtual void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint)
  541. {
  542. if (OnTestClientInformClientOfNeighbour != null)
  543. OnTestClientInformClientOfNeighbour(neighbourHandle, neighbourExternalEndPoint);
  544. }
  545. public virtual void SendRegionTeleport(
  546. ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint,
  547. uint locationID, uint flags, string capsURL)
  548. {
  549. m_log.DebugFormat(
  550. "[TEST CLIENT]: Received SendRegionTeleport for {0} {1} on {2}", m_firstName, m_lastName, m_scene.Name);
  551. CapsSeedUrl = capsURL;
  552. if (OnTestClientSendRegionTeleport != null)
  553. OnTestClientSendRegionTeleport(
  554. regionHandle, simAccess, regionExternalEndPoint, locationID, flags, capsURL);
  555. }
  556. public virtual void SendTeleportFailed(string reason)
  557. {
  558. m_log.DebugFormat(
  559. "[TEST CLIENT]: Teleport failed for {0} {1} on {2} with reason {3}",
  560. m_firstName, m_lastName, m_scene.Name, reason);
  561. }
  562. public virtual void CrossRegion(ulong newRegionHandle, Vector3 pos, Vector3 lookAt,
  563. IPEndPoint newRegionExternalEndPoint, string capsURL)
  564. {
  565. // This is supposed to send a packet to the client telling it's ready to start region crossing.
  566. // Instead I will just signal I'm ready, mimicking the communication behavior.
  567. // It's ugly, but avoids needless communication setup. This is used in ScenePresenceTests.cs.
  568. // Arthur V.
  569. wh.Set();
  570. }
  571. public virtual void SendMapBlock(List<MapBlockData> mapBlocks, uint flag)
  572. {
  573. }
  574. public virtual void SendLocalTeleport(Vector3 position, Vector3 lookAt, uint flags)
  575. {
  576. }
  577. public virtual void SendTeleportStart(uint flags)
  578. {
  579. }
  580. public void SendTeleportProgress(uint flags, string message)
  581. {
  582. }
  583. public virtual void SendMoneyBalance(UUID transaction, bool success, byte[] description, int balance, int transactionType, UUID sourceID, bool sourceIsGroup, UUID destID, bool destIsGroup, int amount, string item)
  584. {
  585. }
  586. public virtual void SendPayPrice(UUID objectID, int[] payPrice)
  587. {
  588. }
  589. public virtual void SendCoarseLocationUpdate(List<UUID> users, List<Vector3> CoarseLocations)
  590. {
  591. }
  592. public virtual void SendDialog(string objectname, UUID objectID, UUID ownerID, string ownerFirstName, string ownerLastName, string msg, UUID textureID, int ch, string[] buttonlabels)
  593. {
  594. }
  595. public void SendAvatarDataImmediate(ISceneEntity avatar)
  596. {
  597. }
  598. public void SendEntityUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags)
  599. {
  600. if (OnReceivedEntityUpdate != null)
  601. OnReceivedEntityUpdate(entity, updateFlags);
  602. }
  603. public void ReprioritizeUpdates()
  604. {
  605. }
  606. public void FlushPrimUpdates()
  607. {
  608. }
  609. public virtual void SendInventoryFolderDetails(UUID ownerID, UUID folderID,
  610. List<InventoryItemBase> items,
  611. List<InventoryFolderBase> folders,
  612. int version,
  613. bool fetchFolders,
  614. bool fetchItems)
  615. {
  616. }
  617. public virtual void SendInventoryItemDetails(UUID ownerID, InventoryItemBase item)
  618. {
  619. }
  620. public virtual void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackID)
  621. {
  622. }
  623. public virtual void SendRemoveInventoryItem(UUID itemID)
  624. {
  625. }
  626. public virtual void SendBulkUpdateInventory(InventoryNodeBase node)
  627. {
  628. }
  629. public void SendTakeControls(int controls, bool passToAgent, bool TakeControls)
  630. {
  631. }
  632. public virtual void SendTaskInventory(UUID taskID, short serial, byte[] fileName)
  633. {
  634. }
  635. public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data)
  636. {
  637. }
  638. public virtual void SendAbortXferPacket(ulong xferID)
  639. {
  640. }
  641. public virtual void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit,
  642. int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, float PriceObjectScaleFactor,
  643. int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent, int PricePublicObjectDecay,
  644. int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice, float TeleportPriceExponent)
  645. {
  646. }
  647. public virtual void SendNameReply(UUID profileId, string firstname, string lastname)
  648. {
  649. }
  650. public virtual void SendPreLoadSound(UUID objectID, UUID ownerID, UUID soundID)
  651. {
  652. }
  653. public virtual void SendPlayAttachedSound(UUID soundID, UUID objectID, UUID ownerID, float gain,
  654. byte flags)
  655. {
  656. }
  657. public void SendTriggeredSound(UUID soundID, UUID ownerID, UUID objectID, UUID parentID, ulong handle, Vector3 position, float gain)
  658. {
  659. }
  660. public void SendAttachedSoundGainChange(UUID objectID, float gain)
  661. {
  662. }
  663. public void SendAlertMessage(string message)
  664. {
  665. }
  666. public void SendAgentAlertMessage(string message, bool modal)
  667. {
  668. }
  669. public void SendSystemAlertMessage(string message)
  670. {
  671. }
  672. public void SendLoadURL(string objectname, UUID objectID, UUID ownerID, bool groupOwned, string message,
  673. string url)
  674. {
  675. }
  676. public virtual void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args)
  677. {
  678. if (OnRegionHandShakeReply != null)
  679. {
  680. OnRegionHandShakeReply(this);
  681. }
  682. }
  683. public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID)
  684. {
  685. }
  686. public void SendConfirmXfer(ulong xferID, uint PacketID)
  687. {
  688. }
  689. public void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName)
  690. {
  691. }
  692. public void SendInitiateDownload(string simFileName, string clientFileName)
  693. {
  694. }
  695. public void SendImageFirstPart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec)
  696. {
  697. ImageDataPacket im = new ImageDataPacket();
  698. im.Header.Reliable = false;
  699. im.ImageID.Packets = numParts;
  700. im.ImageID.ID = ImageUUID;
  701. if (ImageSize > 0)
  702. im.ImageID.Size = ImageSize;
  703. im.ImageData.Data = ImageData;
  704. im.ImageID.Codec = imageCodec;
  705. im.Header.Zerocoded = true;
  706. SentImageDataPackets.Add(im);
  707. }
  708. public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData)
  709. {
  710. ImagePacketPacket im = new ImagePacketPacket();
  711. im.Header.Reliable = false;
  712. im.ImageID.Packet = partNumber;
  713. im.ImageID.ID = imageUuid;
  714. im.ImageData.Data = imageData;
  715. SentImagePacketPackets.Add(im);
  716. }
  717. public void SendImageNotFound(UUID imageid)
  718. {
  719. ImageNotInDatabasePacket p = new ImageNotInDatabasePacket();
  720. p.ImageID.ID = imageid;
  721. SentImageNotInDatabasePackets.Add(p);
  722. }
  723. public void SendShutdownConnectionNotice()
  724. {
  725. }
  726. public void SendSimStats(SimStats stats)
  727. {
  728. }
  729. public void SendObjectPropertiesFamilyData(ISceneEntity Entity, uint RequestFlags)
  730. {
  731. }
  732. public void SendObjectPropertiesReply(ISceneEntity entity)
  733. {
  734. }
  735. public void SendAgentOffline(UUID[] agentIDs)
  736. {
  737. ReceivedOfflineNotifications.AddRange(agentIDs);
  738. }
  739. public void SendAgentOnline(UUID[] agentIDs)
  740. {
  741. ReceivedOnlineNotifications.AddRange(agentIDs);
  742. }
  743. public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,
  744. Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
  745. {
  746. }
  747. public void SendAdminResponse(UUID Token, uint AdminLevel)
  748. {
  749. }
  750. public void SendGroupMembership(GroupMembershipData[] GroupMembership)
  751. {
  752. }
  753. public void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong time, uint dlen, uint ylen, float phase)
  754. {
  755. }
  756. public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks)
  757. {
  758. }
  759. public void SendViewerTime(int phase)
  760. {
  761. }
  762. public void SendAvatarProperties(UUID avatarID, string aboutText, string bornOn, Byte[] charterMember,
  763. string flAbout, uint flags, UUID flImageID, UUID imageID, string profileURL,
  764. UUID partnerID)
  765. {
  766. }
  767. public int DebugPacketLevel { get; set; }
  768. public void InPacket(object NewPack)
  769. {
  770. }
  771. public void ProcessInPacket(Packet NewPack)
  772. {
  773. }
  774. /// <summary>
  775. /// This is a TestClient only method to do shutdown tasks that are normally carried out by LLUDPServer.RemoveClient()
  776. /// </summary>
  777. public void Logout()
  778. {
  779. // We must set this here so that the presence is removed from the PresenceService by the PresenceDetector
  780. IsLoggingOut = true;
  781. Close();
  782. }
  783. public void Close()
  784. {
  785. Close(false);
  786. }
  787. public void Close(bool force)
  788. {
  789. // Fire the callback for this connection closing
  790. // This is necesary to get the presence detector to notice that a client has logged out.
  791. if (OnConnectionClosed != null)
  792. OnConnectionClosed(this);
  793. m_scene.RemoveClient(AgentId, true);
  794. }
  795. public void Start()
  796. {
  797. throw new NotImplementedException();
  798. }
  799. public void Stop()
  800. {
  801. }
  802. public void SendBlueBoxMessage(UUID FromAvatarID, String FromAvatarName, String Message)
  803. {
  804. }
  805. public void SendLogoutPacket()
  806. {
  807. }
  808. public void Terminate()
  809. {
  810. }
  811. public ClientInfo GetClientInfo()
  812. {
  813. return null;
  814. }
  815. public void SetClientInfo(ClientInfo info)
  816. {
  817. }
  818. public void SendScriptQuestion(UUID objectID, string taskName, string ownerName, UUID itemID, int question)
  819. {
  820. }
  821. public void SendHealth(float health)
  822. {
  823. }
  824. public void SendTelehubInfo(UUID ObjectID, string ObjectName, Vector3 ObjectPos, Quaternion ObjectRot, List<Vector3> SpawnPoint)
  825. {
  826. }
  827. public void SendEstateList(UUID invoice, int code, UUID[] Data, uint estateID)
  828. {
  829. }
  830. public void SendBannedUserList(UUID invoice, EstateBan[] banlist, uint estateID)
  831. {
  832. }
  833. public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args)
  834. {
  835. }
  836. public void SendEstateCovenantInformation(UUID covenant)
  837. {
  838. }
  839. public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, uint covenantChanged, string abuseEmail, UUID estateOwner)
  840. {
  841. }
  842. public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, ILandObject lo, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
  843. {
  844. }
  845. public void SendLandAccessListData(List<LandAccessEntry> accessList, uint accessFlag, int localLandID)
  846. {
  847. }
  848. public void SendForceClientSelectObjects(List<uint> objectIDs)
  849. {
  850. }
  851. public void SendCameraConstraint(Vector4 ConstraintPlane)
  852. {
  853. }
  854. public void SendLandObjectOwners(LandData land, List<UUID> groups, Dictionary<UUID, int> ownersAndCount)
  855. {
  856. }
  857. public void SendLandParcelOverlay(byte[] data, int sequence_id)
  858. {
  859. }
  860. public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
  861. {
  862. }
  863. public void SendParcelMediaUpdate(string mediaUrl, UUID mediaTextureID, byte autoScale, string mediaType,
  864. string mediaDesc, int mediaWidth, int mediaHeight, byte mediaLoop)
  865. {
  866. }
  867. public void SendGroupNameReply(UUID groupLLUID, string GroupName)
  868. {
  869. }
  870. public void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia)
  871. {
  872. }
  873. public void SendScriptRunningReply(UUID objectID, UUID itemID, bool running)
  874. {
  875. }
  876. public void SendAsset(AssetRequestToClient req)
  877. {
  878. }
  879. public void SendTexture(AssetBase TextureAsset)
  880. {
  881. }
  882. public void SendSetFollowCamProperties (UUID objectID, SortedDictionary<int, float> parameters)
  883. {
  884. }
  885. public void SendClearFollowCamProperties (UUID objectID)
  886. {
  887. }
  888. public void SendRegionHandle (UUID regoinID, ulong handle)
  889. {
  890. }
  891. public void SendParcelInfo (RegionInfo info, LandData land, UUID parcelID, uint x, uint y)
  892. {
  893. }
  894. public void SetClientOption(string option, string value)
  895. {
  896. }
  897. public string GetClientOption(string option)
  898. {
  899. return string.Empty;
  900. }
  901. public void SendScriptTeleportRequest(string objName, string simName, Vector3 pos, Vector3 lookAt)
  902. {
  903. }
  904. public void SendDirPlacesReply(UUID queryID, DirPlacesReplyData[] data)
  905. {
  906. }
  907. public void SendDirPeopleReply(UUID queryID, DirPeopleReplyData[] data)
  908. {
  909. }
  910. public void SendDirEventsReply(UUID queryID, DirEventsReplyData[] data)
  911. {
  912. }
  913. public void SendDirGroupsReply(UUID queryID, DirGroupsReplyData[] data)
  914. {
  915. }
  916. public void SendDirClassifiedReply(UUID queryID, DirClassifiedReplyData[] data)
  917. {
  918. }
  919. public void SendDirLandReply(UUID queryID, DirLandReplyData[] data)
  920. {
  921. }
  922. public void SendDirPopularReply(UUID queryID, DirPopularReplyData[] data)
  923. {
  924. }
  925. public void SendMapItemReply(mapItemReply[] replies, uint mapitemtype, uint flags)
  926. {
  927. }
  928. public void SendEventInfoReply (EventData info)
  929. {
  930. }
  931. public void SendOfferCallingCard (UUID destID, UUID transactionID)
  932. {
  933. }
  934. public void SendAcceptCallingCard (UUID transactionID)
  935. {
  936. }
  937. public void SendDeclineCallingCard (UUID transactionID)
  938. {
  939. }
  940. public void SendAvatarGroupsReply(UUID avatarID, GroupMembershipData[] data)
  941. {
  942. }
  943. public void SendJoinGroupReply(UUID groupID, bool success)
  944. {
  945. }
  946. public void SendEjectGroupMemberReply(UUID agentID, UUID groupID, bool succss)
  947. {
  948. }
  949. public void SendLeaveGroupReply(UUID groupID, bool success)
  950. {
  951. }
  952. public void SendTerminateFriend(UUID exFriendID)
  953. {
  954. ReceivedFriendshipTerminations.Add(exFriendID);
  955. }
  956. public bool AddGenericPacketHandler(string MethodName, GenericMessage handler)
  957. {
  958. //throw new NotImplementedException();
  959. return false;
  960. }
  961. public void SendAvatarClassifiedReply(UUID targetID, UUID[] classifiedID, string[] name)
  962. {
  963. }
  964. public 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)
  965. {
  966. }
  967. public void SendAgentDropGroup(UUID groupID)
  968. {
  969. }
  970. public void SendAvatarNotesReply(UUID targetID, string text)
  971. {
  972. }
  973. public void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks)
  974. {
  975. }
  976. public void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds)
  977. {
  978. }
  979. public void SendParcelDwellReply(int localID, UUID parcelID, float dwell)
  980. {
  981. }
  982. public void SendUserInfoReply(bool imViaEmail, bool visible, string email)
  983. {
  984. }
  985. public void SendCreateGroupReply(UUID groupID, bool success, string message)
  986. {
  987. }
  988. public void RefreshGroupMembership()
  989. {
  990. }
  991. public void SendUseCachedMuteList()
  992. {
  993. }
  994. public void SendMuteListUpdate(string filename)
  995. {
  996. }
  997. public 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)
  998. {
  999. }
  1000. public bool TryGet<T>(out T iface)
  1001. {
  1002. iface = default(T);
  1003. return false;
  1004. }
  1005. public T Get<T>()
  1006. {
  1007. return default(T);
  1008. }
  1009. public void Disconnect(string reason)
  1010. {
  1011. }
  1012. public void Disconnect()
  1013. {
  1014. }
  1015. public void SendRebakeAvatarTextures(UUID textureID)
  1016. {
  1017. if (OnReceivedSendRebakeAvatarTextures != null)
  1018. OnReceivedSendRebakeAvatarTextures(textureID);
  1019. }
  1020. public void SendAvatarInterestsReply(UUID avatarID, uint wantMask, string wantText, uint skillsMask, string skillsText, string languages)
  1021. {
  1022. }
  1023. public void SendGroupAccountingDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID, int amt)
  1024. {
  1025. }
  1026. public void SendGroupAccountingSummary(IClientAPI sender,UUID groupID, uint moneyAmt, int totalTier, int usedTier)
  1027. {
  1028. }
  1029. public void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt)
  1030. {
  1031. }
  1032. public void SendGroupVoteHistory(UUID groupID, UUID transactionID, GroupVoteHistory[] Votes)
  1033. {
  1034. }
  1035. public void SendGroupActiveProposals(UUID groupID, UUID transactionID, GroupActiveProposals[] Proposals)
  1036. {
  1037. }
  1038. public void SendChangeUserRights(UUID agentID, UUID friendID, int rights)
  1039. {
  1040. }
  1041. public void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId)
  1042. {
  1043. }
  1044. public void SendAgentTerseUpdate(ISceneEntity presence)
  1045. {
  1046. }
  1047. public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data)
  1048. {
  1049. }
  1050. public void SendPartPhysicsProprieties(ISceneEntity entity)
  1051. {
  1052. }
  1053. }
  1054. }