diff options
author | MW | 2007-07-18 18:12:16 +0000 |
---|---|---|
committer | MW | 2007-07-18 18:12:16 +0000 |
commit | 643a02ec60151e1a501d1b260592695b90be6233 (patch) | |
tree | 55ec1fe8a36c91e8a59a579f62050b6d7b960345 /OpenSim/Framework/General | |
parent | Just trying things out, nothing to see here, please go back to sleep. (diff) | |
download | opensim-SC-643a02ec60151e1a501d1b260592695b90be6233.zip opensim-SC-643a02ec60151e1a501d1b260592695b90be6233.tar.gz opensim-SC-643a02ec60151e1a501d1b260592695b90be6233.tar.bz2 opensim-SC-643a02ec60151e1a501d1b260592695b90be6233.tar.xz |
More testing some ideas, to find best method for SceneObject Primitive classes.
Diffstat (limited to 'OpenSim/Framework/General')
-rw-r--r-- | OpenSim/Framework/General/Interfaces/IClientAPI.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/General/NpcClientBase.cs | 129 | ||||
-rw-r--r-- | OpenSim/Framework/General/Types/PrimitiveBaseShape.cs | 2 |
3 files changed, 1 insertions, 132 deletions
diff --git a/OpenSim/Framework/General/Interfaces/IClientAPI.cs b/OpenSim/Framework/General/Interfaces/IClientAPI.cs index d58496c..c7e1901 100644 --- a/OpenSim/Framework/General/Interfaces/IClientAPI.cs +++ b/OpenSim/Framework/General/Interfaces/IClientAPI.cs | |||
@@ -180,8 +180,6 @@ namespace OpenSim.Framework.Interfaces | |||
180 | void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLVector3 velocity); | 180 | void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLVector3 velocity); |
181 | 181 | ||
182 | void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint); | 182 | void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint); |
183 | void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLQuaternion rotation, LLUUID textureID , uint flags); | ||
184 | void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLUUID textureID, uint flags); | ||
185 | void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, LLQuaternion rotation, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID); | 183 | void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, LLQuaternion rotation, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID); |
186 | void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID); | 184 | void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID); |
187 | void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLQuaternion rotation); | 185 | void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLQuaternion rotation); |
diff --git a/OpenSim/Framework/General/NpcClientBase.cs b/OpenSim/Framework/General/NpcClientBase.cs deleted file mode 100644 index 11160e4..0000000 --- a/OpenSim/Framework/General/NpcClientBase.cs +++ /dev/null | |||
@@ -1,129 +0,0 @@ | |||
1 | using System.Collections.Generic; | ||
2 | using System.Net; | ||
3 | using OpenSim.Framework.Interfaces; | ||
4 | using OpenSim.Framework.Types; | ||
5 | using OpenSim.Framework.Data; | ||
6 | using libsecondlife; | ||
7 | using libsecondlife.Packets; | ||
8 | |||
9 | |||
10 | namespace OpenSim.Framework | ||
11 | { | ||
12 | public class NpcClientBase : 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 | public virtual LLVector3 StartPos | ||
69 | { | ||
70 | get { return new LLVector3(); } | ||
71 | set { } | ||
72 | } | ||
73 | |||
74 | public virtual LLUUID AgentId | ||
75 | { | ||
76 | get { return LLUUID.Random(); } | ||
77 | } | ||
78 | |||
79 | public virtual string FirstName | ||
80 | { | ||
81 | get { return ""; } | ||
82 | } | ||
83 | |||
84 | public virtual string LastName | ||
85 | { | ||
86 | get { return ""; } | ||
87 | } | ||
88 | |||
89 | public NpcClientBase() | ||
90 | { | ||
91 | } | ||
92 | |||
93 | public virtual void OutPacket(Packet newPack){} | ||
94 | public virtual void SendWearables(AvatarWearable[] wearables){} | ||
95 | public virtual void SendStartPingCheck(byte seq){} | ||
96 | public virtual void SendKillObject(ulong regionHandle, uint avatarLocalID){} | ||
97 | public virtual void SendAnimation(LLUUID animID, int seq, LLUUID sourceAgentId){} | ||
98 | public virtual void SendRegionHandshake(RegionInfo regionInfo){} | ||
99 | public virtual void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID){} | ||
100 | public virtual void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID){} | ||
101 | public virtual void SendInstantMessage(string message, LLUUID target, string fromName){} | ||
102 | public virtual void SendLayerData(float[] map){} | ||
103 | public virtual void SendLayerData(int px, int py, float[] map){} | ||
104 | public virtual void MoveAgentIntoRegion(RegionInfo regInfo, LLVector3 pos, LLVector3 look){} | ||
105 | public virtual void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint){} | ||
106 | public virtual AgentCircuitData RequestClientInfo() { return new AgentCircuitData(); } | ||
107 | public virtual void CrossRegion(ulong newRegionHandle, LLVector3 pos, LLVector3 lookAt, IPEndPoint newRegionExternalEndPoint){} | ||
108 | public virtual void SendMapBlock(List<MapBlockData> mapBlocks){} | ||
109 | public virtual void SendLocalTeleport(LLVector3 position, LLVector3 lookAt, uint flags){} | ||
110 | public virtual void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, uint locationID, uint flags){} | ||
111 | public virtual void SendTeleportCancel(){} | ||
112 | public virtual void SendTeleportLocationStart(){} | ||
113 | public virtual void SendMoneyBalance(LLUUID transaction, bool success, byte[] description, int balance){} | ||
114 | |||
115 | public virtual void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos, byte[] textureEntry){} | ||
116 | public virtual void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLVector3 velocity){} | ||
117 | |||
118 | public virtual void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint){} | ||
119 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLQuaternion rotation, LLUUID textureID, uint flags){} | ||
120 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLUUID textureID, uint flags){} | ||
121 | 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){} | ||
122 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID){} | ||
123 | public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLQuaternion rotation){} | ||
124 | |||
125 | public virtual void SendInventoryFolderDetails(LLUUID ownerID, LLUUID folderID, List<InventoryItemBase> items){} | ||
126 | public virtual void SendInventoryItemDetails(LLUUID ownerID, LLUUID folderID, InventoryItemBase item){} | ||
127 | public virtual void SendNameReply(LLUUID profileId, string firstname, string lastname){} | ||
128 | } | ||
129 | } | ||
diff --git a/OpenSim/Framework/General/Types/PrimitiveBaseShape.cs b/OpenSim/Framework/General/Types/PrimitiveBaseShape.cs index 9ab6071..a582209 100644 --- a/OpenSim/Framework/General/Types/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/General/Types/PrimitiveBaseShape.cs | |||
@@ -65,7 +65,7 @@ namespace OpenSim.Framework.Types | |||
65 | } | 65 | } |
66 | 66 | ||
67 | //void returns need to change of course | 67 | //void returns need to change of course |
68 | public void GetMesh() | 68 | public virtual void GetMesh() |
69 | { | 69 | { |
70 | 70 | ||
71 | } | 71 | } |