TestClient.cs 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408
  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 FetchInventory 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 virtual UUID AgentId
  318. {
  319. get { return m_agentId; }
  320. }
  321. public UUID SessionId { get; set; }
  322. public UUID SecureSessionId { get; set; }
  323. public virtual string FirstName
  324. {
  325. get { return m_firstName; }
  326. }
  327. private string m_firstName;
  328. public virtual string LastName
  329. {
  330. get { return m_lastName; }
  331. }
  332. private string m_lastName;
  333. public virtual String Name
  334. {
  335. get { return FirstName + " " + LastName; }
  336. }
  337. public int PingTimeMS { get { return 0; } }
  338. public bool IsActive
  339. {
  340. get { return true; }
  341. set { }
  342. }
  343. public bool IsLoggingOut { get; set; }
  344. public UUID ActiveGroupId
  345. {
  346. get { return UUID.Zero; }
  347. set { }
  348. }
  349. public string ActiveGroupName
  350. {
  351. get { return String.Empty; }
  352. set { }
  353. }
  354. public ulong ActiveGroupPowers
  355. {
  356. get { return 0; }
  357. set { }
  358. }
  359. public bool IsGroupMember(UUID groupID)
  360. {
  361. return false;
  362. }
  363. public Dictionary<UUID, ulong> GetGroupPowers()
  364. {
  365. return new Dictionary<UUID, ulong>();
  366. }
  367. public void SetGroupPowers(Dictionary<UUID, ulong> powers) { }
  368. public ulong GetGroupPowers(UUID groupID)
  369. {
  370. return 0;
  371. }
  372. public virtual int NextAnimationSequenceNumber
  373. {
  374. get { return 1; }
  375. set { }
  376. }
  377. public IScene Scene
  378. {
  379. get { return m_scene; }
  380. }
  381. public bool SendLogoutPacketWhenClosing
  382. {
  383. set { }
  384. }
  385. private uint m_circuitCode;
  386. public uint CircuitCode
  387. {
  388. get { return m_circuitCode; }
  389. set { m_circuitCode = value; }
  390. }
  391. public IPEndPoint RemoteEndPoint
  392. {
  393. get { return new IPEndPoint(IPAddress.Loopback, (ushort)m_circuitCode); }
  394. }
  395. public List<uint> SelectedObjects {get; private set;}
  396. /// <summary>
  397. /// Constructor
  398. /// </summary>
  399. /// <param name="agentData"></param>
  400. /// <param name="scene"></param>
  401. /// <param name="sceneManager"></param>
  402. public TestClient(AgentCircuitData agentData, Scene scene)
  403. {
  404. m_agentId = agentData.AgentID;
  405. m_firstName = agentData.firstname;
  406. m_lastName = agentData.lastname;
  407. m_circuitCode = agentData.circuitcode;
  408. m_scene = scene;
  409. SessionId = agentData.SessionID;
  410. SecureSessionId = agentData.SecureSessionID;
  411. CapsSeedUrl = agentData.CapsPath;
  412. ReceivedKills = new List<uint>();
  413. ReceivedOfflineNotifications = new List<UUID>();
  414. ReceivedOnlineNotifications = new List<UUID>();
  415. ReceivedFriendshipTerminations = new List<UUID>();
  416. SentImageDataPackets = new List<ImageDataPacket>();
  417. SentImagePacketPackets = new List<ImagePacketPacket>();
  418. SentImageNotInDatabasePackets = new List<ImageNotInDatabasePacket>();
  419. }
  420. /// <summary>
  421. /// Trigger chat coming from this connection.
  422. /// </summary>
  423. /// <param name="channel"></param>
  424. /// <param name="type"></param>
  425. /// <param name="message"></param>
  426. public bool Chat(int channel, ChatTypeEnum type, string message)
  427. {
  428. ChatMessage handlerChatFromClient = OnChatFromClient;
  429. if (handlerChatFromClient != null)
  430. {
  431. OSChatMessage args = new OSChatMessage();
  432. args.Channel = channel;
  433. args.From = Name;
  434. args.Message = message;
  435. args.Type = type;
  436. args.Scene = Scene;
  437. args.Sender = this;
  438. args.SenderUUID = AgentId;
  439. handlerChatFromClient(this, args);
  440. }
  441. return true;
  442. }
  443. /// <summary>
  444. /// Attempt a teleport to the given region.
  445. /// </summary>
  446. /// <param name="regionHandle"></param>
  447. /// <param name="position"></param>
  448. /// <param name="lookAt"></param>
  449. public void Teleport(ulong regionHandle, Vector3 position, Vector3 lookAt)
  450. {
  451. OnTeleportLocationRequest(this, regionHandle, position, lookAt, 16);
  452. }
  453. public void CompleteMovement()
  454. {
  455. if (OnCompleteMovementToRegion != null)
  456. OnCompleteMovementToRegion(this, true);
  457. }
  458. /// <summary>
  459. /// Emulate sending an IM from the viewer to the simulator.
  460. /// </summary>
  461. /// <param name='im'></param>
  462. public void HandleImprovedInstantMessage(GridInstantMessage im)
  463. {
  464. ImprovedInstantMessage handlerInstantMessage = OnInstantMessage;
  465. if (handlerInstantMessage != null)
  466. handlerInstantMessage(this, im);
  467. }
  468. public virtual void ActivateGesture(UUID assetId, UUID gestureId)
  469. {
  470. }
  471. public virtual void SendWearables(AvatarWearable[] wearables, int serial)
  472. {
  473. }
  474. public virtual void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry)
  475. {
  476. }
  477. public void SendCachedTextureResponse(ISceneEntity avatar, int serial, List<CachedTextureResponseArg> cachedTextures)
  478. {
  479. }
  480. public virtual void Kick(string message)
  481. {
  482. }
  483. public virtual void SendStartPingCheck(byte seq)
  484. {
  485. }
  486. public virtual void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data)
  487. {
  488. }
  489. public virtual void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle)
  490. {
  491. }
  492. public virtual void SendKillObject(List<uint> localID)
  493. {
  494. ReceivedKills.AddRange(localID);
  495. }
  496. public void SendPartFullUpdate(ISceneEntity ent, uint? parentID)
  497. {
  498. }
  499. public virtual void SetChildAgentThrottle(byte[] throttle)
  500. {
  501. }
  502. public virtual void SetChildAgentThrottle(byte[] throttle, float factor)
  503. {
  504. }
  505. public void SetAgentThrottleSilent(int throttle, int setting)
  506. {
  507. }
  508. public int GetAgentThrottleSilent(int throttle)
  509. {
  510. return 0;
  511. }
  512. public byte[] GetThrottlesPacked(float multiplier)
  513. {
  514. return new byte[0];
  515. }
  516. public virtual void SendAnimations(UUID[] animations, int[] seqs, UUID sourceAgentId, UUID[] objectIDs)
  517. {
  518. }
  519. public virtual void SendChatMessage(
  520. string message, byte type, Vector3 fromPos, string fromName,
  521. UUID fromAgentID, UUID ownerID, byte source, byte audible)
  522. {
  523. // Console.WriteLine("mmm {0} {1} {2}", message, Name, AgentId);
  524. if (OnReceivedChatMessage != null)
  525. OnReceivedChatMessage(message, type, fromPos, fromName, fromAgentID, ownerID, source, audible);
  526. }
  527. public void SendInstantMessage(GridInstantMessage im)
  528. {
  529. if (OnReceivedInstantMessage != null)
  530. OnReceivedInstantMessage(im);
  531. }
  532. public void SendGenericMessage(string method, UUID invoice, List<string> message)
  533. {
  534. }
  535. public void SendGenericMessage(string method, UUID invoice, List<byte[]> message)
  536. {
  537. }
  538. public virtual bool CanSendLayerData()
  539. {
  540. return false;
  541. }
  542. public virtual void SendLayerData()
  543. {
  544. }
  545. public void SendLayerData(int[] map)
  546. {
  547. }
  548. public virtual void SendWindData(int version, Vector2[] windSpeeds) { }
  549. public virtual void SendCloudData(int version, float[] cloudCover) { }
  550. public virtual void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look)
  551. {
  552. if (OnReceivedMoveAgentIntoRegion != null)
  553. OnReceivedMoveAgentIntoRegion(regInfo, pos, look);
  554. }
  555. public virtual AgentCircuitData RequestClientInfo()
  556. {
  557. AgentCircuitData agentData = new AgentCircuitData();
  558. agentData.AgentID = AgentId;
  559. agentData.SessionID = SessionId;
  560. agentData.SecureSessionID = UUID.Zero;
  561. agentData.circuitcode = m_circuitCode;
  562. agentData.child = false;
  563. agentData.firstname = m_firstName;
  564. agentData.lastname = m_lastName;
  565. ICapabilitiesModule capsModule = m_scene.RequestModuleInterface<ICapabilitiesModule>();
  566. if (capsModule != null)
  567. {
  568. agentData.CapsPath = capsModule.GetCapsPath(m_agentId);
  569. agentData.ChildrenCapSeeds = new Dictionary<ulong, string>(capsModule.GetChildrenSeeds(m_agentId));
  570. }
  571. return agentData;
  572. }
  573. public virtual void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint)
  574. {
  575. if (OnTestClientInformClientOfNeighbour != null)
  576. OnTestClientInformClientOfNeighbour(neighbourHandle, neighbourExternalEndPoint);
  577. }
  578. public virtual void SendRegionTeleport(
  579. ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint,
  580. uint locationID, uint flags, string capsURL)
  581. {
  582. m_log.DebugFormat(
  583. "[TEST CLIENT]: Received SendRegionTeleport for {0} {1} on {2}", m_firstName, m_lastName, m_scene.Name);
  584. CapsSeedUrl = capsURL;
  585. if (OnTestClientSendRegionTeleport != null)
  586. OnTestClientSendRegionTeleport(
  587. regionHandle, simAccess, regionExternalEndPoint, locationID, flags, capsURL);
  588. }
  589. public virtual void SendTeleportFailed(string reason)
  590. {
  591. m_log.DebugFormat(
  592. "[TEST CLIENT]: Teleport failed for {0} {1} on {2} with reason {3}",
  593. m_firstName, m_lastName, m_scene.Name, reason);
  594. }
  595. public virtual void CrossRegion(ulong newRegionHandle, Vector3 pos, Vector3 lookAt,
  596. IPEndPoint newRegionExternalEndPoint, string capsURL)
  597. {
  598. // This is supposed to send a packet to the client telling it's ready to start region crossing.
  599. // Instead I will just signal I'm ready, mimicking the communication behavior.
  600. // It's ugly, but avoids needless communication setup. This is used in ScenePresenceTests.cs.
  601. // Arthur V.
  602. wh.Set();
  603. }
  604. public virtual void SendMapBlock(List<MapBlockData> mapBlocks, uint flag)
  605. {
  606. }
  607. public virtual void SendLocalTeleport(Vector3 position, Vector3 lookAt, uint flags)
  608. {
  609. }
  610. public virtual void SendTeleportStart(uint flags)
  611. {
  612. }
  613. public void SendTeleportProgress(uint flags, string message)
  614. {
  615. }
  616. 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)
  617. {
  618. }
  619. public virtual void SendPayPrice(UUID objectID, int[] payPrice)
  620. {
  621. }
  622. public virtual void SendCoarseLocationUpdate(List<UUID> users, List<Vector3> CoarseLocations)
  623. {
  624. }
  625. public virtual void SendDialog(string objectname, UUID objectID, UUID ownerID, string ownerFirstName, string ownerLastName, string msg, UUID textureID, int ch, string[] buttonlabels)
  626. {
  627. }
  628. public void SendEntityFullUpdateImmediate(ISceneEntity ent)
  629. {
  630. }
  631. public void SendEntityTerseUpdateImmediate(ISceneEntity ent)
  632. {
  633. }
  634. public void SendEntityUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags)
  635. {
  636. if (OnReceivedEntityUpdate != null)
  637. OnReceivedEntityUpdate(entity, updateFlags);
  638. }
  639. public void ReprioritizeUpdates()
  640. {
  641. }
  642. public void FlushPrimUpdates()
  643. {
  644. }
  645. public virtual void SendInventoryFolderDetails(UUID ownerID, UUID folderID,
  646. List<InventoryItemBase> items,
  647. List<InventoryFolderBase> folders,
  648. int version,
  649. bool fetchFolders,
  650. bool fetchItems)
  651. {
  652. }
  653. public virtual void SendInventoryItemDetails(UUID ownerID, InventoryItemBase item)
  654. {
  655. }
  656. public virtual void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackID)
  657. {
  658. }
  659. public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId)
  660. {
  661. }
  662. public virtual void SendRemoveInventoryItem(UUID itemID)
  663. {
  664. }
  665. public virtual void SendBulkUpdateInventory(InventoryNodeBase node)
  666. {
  667. }
  668. public void SendTakeControls(int controls, bool passToAgent, bool TakeControls)
  669. {
  670. }
  671. public virtual void SendTaskInventory(UUID taskID, short serial, byte[] fileName)
  672. {
  673. }
  674. public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory)
  675. {
  676. }
  677. public virtual void SendAbortXferPacket(ulong xferID)
  678. {
  679. }
  680. public virtual void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit,
  681. int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, float PriceObjectScaleFactor,
  682. int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent, int PricePublicObjectDecay,
  683. int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice, float TeleportPriceExponent)
  684. {
  685. }
  686. public virtual void SendNameReply(UUID profileId, string firstname, string lastname)
  687. {
  688. }
  689. public virtual void SendPreLoadSound(UUID objectID, UUID ownerID, UUID soundID)
  690. {
  691. }
  692. public virtual void SendPlayAttachedSound(UUID soundID, UUID objectID, UUID ownerID, float gain,
  693. byte flags)
  694. {
  695. }
  696. public void SendTriggeredSound(UUID soundID, UUID ownerID, UUID objectID, UUID parentID, ulong handle, Vector3 position, float gain)
  697. {
  698. }
  699. public void SendAttachedSoundGainChange(UUID objectID, float gain)
  700. {
  701. }
  702. public void SendAlertMessage(string message)
  703. {
  704. }
  705. public void SendAgentAlertMessage(string message, bool modal)
  706. {
  707. }
  708. public void SendAlertMessage(string message, string info)
  709. {
  710. }
  711. public void SendSystemAlertMessage(string message)
  712. {
  713. }
  714. public void SendLoadURL(string objectname, UUID objectID, UUID ownerID, bool groupOwned, string message,
  715. string url)
  716. {
  717. }
  718. public virtual void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args)
  719. {
  720. if (OnRegionHandShakeReply != null)
  721. {
  722. OnRegionHandShakeReply(this);
  723. }
  724. }
  725. public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID)
  726. {
  727. }
  728. public void SendConfirmXfer(ulong xferID, uint PacketID)
  729. {
  730. }
  731. public void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName)
  732. {
  733. }
  734. public void SendInitiateDownload(string simFileName, string clientFileName)
  735. {
  736. }
  737. public void SendImageFirstPart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec)
  738. {
  739. ImageDataPacket im = new ImageDataPacket();
  740. im.Header.Reliable = false;
  741. im.ImageID.Packets = numParts;
  742. im.ImageID.ID = ImageUUID;
  743. if (ImageSize > 0)
  744. im.ImageID.Size = ImageSize;
  745. im.ImageData.Data = ImageData;
  746. im.ImageID.Codec = imageCodec;
  747. im.Header.Zerocoded = true;
  748. SentImageDataPackets.Add(im);
  749. }
  750. public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData)
  751. {
  752. ImagePacketPacket im = new ImagePacketPacket();
  753. im.Header.Reliable = false;
  754. im.ImageID.Packet = partNumber;
  755. im.ImageID.ID = imageUuid;
  756. im.ImageData.Data = imageData;
  757. SentImagePacketPackets.Add(im);
  758. }
  759. public void SendImageNotFound(UUID imageid)
  760. {
  761. ImageNotInDatabasePacket p = new ImageNotInDatabasePacket();
  762. p.ImageID.ID = imageid;
  763. SentImageNotInDatabasePackets.Add(p);
  764. }
  765. public void SendShutdownConnectionNotice()
  766. {
  767. }
  768. public void SendSimStats(SimStats stats)
  769. {
  770. }
  771. public void SendObjectPropertiesFamilyData(ISceneEntity Entity, uint RequestFlags)
  772. {
  773. }
  774. public void SendObjectPropertiesReply(ISceneEntity entity)
  775. {
  776. }
  777. public void SendAgentOffline(UUID[] agentIDs)
  778. {
  779. ReceivedOfflineNotifications.AddRange(agentIDs);
  780. }
  781. public void SendAgentOnline(UUID[] agentIDs)
  782. {
  783. ReceivedOnlineNotifications.AddRange(agentIDs);
  784. }
  785. public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY)
  786. {
  787. }
  788. public void SendSitResponse(UUID TargetID, Vector3 OffsetPos,
  789. Quaternion SitOrientation, bool autopilot,
  790. Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
  791. {
  792. }
  793. public void SendAdminResponse(UUID Token, uint AdminLevel)
  794. {
  795. }
  796. public void SendGroupMembership(GroupMembershipData[] GroupMembership)
  797. {
  798. }
  799. public void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong time, uint dlen, uint ylen, float phase)
  800. {
  801. }
  802. public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks)
  803. {
  804. }
  805. public void SendViewerTime(int phase)
  806. {
  807. }
  808. public void SendAvatarProperties(UUID avatarID, string aboutText, string bornOn, Byte[] membershipType,
  809. string flAbout, uint flags, UUID flImageID, UUID imageID, string profileURL,
  810. UUID partnerID)
  811. {
  812. }
  813. public int DebugPacketLevel { get; set; }
  814. public void InPacket(object NewPack)
  815. {
  816. }
  817. public void ProcessInPacket(Packet NewPack)
  818. {
  819. }
  820. /// <summary>
  821. /// This is a TestClient only method to do shutdown tasks that are normally carried out by LLUDPServer.RemoveClient()
  822. /// </summary>
  823. public void Logout()
  824. {
  825. // We must set this here so that the presence is removed from the PresenceService by the PresenceDetector
  826. IsLoggingOut = true;
  827. Close();
  828. }
  829. public void Close()
  830. {
  831. Close(true, false);
  832. }
  833. public void Close(bool sendStop, bool force)
  834. {
  835. // Fire the callback for this connection closing
  836. // This is necesary to get the presence detector to notice that a client has logged out.
  837. if (OnConnectionClosed != null)
  838. OnConnectionClosed(this);
  839. m_scene.RemoveClient(AgentId, true);
  840. }
  841. public void Start()
  842. {
  843. throw new NotImplementedException();
  844. }
  845. public void Stop()
  846. {
  847. }
  848. public void SendBlueBoxMessage(UUID FromAvatarID, String FromAvatarName, String Message)
  849. {
  850. }
  851. public void SendLogoutPacket()
  852. {
  853. }
  854. public void Terminate()
  855. {
  856. }
  857. public ClientInfo GetClientInfo()
  858. {
  859. return null;
  860. }
  861. public void SetClientInfo(ClientInfo info)
  862. {
  863. }
  864. public void SendScriptQuestion(UUID objectID, string taskName, string ownerName, UUID itemID, int question)
  865. {
  866. }
  867. public void SendHealth(float health)
  868. {
  869. }
  870. public void SendTelehubInfo(UUID ObjectID, string ObjectName, Vector3 ObjectPos, Quaternion ObjectRot, List<Vector3> SpawnPoint)
  871. {
  872. }
  873. public void SendEstateList(UUID invoice, int code, UUID[] Data, uint estateID)
  874. {
  875. }
  876. public void SendBannedUserList(UUID invoice, EstateBan[] banlist, uint estateID)
  877. {
  878. }
  879. public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args)
  880. {
  881. }
  882. public void SendEstateCovenantInformation(UUID covenant)
  883. {
  884. }
  885. public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, uint covenantChanged, string abuseEmail, UUID estateOwner)
  886. {
  887. }
  888. public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, ILandObject lo, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
  889. {
  890. }
  891. public void SendLandAccessListData(List<LandAccessEntry> accessList, uint accessFlag, int localLandID)
  892. {
  893. }
  894. public void SendForceClientSelectObjects(List<uint> objectIDs)
  895. {
  896. }
  897. public void SendCameraConstraint(Vector4 ConstraintPlane)
  898. {
  899. }
  900. public void SendLandObjectOwners(LandData land, List<UUID> groups, Dictionary<UUID, int> ownersAndCount)
  901. {
  902. }
  903. public void SendLandParcelOverlay(byte[] data, int sequence_id)
  904. {
  905. }
  906. public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
  907. {
  908. }
  909. public void SendParcelMediaUpdate(string mediaUrl, UUID mediaTextureID, byte autoScale, string mediaType,
  910. string mediaDesc, int mediaWidth, int mediaHeight, byte mediaLoop)
  911. {
  912. }
  913. public void SendGroupNameReply(UUID groupLLUID, string GroupName)
  914. {
  915. }
  916. public void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia)
  917. {
  918. }
  919. public void SendScriptRunningReply(UUID objectID, UUID itemID, bool running)
  920. {
  921. }
  922. public void SendAsset(AssetRequestToClient req)
  923. {
  924. }
  925. public void SendTexture(AssetBase TextureAsset)
  926. {
  927. }
  928. public void SendSetFollowCamProperties (UUID objectID, SortedDictionary<int, float> parameters)
  929. {
  930. }
  931. public void SendClearFollowCamProperties (UUID objectID)
  932. {
  933. }
  934. public void SendRegionHandle (UUID regoinID, ulong handle)
  935. {
  936. }
  937. public void SendParcelInfo (RegionInfo info, LandData land, UUID parcelID, uint x, uint y)
  938. {
  939. }
  940. public void SetClientOption(string option, string value)
  941. {
  942. }
  943. public string GetClientOption(string option)
  944. {
  945. return string.Empty;
  946. }
  947. public void SendScriptTeleportRequest(string objName, string simName, Vector3 pos, Vector3 lookAt)
  948. {
  949. }
  950. public void SendDirPlacesReply(UUID queryID, DirPlacesReplyData[] data)
  951. {
  952. }
  953. public void SendDirPeopleReply(UUID queryID, DirPeopleReplyData[] data)
  954. {
  955. }
  956. public void SendDirEventsReply(UUID queryID, DirEventsReplyData[] data)
  957. {
  958. }
  959. public void SendDirGroupsReply(UUID queryID, DirGroupsReplyData[] data)
  960. {
  961. }
  962. public void SendDirClassifiedReply(UUID queryID, DirClassifiedReplyData[] data)
  963. {
  964. }
  965. public void SendDirLandReply(UUID queryID, DirLandReplyData[] data)
  966. {
  967. }
  968. public void SendDirPopularReply(UUID queryID, DirPopularReplyData[] data)
  969. {
  970. }
  971. public void SendMapItemReply(mapItemReply[] replies, uint mapitemtype, uint flags)
  972. {
  973. }
  974. public void SendEventInfoReply (EventData info)
  975. {
  976. }
  977. public void SendOfferCallingCard (UUID destID, UUID transactionID)
  978. {
  979. }
  980. public void SendAcceptCallingCard (UUID transactionID)
  981. {
  982. }
  983. public void SendDeclineCallingCard (UUID transactionID)
  984. {
  985. }
  986. public void SendAvatarGroupsReply(UUID avatarID, GroupMembershipData[] data)
  987. {
  988. }
  989. public void SendAgentGroupDataUpdate(UUID avatarID, GroupMembershipData[] data)
  990. {
  991. }
  992. public void SendJoinGroupReply(UUID groupID, bool success)
  993. {
  994. }
  995. public void SendEjectGroupMemberReply(UUID agentID, UUID groupID, bool succss)
  996. {
  997. }
  998. public void SendLeaveGroupReply(UUID groupID, bool success)
  999. {
  1000. }
  1001. public void SendTerminateFriend(UUID exFriendID)
  1002. {
  1003. ReceivedFriendshipTerminations.Add(exFriendID);
  1004. }
  1005. public bool AddGenericPacketHandler(string MethodName, GenericMessage handler)
  1006. {
  1007. //throw new NotImplementedException();
  1008. return false;
  1009. }
  1010. public void SendAvatarClassifiedReply(UUID targetID, UUID[] classifiedID, string[] name)
  1011. {
  1012. }
  1013. 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)
  1014. {
  1015. }
  1016. public void SendAgentDropGroup(UUID groupID)
  1017. {
  1018. }
  1019. public void SendAvatarNotesReply(UUID targetID, string text)
  1020. {
  1021. }
  1022. public void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks)
  1023. {
  1024. }
  1025. public void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds)
  1026. {
  1027. }
  1028. public void SendParcelDwellReply(int localID, UUID parcelID, float dwell)
  1029. {
  1030. }
  1031. public void SendUserInfoReply(bool imViaEmail, bool visible, string email)
  1032. {
  1033. }
  1034. public void SendCreateGroupReply(UUID groupID, bool success, string message)
  1035. {
  1036. }
  1037. public void RefreshGroupMembership()
  1038. {
  1039. }
  1040. public void UpdateGroupMembership(GroupMembershipData[] data)
  1041. {
  1042. }
  1043. public void GroupMembershipRemove(UUID GroupID)
  1044. {
  1045. }
  1046. public void GroupMembershipAddReplace(UUID GroupID,ulong GroupPowers)
  1047. {
  1048. }
  1049. public void SendUseCachedMuteList()
  1050. {
  1051. }
  1052. public void SendEmpytMuteList()
  1053. {
  1054. }
  1055. public void SendMuteListUpdate(string filename)
  1056. {
  1057. }
  1058. 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)
  1059. {
  1060. }
  1061. public bool TryGet<T>(out T iface)
  1062. {
  1063. iface = default(T);
  1064. return false;
  1065. }
  1066. public T Get<T>()
  1067. {
  1068. return default(T);
  1069. }
  1070. public void Disconnect(string reason)
  1071. {
  1072. }
  1073. public void Disconnect()
  1074. {
  1075. }
  1076. public void SendRebakeAvatarTextures(UUID textureID)
  1077. {
  1078. if (OnReceivedSendRebakeAvatarTextures != null)
  1079. OnReceivedSendRebakeAvatarTextures(textureID);
  1080. }
  1081. public void SendAvatarInterestsReply(UUID avatarID, uint wantMask, string wantText, uint skillsMask, string skillsText, string languages)
  1082. {
  1083. }
  1084. public void SendGroupAccountingDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID, int amt)
  1085. {
  1086. }
  1087. public void SendGroupAccountingSummary(IClientAPI sender,UUID groupID, uint moneyAmt, int totalTier, int usedTier)
  1088. {
  1089. }
  1090. public void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt)
  1091. {
  1092. }
  1093. public void SendGroupVoteHistory(UUID groupID, UUID transactionID, GroupVoteHistory[] Votes)
  1094. {
  1095. }
  1096. public void SendGroupActiveProposals(UUID groupID, UUID transactionID, GroupActiveProposals[] Proposals)
  1097. {
  1098. }
  1099. public void SendChangeUserRights(UUID agentID, UUID friendID, int rights)
  1100. {
  1101. }
  1102. public void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId)
  1103. {
  1104. }
  1105. public void SendAgentTerseUpdate(ISceneEntity presence)
  1106. {
  1107. }
  1108. public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data)
  1109. {
  1110. }
  1111. public void SendSelectedPartsProprieties(List<ISceneEntity> parts)
  1112. {
  1113. }
  1114. public void SendPartPhysicsProprieties(ISceneEntity entity)
  1115. {
  1116. }
  1117. public void CheckViewerCaps() { }
  1118. }
  1119. }