TestClient.cs 48 KB

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