aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/General/NullClientAPI.cs
diff options
context:
space:
mode:
authorMW2007-07-18 13:40:07 +0000
committerMW2007-07-18 13:40:07 +0000
commit04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8 (patch)
treee457adc88cfa763d6e3fb3734b253f94b2aa775b /OpenSim/Framework/General/NullClientAPI.cs
parent* Added a FileSystemObject to SimpleApp (diff)
downloadopensim-SC_OLD-04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8.zip
opensim-SC_OLD-04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8.tar.gz
opensim-SC_OLD-04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8.tar.bz2
opensim-SC_OLD-04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8.tar.xz
few small changes
Diffstat (limited to 'OpenSim/Framework/General/NullClientAPI.cs')
-rw-r--r--OpenSim/Framework/General/NullClientAPI.cs130
1 files changed, 130 insertions, 0 deletions
diff --git a/OpenSim/Framework/General/NullClientAPI.cs b/OpenSim/Framework/General/NullClientAPI.cs
new file mode 100644
index 0000000..44bc588
--- /dev/null
+++ b/OpenSim/Framework/General/NullClientAPI.cs
@@ -0,0 +1,130 @@
1using System.Collections.Generic;
2using System.Net;
3using OpenSim.Framework.Interfaces;
4using OpenSim.Framework.Types;
5using OpenSim.Framework.Data;
6using libsecondlife;
7using libsecondlife.Packets;
8
9
10namespace OpenSim.Framework
11{
12 public class NullClientAPI : IClientAPI
13 {
14#pragma warning disable 67
15 public event ImprovedInstantMessage OnInstantMessage;
16 public event ChatFromViewer OnChatFromViewer;
17 public event RezObject OnRezObject;
18 public event ModifyTerrain OnModifyTerrain;
19 public event SetAppearance OnSetAppearance;
20 public event StartAnim OnStartAnim;
21 public event LinkObjects OnLinkObjects;
22 public event RequestMapBlocks OnRequestMapBlocks;
23 public event TeleportLocationRequest OnTeleportLocationRequest;
24
25 public event GenericCall4 OnDeRezObject;
26 public event GenericCall OnRegionHandShakeReply;
27 public event GenericCall OnRequestWearables;
28 public event GenericCall2 OnCompleteMovementToRegion;
29 public event UpdateAgent OnAgentUpdate;
30 public event GenericCall OnRequestAvatarsData;
31 public event AddNewPrim OnAddPrim;
32 public event ObjectDuplicate OnObjectDuplicate;
33 public event UpdateVector OnGrapObject;
34 public event ObjectSelect OnDeGrapObject;
35 public event MoveObject OnGrapUpdate;
36
37 public event UpdateShape OnUpdatePrimShape;
38 public event ObjectSelect OnObjectSelect;
39 public event GenericCall7 OnObjectDescription;
40 public event GenericCall7 OnObjectName;
41 public event UpdatePrimFlags OnUpdatePrimFlags;
42 public event UpdatePrimTexture OnUpdatePrimTexture;
43 public event UpdateVector OnUpdatePrimGroupPosition;
44 public event UpdateVector OnUpdatePrimSinglePosition;
45 public event UpdatePrimRotation OnUpdatePrimGroupRotation;
46 public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation;
47 public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation;
48 public event UpdateVector OnUpdatePrimScale;
49 public event StatusChange OnChildAgentStatus;
50 public event GenericCall2 OnStopMovement;
51 public event NewAvatar OnNewAvatar;
52 public event GenericCall6 OnRemoveAvatar;
53
54 public event UUIDNameRequest OnNameFromUUIDRequest;
55
56 public event ParcelPropertiesRequest OnParcelPropertiesRequest;
57 public event ParcelDivideRequest OnParcelDivideRequest;
58 public event ParcelJoinRequest OnParcelJoinRequest;
59 public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest;
60 public event ParcelSelectObjects OnParcelSelectObjects;
61 public event ParcelObjectOwnerRequest OnParcelObjectOwnerRequest;
62 public event ObjectDeselect OnObjectDeselect;
63
64
65 public event EstateOwnerMessageRequest OnEstateOwnerMessage;
66#pragma warning restore 67
67
68 private LLUUID m_uuid = LLUUID.Random();
69 public virtual LLVector3 StartPos
70 {
71 get { return new LLVector3(); }
72 set { }
73 }
74
75 public virtual LLUUID AgentId
76 {
77 get { return m_uuid; }
78 }
79
80 public virtual string FirstName
81 {
82 get { return ""; }
83 }
84
85 public virtual string LastName
86 {
87 get { return ""; }
88 }
89
90 public NullClientAPI()
91 {
92 }
93
94 public virtual void OutPacket(Packet newPack){}
95 public virtual void SendWearables(AvatarWearable[] wearables){}
96 public virtual void SendStartPingCheck(byte seq){}
97 public virtual void SendKillObject(ulong regionHandle, uint avatarLocalID){}
98 public virtual void SendAnimation(LLUUID animID, int seq, LLUUID sourceAgentId){}
99 public virtual void SendRegionHandshake(RegionInfo regionInfo){}
100 public virtual void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID){}
101 public virtual void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID){}
102 public virtual void SendInstantMessage(string message, LLUUID target, string fromName){}
103 public virtual void SendLayerData(float[] map){}
104 public virtual void SendLayerData(int px, int py, float[] map){}
105 public virtual void MoveAgentIntoRegion(RegionInfo regInfo, LLVector3 pos, LLVector3 look){}
106 public virtual void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint){}
107 public virtual AgentCircuitData RequestClientInfo() { return new AgentCircuitData(); }
108 public virtual void CrossRegion(ulong newRegionHandle, LLVector3 pos, LLVector3 lookAt, IPEndPoint newRegionExternalEndPoint){}
109 public virtual void SendMapBlock(List<MapBlockData> mapBlocks){}
110 public virtual void SendLocalTeleport(LLVector3 position, LLVector3 lookAt, uint flags){}
111 public virtual void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, uint locationID, uint flags){}
112 public virtual void SendTeleportCancel(){}
113 public virtual void SendTeleportLocationStart(){}
114 public virtual void SendMoneyBalance(LLUUID transaction, bool success, byte[] description, int balance){}
115
116 public virtual void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos, byte[] textureEntry){}
117 public virtual void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLVector3 velocity){}
118
119 public virtual void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint){}
120 public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLQuaternion rotation, LLUUID textureID, uint flags){}
121 public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLUUID textureID, uint flags){}
122 public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, LLQuaternion rotation, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID){}
123 public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID){}
124 public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLQuaternion rotation){}
125
126 public virtual void SendInventoryFolderDetails(LLUUID ownerID, LLUUID folderID, List<InventoryItemBase> items){}
127 public virtual void SendInventoryItemDetails(LLUUID ownerID, LLUUID folderID, InventoryItemBase item){}
128 public virtual void SendNameReply(LLUUID profileId, string firstname, string lastname){}
129 }
130}