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