diff options
author | Jeff Ames | 2008-05-11 23:48:40 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-11 23:48:40 +0000 |
commit | 71f074839c3952d325b0e112f6dddba46ba3edbc (patch) | |
tree | 5c234837a16bda64bdc0e7df8e12dc4daedb2c7a /OpenSim | |
parent | * Un-break the NPC avatar.. you know.. the one that sits in your sim and ... (diff) | |
download | opensim-SC_OLD-71f074839c3952d325b0e112f6dddba46ba3edbc.zip opensim-SC_OLD-71f074839c3952d325b0e112f6dddba46ba3edbc.tar.gz opensim-SC_OLD-71f074839c3952d325b0e112f6dddba46ba3edbc.tar.bz2 opensim-SC_OLD-71f074839c3952d325b0e112f6dddba46ba3edbc.tar.xz |
Update svn properties.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | 1440 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs | 86 |
2 files changed, 763 insertions, 763 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs index 895524e..64b4079 100644 --- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | |||
@@ -1,721 +1,721 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions are met: | 6 | * modification, are permitted provided that the following conditions are met: |
7 | * * Redistributions of source code must retain the above copyright | 7 | * * Redistributions of source code must retain the above copyright |
8 | * notice, this list of conditions and the following disclaimer. | 8 | * notice, this list of conditions and the following disclaimer. |
9 | * * Redistributions in binary form must reproduce the above copyright | 9 | * * Redistributions in binary form must reproduce the above copyright |
10 | * notice, this list of conditions and the following disclaimer in the | 10 | * notice, this list of conditions and the following disclaimer in the |
11 | * documentation and/or other materials provided with the distribution. | 11 | * documentation and/or other materials provided with the distribution. |
12 | * * Neither the name of the OpenSim Project nor the | 12 | * * Neither the name of the OpenSim Project nor the |
13 | * names of its contributors may be used to endorse or promote products | 13 | * names of its contributors may be used to endorse or promote products |
14 | * derived from this software without specific prior written permission. | 14 | * derived from this software without specific prior written permission. |
15 | * | 15 | * |
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY | 16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY |
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | 19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY |
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 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 | 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 | 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 | 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. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Net; | 30 | using System.Net; |
31 | using libsecondlife; | 31 | using libsecondlife; |
32 | using libsecondlife.Packets; | 32 | using libsecondlife.Packets; |
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Region.Environment.Scenes; | 34 | using OpenSim.Region.Environment.Scenes; |
35 | 35 | ||
36 | namespace OpenSim.Region.Environment.Modules.World.NPC | 36 | namespace OpenSim.Region.Environment.Modules.World.NPC |
37 | { | 37 | { |
38 | public class NPCAvatar : IClientAPI | 38 | public class NPCAvatar : IClientAPI |
39 | { | 39 | { |
40 | private readonly string m_firstname; | 40 | private readonly string m_firstname; |
41 | private readonly string m_lastname; | 41 | private readonly string m_lastname; |
42 | private readonly LLVector3 m_startPos; | 42 | private readonly LLVector3 m_startPos; |
43 | private readonly LLUUID m_uuid = LLUUID.Random(); | 43 | private readonly LLUUID m_uuid = LLUUID.Random(); |
44 | private readonly Scene m_scene; | 44 | private readonly Scene m_scene; |
45 | 45 | ||
46 | public NPCAvatar(string firstname, string lastname, LLVector3 position, Scene scene) | 46 | public NPCAvatar(string firstname, string lastname, LLVector3 position, Scene scene) |
47 | { | 47 | { |
48 | m_firstname = firstname; | 48 | m_firstname = firstname; |
49 | m_lastname = lastname; | 49 | m_lastname = lastname; |
50 | m_startPos = position; | 50 | m_startPos = position; |
51 | m_scene = scene; | 51 | m_scene = scene; |
52 | } | 52 | } |
53 | 53 | ||
54 | public void Say(string message) | 54 | public void Say(string message) |
55 | { | 55 | { |
56 | SendOnChatFromViewer(message, ChatTypeEnum.Say); | 56 | SendOnChatFromViewer(message, ChatTypeEnum.Say); |
57 | } | 57 | } |
58 | 58 | ||
59 | public void Shout(string message) | 59 | public void Shout(string message) |
60 | { | 60 | { |
61 | SendOnChatFromViewer(message, ChatTypeEnum.Shout); | 61 | SendOnChatFromViewer(message, ChatTypeEnum.Shout); |
62 | } | 62 | } |
63 | 63 | ||
64 | public void Whisper(string message) | 64 | public void Whisper(string message) |
65 | { | 65 | { |
66 | SendOnChatFromViewer(message, ChatTypeEnum.Whisper); | 66 | SendOnChatFromViewer(message, ChatTypeEnum.Whisper); |
67 | } | 67 | } |
68 | 68 | ||
69 | public void Broadcast(string message) | 69 | public void Broadcast(string message) |
70 | { | 70 | { |
71 | SendOnChatFromViewer(message, ChatTypeEnum.Broadcast); | 71 | SendOnChatFromViewer(message, ChatTypeEnum.Broadcast); |
72 | } | 72 | } |
73 | 73 | ||
74 | public void GiveMoney(LLUUID target, int amount) | 74 | public void GiveMoney(LLUUID target, int amount) |
75 | { | 75 | { |
76 | OnMoneyTransferRequest(m_uuid, target, amount, 1, "Payment"); | 76 | OnMoneyTransferRequest(m_uuid, target, amount, 1, "Payment"); |
77 | } | 77 | } |
78 | 78 | ||
79 | public void InstantMessage(LLUUID target, string message) | 79 | public void InstantMessage(LLUUID target, string message) |
80 | { | 80 | { |
81 | OnInstantMessage(this, m_uuid, SessionId, target, LLUUID.Combine(m_uuid, target), | 81 | OnInstantMessage(this, m_uuid, SessionId, target, LLUUID.Combine(m_uuid, target), |
82 | (uint) Util.UnixTimeSinceEpoch(), Name, message, 0, false, 0, 0, | 82 | (uint) Util.UnixTimeSinceEpoch(), Name, message, 0, false, 0, 0, |
83 | Position, m_scene.RegionInfo.RegionID, new byte[0]); | 83 | Position, m_scene.RegionInfo.RegionID, new byte[0]); |
84 | } | 84 | } |
85 | 85 | ||
86 | public LLUUID GetDefaultAnimation(string name) | 86 | public LLUUID GetDefaultAnimation(string name) |
87 | { | 87 | { |
88 | return LLUUID.Zero; | 88 | return LLUUID.Zero; |
89 | } | 89 | } |
90 | 90 | ||
91 | public LLVector3 Position | 91 | public LLVector3 Position |
92 | { | 92 | { |
93 | get { return m_scene.Entities[m_uuid].AbsolutePosition; } | 93 | get { return m_scene.Entities[m_uuid].AbsolutePosition; } |
94 | set { m_scene.Entities[m_uuid].AbsolutePosition = value; } | 94 | set { m_scene.Entities[m_uuid].AbsolutePosition = value; } |
95 | } | 95 | } |
96 | 96 | ||
97 | #region Internal Functions | 97 | #region Internal Functions |
98 | 98 | ||
99 | private void SendOnChatFromViewer(string message, ChatTypeEnum chatType) | 99 | private void SendOnChatFromViewer(string message, ChatTypeEnum chatType) |
100 | { | 100 | { |
101 | ChatFromViewerArgs chatFromViewer = new ChatFromViewerArgs(); | 101 | ChatFromViewerArgs chatFromViewer = new ChatFromViewerArgs(); |
102 | chatFromViewer.Channel = 0; | 102 | chatFromViewer.Channel = 0; |
103 | chatFromViewer.From = Name; | 103 | chatFromViewer.From = Name; |
104 | chatFromViewer.Message = message; | 104 | chatFromViewer.Message = message; |
105 | chatFromViewer.Position = StartPos; | 105 | chatFromViewer.Position = StartPos; |
106 | chatFromViewer.Scene = m_scene; | 106 | chatFromViewer.Scene = m_scene; |
107 | chatFromViewer.Sender = this; | 107 | chatFromViewer.Sender = this; |
108 | chatFromViewer.SenderUUID = AgentId; | 108 | chatFromViewer.SenderUUID = AgentId; |
109 | chatFromViewer.Type = chatType; | 109 | chatFromViewer.Type = chatType; |
110 | 110 | ||
111 | OnChatFromViewer(this, chatFromViewer); | 111 | OnChatFromViewer(this, chatFromViewer); |
112 | } | 112 | } |
113 | 113 | ||
114 | #endregion | 114 | #endregion |
115 | 115 | ||
116 | #region Event Definitions IGNORE | 116 | #region Event Definitions IGNORE |
117 | #pragma warning disable 67 | 117 | #pragma warning disable 67 |
118 | 118 | ||
119 | public event Action<IClientAPI> OnLogout; | 119 | public event Action<IClientAPI> OnLogout; |
120 | public event ObjectPermissions OnObjectPermissions; | 120 | public event ObjectPermissions OnObjectPermissions; |
121 | 121 | ||
122 | public event MoneyTransferRequest OnMoneyTransferRequest; | 122 | public event MoneyTransferRequest OnMoneyTransferRequest; |
123 | public event ParcelBuy OnParcelBuy; | 123 | public event ParcelBuy OnParcelBuy; |
124 | public event Action<IClientAPI> OnConnectionClosed; | 124 | public event Action<IClientAPI> OnConnectionClosed; |
125 | 125 | ||
126 | public event ImprovedInstantMessage OnInstantMessage; | 126 | public event ImprovedInstantMessage OnInstantMessage; |
127 | public event ChatFromViewer OnChatFromViewer; | 127 | public event ChatFromViewer OnChatFromViewer; |
128 | public event TextureRequest OnRequestTexture; | 128 | public event TextureRequest OnRequestTexture; |
129 | public event RezObject OnRezObject; | 129 | public event RezObject OnRezObject; |
130 | public event ModifyTerrain OnModifyTerrain; | 130 | public event ModifyTerrain OnModifyTerrain; |
131 | public event SetAppearance OnSetAppearance; | 131 | public event SetAppearance OnSetAppearance; |
132 | public event AvatarNowWearing OnAvatarNowWearing; | 132 | public event AvatarNowWearing OnAvatarNowWearing; |
133 | public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv; | 133 | public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv; |
134 | public event UUIDNameRequest OnDetachAttachmentIntoInv; | 134 | public event UUIDNameRequest OnDetachAttachmentIntoInv; |
135 | public event ObjectAttach OnObjectAttach; | 135 | public event ObjectAttach OnObjectAttach; |
136 | public event ObjectDeselect OnObjectDetach; | 136 | public event ObjectDeselect OnObjectDetach; |
137 | public event StartAnim OnStartAnim; | 137 | public event StartAnim OnStartAnim; |
138 | public event StopAnim OnStopAnim; | 138 | public event StopAnim OnStopAnim; |
139 | public event LinkObjects OnLinkObjects; | 139 | public event LinkObjects OnLinkObjects; |
140 | public event DelinkObjects OnDelinkObjects; | 140 | public event DelinkObjects OnDelinkObjects; |
141 | public event RequestMapBlocks OnRequestMapBlocks; | 141 | public event RequestMapBlocks OnRequestMapBlocks; |
142 | public event RequestMapName OnMapNameRequest; | 142 | public event RequestMapName OnMapNameRequest; |
143 | public event TeleportLocationRequest OnTeleportLocationRequest; | 143 | public event TeleportLocationRequest OnTeleportLocationRequest; |
144 | public event TeleportLandmarkRequest OnTeleportLandmarkRequest; | 144 | public event TeleportLandmarkRequest OnTeleportLandmarkRequest; |
145 | public event DisconnectUser OnDisconnectUser; | 145 | public event DisconnectUser OnDisconnectUser; |
146 | public event RequestAvatarProperties OnRequestAvatarProperties; | 146 | public event RequestAvatarProperties OnRequestAvatarProperties; |
147 | public event SetAlwaysRun OnSetAlwaysRun; | 147 | public event SetAlwaysRun OnSetAlwaysRun; |
148 | 148 | ||
149 | public event GenericCall4 OnDeRezObject; | 149 | public event GenericCall4 OnDeRezObject; |
150 | public event Action<IClientAPI> OnRegionHandShakeReply; | 150 | public event Action<IClientAPI> OnRegionHandShakeReply; |
151 | public event GenericCall2 OnRequestWearables; | 151 | public event GenericCall2 OnRequestWearables; |
152 | public event GenericCall2 OnCompleteMovementToRegion; | 152 | public event GenericCall2 OnCompleteMovementToRegion; |
153 | public event UpdateAgent OnAgentUpdate; | 153 | public event UpdateAgent OnAgentUpdate; |
154 | public event AgentRequestSit OnAgentRequestSit; | 154 | public event AgentRequestSit OnAgentRequestSit; |
155 | public event AgentSit OnAgentSit; | 155 | public event AgentSit OnAgentSit; |
156 | public event AvatarPickerRequest OnAvatarPickerRequest; | 156 | public event AvatarPickerRequest OnAvatarPickerRequest; |
157 | public event Action<IClientAPI> OnRequestAvatarsData; | 157 | public event Action<IClientAPI> OnRequestAvatarsData; |
158 | public event AddNewPrim OnAddPrim; | 158 | public event AddNewPrim OnAddPrim; |
159 | public event RequestGodlikePowers OnRequestGodlikePowers; | 159 | public event RequestGodlikePowers OnRequestGodlikePowers; |
160 | public event GodKickUser OnGodKickUser; | 160 | public event GodKickUser OnGodKickUser; |
161 | public event ObjectDuplicate OnObjectDuplicate; | 161 | public event ObjectDuplicate OnObjectDuplicate; |
162 | public event UpdateVector OnGrabObject; | 162 | public event UpdateVector OnGrabObject; |
163 | public event ObjectSelect OnDeGrabObject; | 163 | public event ObjectSelect OnDeGrabObject; |
164 | public event MoveObject OnGrabUpdate; | 164 | public event MoveObject OnGrabUpdate; |
165 | public event ViewerEffectEventHandler OnViewerEffect; | 165 | public event ViewerEffectEventHandler OnViewerEffect; |
166 | 166 | ||
167 | public event FetchInventory OnAgentDataUpdateRequest; | 167 | public event FetchInventory OnAgentDataUpdateRequest; |
168 | public event FetchInventory OnUserInfoRequest; | 168 | public event FetchInventory OnUserInfoRequest; |
169 | public event TeleportLocationRequest OnSetStartLocationRequest; | 169 | public event TeleportLocationRequest OnSetStartLocationRequest; |
170 | 170 | ||
171 | public event UpdateShape OnUpdatePrimShape; | 171 | public event UpdateShape OnUpdatePrimShape; |
172 | public event ObjectExtraParams OnUpdateExtraParams; | 172 | public event ObjectExtraParams OnUpdateExtraParams; |
173 | public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; | 173 | public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; |
174 | public event ObjectSelect OnObjectSelect; | 174 | public event ObjectSelect OnObjectSelect; |
175 | public event GenericCall7 OnObjectDescription; | 175 | public event GenericCall7 OnObjectDescription; |
176 | public event GenericCall7 OnObjectName; | 176 | public event GenericCall7 OnObjectName; |
177 | public event UpdatePrimFlags OnUpdatePrimFlags; | 177 | public event UpdatePrimFlags OnUpdatePrimFlags; |
178 | public event UpdatePrimTexture OnUpdatePrimTexture; | 178 | public event UpdatePrimTexture OnUpdatePrimTexture; |
179 | public event UpdateVector OnUpdatePrimGroupPosition; | 179 | public event UpdateVector OnUpdatePrimGroupPosition; |
180 | public event UpdateVector OnUpdatePrimSinglePosition; | 180 | public event UpdateVector OnUpdatePrimSinglePosition; |
181 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; | 181 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; |
182 | public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; | 182 | public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; |
183 | public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation; | 183 | public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation; |
184 | public event UpdateVector OnUpdatePrimScale; | 184 | public event UpdateVector OnUpdatePrimScale; |
185 | public event UpdateVector OnUpdatePrimGroupScale; | 185 | public event UpdateVector OnUpdatePrimGroupScale; |
186 | public event StatusChange OnChildAgentStatus; | 186 | public event StatusChange OnChildAgentStatus; |
187 | public event GenericCall2 OnStopMovement; | 187 | public event GenericCall2 OnStopMovement; |
188 | public event Action<LLUUID> OnRemoveAvatar; | 188 | public event Action<LLUUID> OnRemoveAvatar; |
189 | 189 | ||
190 | public event CreateNewInventoryItem OnCreateNewInventoryItem; | 190 | public event CreateNewInventoryItem OnCreateNewInventoryItem; |
191 | public event CreateInventoryFolder OnCreateNewInventoryFolder; | 191 | public event CreateInventoryFolder OnCreateNewInventoryFolder; |
192 | public event UpdateInventoryFolder OnUpdateInventoryFolder; | 192 | public event UpdateInventoryFolder OnUpdateInventoryFolder; |
193 | public event MoveInventoryFolder OnMoveInventoryFolder; | 193 | public event MoveInventoryFolder OnMoveInventoryFolder; |
194 | public event RemoveInventoryFolder OnRemoveInventoryFolder; | 194 | public event RemoveInventoryFolder OnRemoveInventoryFolder; |
195 | public event RemoveInventoryItem OnRemoveInventoryItem; | 195 | public event RemoveInventoryItem OnRemoveInventoryItem; |
196 | public event FetchInventoryDescendents OnFetchInventoryDescendents; | 196 | public event FetchInventoryDescendents OnFetchInventoryDescendents; |
197 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; | 197 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; |
198 | public event FetchInventory OnFetchInventory; | 198 | public event FetchInventory OnFetchInventory; |
199 | public event RequestTaskInventory OnRequestTaskInventory; | 199 | public event RequestTaskInventory OnRequestTaskInventory; |
200 | public event UpdateInventoryItem OnUpdateInventoryItem; | 200 | public event UpdateInventoryItem OnUpdateInventoryItem; |
201 | public event CopyInventoryItem OnCopyInventoryItem; | 201 | public event CopyInventoryItem OnCopyInventoryItem; |
202 | public event MoveInventoryItem OnMoveInventoryItem; | 202 | public event MoveInventoryItem OnMoveInventoryItem; |
203 | public event UDPAssetUploadRequest OnAssetUploadRequest; | 203 | public event UDPAssetUploadRequest OnAssetUploadRequest; |
204 | public event XferReceive OnXferReceive; | 204 | public event XferReceive OnXferReceive; |
205 | public event RequestXfer OnRequestXfer; | 205 | public event RequestXfer OnRequestXfer; |
206 | public event ConfirmXfer OnConfirmXfer; | 206 | public event ConfirmXfer OnConfirmXfer; |
207 | public event RezScript OnRezScript; | 207 | public event RezScript OnRezScript; |
208 | public event UpdateTaskInventory OnUpdateTaskInventory; | 208 | public event UpdateTaskInventory OnUpdateTaskInventory; |
209 | public event MoveTaskInventory OnMoveTaskItem; | 209 | public event MoveTaskInventory OnMoveTaskItem; |
210 | public event RemoveTaskInventory OnRemoveTaskItem; | 210 | public event RemoveTaskInventory OnRemoveTaskItem; |
211 | public event RequestAsset OnRequestAsset; | 211 | public event RequestAsset OnRequestAsset; |
212 | 212 | ||
213 | public event UUIDNameRequest OnNameFromUUIDRequest; | 213 | public event UUIDNameRequest OnNameFromUUIDRequest; |
214 | 214 | ||
215 | public event ParcelPropertiesRequest OnParcelPropertiesRequest; | 215 | public event ParcelPropertiesRequest OnParcelPropertiesRequest; |
216 | public event ParcelDivideRequest OnParcelDivideRequest; | 216 | public event ParcelDivideRequest OnParcelDivideRequest; |
217 | public event ParcelJoinRequest OnParcelJoinRequest; | 217 | public event ParcelJoinRequest OnParcelJoinRequest; |
218 | public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest; | 218 | public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest; |
219 | 219 | ||
220 | public event ParcelAccessListRequest OnParcelAccessListRequest; | 220 | public event ParcelAccessListRequest OnParcelAccessListRequest; |
221 | public event ParcelAccessListUpdateRequest OnParcelAccessListUpdateRequest; | 221 | public event ParcelAccessListUpdateRequest OnParcelAccessListUpdateRequest; |
222 | public event ParcelSelectObjects OnParcelSelectObjects; | 222 | public event ParcelSelectObjects OnParcelSelectObjects; |
223 | public event ParcelObjectOwnerRequest OnParcelObjectOwnerRequest; | 223 | public event ParcelObjectOwnerRequest OnParcelObjectOwnerRequest; |
224 | public event ObjectDeselect OnObjectDeselect; | 224 | public event ObjectDeselect OnObjectDeselect; |
225 | public event RegionInfoRequest OnRegionInfoRequest; | 225 | public event RegionInfoRequest OnRegionInfoRequest; |
226 | public event EstateCovenantRequest OnEstateCovenantRequest; | 226 | public event EstateCovenantRequest OnEstateCovenantRequest; |
227 | 227 | ||
228 | public event ObjectDuplicateOnRay OnObjectDuplicateOnRay; | 228 | public event ObjectDuplicateOnRay OnObjectDuplicateOnRay; |
229 | 229 | ||
230 | public event FriendActionDelegate OnApproveFriendRequest; | 230 | public event FriendActionDelegate OnApproveFriendRequest; |
231 | public event FriendActionDelegate OnDenyFriendRequest; | 231 | public event FriendActionDelegate OnDenyFriendRequest; |
232 | public event FriendshipTermination OnTerminateFriendship; | 232 | public event FriendshipTermination OnTerminateFriendship; |
233 | public event PacketStats OnPacketStats; | 233 | public event PacketStats OnPacketStats; |
234 | 234 | ||
235 | public event EconomyDataRequest OnEconomyDataRequest; | 235 | public event EconomyDataRequest OnEconomyDataRequest; |
236 | public event MoneyBalanceRequest OnMoneyBalanceRequest; | 236 | public event MoneyBalanceRequest OnMoneyBalanceRequest; |
237 | public event UpdateAvatarProperties OnUpdateAvatarProperties; | 237 | public event UpdateAvatarProperties OnUpdateAvatarProperties; |
238 | 238 | ||
239 | public event ObjectIncludeInSearch OnObjectIncludeInSearch; | 239 | public event ObjectIncludeInSearch OnObjectIncludeInSearch; |
240 | public event UUIDNameRequest OnTeleportHomeRequest; | 240 | public event UUIDNameRequest OnTeleportHomeRequest; |
241 | 241 | ||
242 | public event ScriptAnswer OnScriptAnswer; | 242 | public event ScriptAnswer OnScriptAnswer; |
243 | public event RequestPayPrice OnRequestPayPrice; | 243 | public event RequestPayPrice OnRequestPayPrice; |
244 | public event AgentSit OnUndo; | 244 | public event AgentSit OnUndo; |
245 | 245 | ||
246 | public event ForceReleaseControls OnForceReleaseControls; | 246 | public event ForceReleaseControls OnForceReleaseControls; |
247 | 247 | ||
248 | public event DetailedEstateDataRequest OnDetailedEstateDataRequest; | 248 | public event DetailedEstateDataRequest OnDetailedEstateDataRequest; |
249 | public event SetEstateFlagsRequest OnSetEstateFlagsRequest; | 249 | public event SetEstateFlagsRequest OnSetEstateFlagsRequest; |
250 | public event SetEstateTerrainBaseTexture OnSetEstateTerrainBaseTexture; | 250 | public event SetEstateTerrainBaseTexture OnSetEstateTerrainBaseTexture; |
251 | public event SetEstateTerrainDetailTexture OnSetEstateTerrainDetailTexture; | 251 | public event SetEstateTerrainDetailTexture OnSetEstateTerrainDetailTexture; |
252 | public event SetEstateTerrainTextureHeights OnSetEstateTerrainTextureHeights; | 252 | public event SetEstateTerrainTextureHeights OnSetEstateTerrainTextureHeights; |
253 | public event CommitEstateTerrainTextureRequest OnCommitEstateTerrainTextureRequest; | 253 | public event CommitEstateTerrainTextureRequest OnCommitEstateTerrainTextureRequest; |
254 | public event SetRegionTerrainSettings OnSetRegionTerrainSettings; | 254 | public event SetRegionTerrainSettings OnSetRegionTerrainSettings; |
255 | public event EstateRestartSimRequest OnEstateRestartSimRequest; | 255 | public event EstateRestartSimRequest OnEstateRestartSimRequest; |
256 | public event EstateChangeCovenantRequest OnEstateChangeCovenantRequest; | 256 | public event EstateChangeCovenantRequest OnEstateChangeCovenantRequest; |
257 | public event UpdateEstateAccessDeltaRequest OnUpdateEstateAccessDeltaRequest; | 257 | public event UpdateEstateAccessDeltaRequest OnUpdateEstateAccessDeltaRequest; |
258 | public event SimulatorBlueBoxMessageRequest OnSimulatorBlueBoxMessageRequest; | 258 | public event SimulatorBlueBoxMessageRequest OnSimulatorBlueBoxMessageRequest; |
259 | public event EstateBlueBoxMessageRequest OnEstateBlueBoxMessageRequest; | 259 | public event EstateBlueBoxMessageRequest OnEstateBlueBoxMessageRequest; |
260 | public event EstateDebugRegionRequest OnEstateDebugRegionRequest; | 260 | public event EstateDebugRegionRequest OnEstateDebugRegionRequest; |
261 | public event EstateTeleportOneUserHomeRequest OnEstateTeleportOneUserHomeRequest; | 261 | public event EstateTeleportOneUserHomeRequest OnEstateTeleportOneUserHomeRequest; |
262 | #pragma warning restore 67 | 262 | #pragma warning restore 67 |
263 | #endregion | 263 | #endregion |
264 | 264 | ||
265 | #region Overrriden Methods IGNORE | 265 | #region Overrriden Methods IGNORE |
266 | 266 | ||
267 | public virtual LLVector3 StartPos | 267 | public virtual LLVector3 StartPos |
268 | { | 268 | { |
269 | get { return m_startPos; } | 269 | get { return m_startPos; } |
270 | set { } | 270 | set { } |
271 | } | 271 | } |
272 | 272 | ||
273 | public virtual LLUUID AgentId | 273 | public virtual LLUUID AgentId |
274 | { | 274 | { |
275 | get { return m_uuid; } | 275 | get { return m_uuid; } |
276 | } | 276 | } |
277 | 277 | ||
278 | public LLUUID SessionId | 278 | public LLUUID SessionId |
279 | { | 279 | { |
280 | get { return LLUUID.Zero; } | 280 | get { return LLUUID.Zero; } |
281 | } | 281 | } |
282 | 282 | ||
283 | public LLUUID SecureSessionId | 283 | public LLUUID SecureSessionId |
284 | { | 284 | { |
285 | get { return LLUUID.Zero; } | 285 | get { return LLUUID.Zero; } |
286 | } | 286 | } |
287 | 287 | ||
288 | public virtual string FirstName | 288 | public virtual string FirstName |
289 | { | 289 | { |
290 | get { return m_firstname; } | 290 | get { return m_firstname; } |
291 | } | 291 | } |
292 | 292 | ||
293 | public virtual string LastName | 293 | public virtual string LastName |
294 | { | 294 | { |
295 | get { return m_lastname; } | 295 | get { return m_lastname; } |
296 | } | 296 | } |
297 | 297 | ||
298 | public virtual String Name | 298 | public virtual String Name |
299 | { | 299 | { |
300 | get { return FirstName + " " + LastName; } | 300 | get { return FirstName + " " + LastName; } |
301 | } | 301 | } |
302 | 302 | ||
303 | public bool IsActive | 303 | public bool IsActive |
304 | { | 304 | { |
305 | get { return true; } | 305 | get { return true; } |
306 | set { } | 306 | set { } |
307 | } | 307 | } |
308 | 308 | ||
309 | public virtual int NextAnimationSequenceNumber | 309 | public virtual int NextAnimationSequenceNumber |
310 | { | 310 | { |
311 | get { return 1; } | 311 | get { return 1; } |
312 | } | 312 | } |
313 | 313 | ||
314 | public virtual void OutPacket(Packet newPack, ThrottleOutPacketType packType) | 314 | public virtual void OutPacket(Packet newPack, ThrottleOutPacketType packType) |
315 | { | 315 | { |
316 | } | 316 | } |
317 | 317 | ||
318 | public virtual void SendWearables(AvatarWearable[] wearables, int serial) | 318 | public virtual void SendWearables(AvatarWearable[] wearables, int serial) |
319 | { | 319 | { |
320 | } | 320 | } |
321 | 321 | ||
322 | public virtual void SendAppearance(LLUUID agentID, byte[] visualParams, byte[] textureEntry) | 322 | public virtual void SendAppearance(LLUUID agentID, byte[] visualParams, byte[] textureEntry) |
323 | { | 323 | { |
324 | } | 324 | } |
325 | 325 | ||
326 | public virtual void Kick(string message) | 326 | public virtual void Kick(string message) |
327 | { | 327 | { |
328 | } | 328 | } |
329 | 329 | ||
330 | public virtual void SendStartPingCheck(byte seq) | 330 | public virtual void SendStartPingCheck(byte seq) |
331 | { | 331 | { |
332 | } | 332 | } |
333 | 333 | ||
334 | public virtual void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data) | 334 | public virtual void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data) |
335 | { | 335 | { |
336 | } | 336 | } |
337 | 337 | ||
338 | public virtual void SendAgentDataUpdate(LLUUID agentid, LLUUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle) | 338 | public virtual void SendAgentDataUpdate(LLUUID agentid, LLUUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle) |
339 | { | 339 | { |
340 | 340 | ||
341 | } | 341 | } |
342 | 342 | ||
343 | public virtual void SendKillObject(ulong regionHandle, uint localID) | 343 | public virtual void SendKillObject(ulong regionHandle, uint localID) |
344 | { | 344 | { |
345 | } | 345 | } |
346 | 346 | ||
347 | public virtual void SetChildAgentThrottle(byte[] throttle) | 347 | public virtual void SetChildAgentThrottle(byte[] throttle) |
348 | { | 348 | { |
349 | } | 349 | } |
350 | public byte[] GetThrottlesPacked(float multiplier) | 350 | public byte[] GetThrottlesPacked(float multiplier) |
351 | { | 351 | { |
352 | return new byte[0]; | 352 | return new byte[0]; |
353 | } | 353 | } |
354 | 354 | ||
355 | 355 | ||
356 | public virtual void SendAnimations(LLUUID[] animations, int[] seqs, LLUUID sourceAgentId) | 356 | public virtual void SendAnimations(LLUUID[] animations, int[] seqs, LLUUID sourceAgentId) |
357 | { | 357 | { |
358 | } | 358 | } |
359 | 359 | ||
360 | public virtual void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName, | 360 | public virtual void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName, |
361 | LLUUID fromAgentID, byte source, byte audible) | 361 | LLUUID fromAgentID, byte source, byte audible) |
362 | { | 362 | { |
363 | } | 363 | } |
364 | 364 | ||
365 | public virtual void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, | 365 | public virtual void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, |
366 | LLUUID fromAgentID, byte source, byte audible) | 366 | LLUUID fromAgentID, byte source, byte audible) |
367 | { | 367 | { |
368 | } | 368 | } |
369 | 369 | ||
370 | public virtual void SendInstantMessage(LLUUID fromAgent, LLUUID fromAgentSession, string message, LLUUID toAgent, | 370 | public virtual void SendInstantMessage(LLUUID fromAgent, LLUUID fromAgentSession, string message, LLUUID toAgent, |
371 | LLUUID imSessionID, string fromName, byte dialog, uint timeStamp) | 371 | LLUUID imSessionID, string fromName, byte dialog, uint timeStamp) |
372 | { | 372 | { |
373 | } | 373 | } |
374 | 374 | ||
375 | public virtual void SendInstantMessage(LLUUID fromAgent, LLUUID fromAgentSession, string message, LLUUID toAgent, | 375 | public virtual void SendInstantMessage(LLUUID fromAgent, LLUUID fromAgentSession, string message, LLUUID toAgent, |
376 | LLUUID imSessionID, string fromName, byte dialog, uint timeStamp, | 376 | LLUUID imSessionID, string fromName, byte dialog, uint timeStamp, |
377 | byte[] binaryBucket) | 377 | byte[] binaryBucket) |
378 | { | 378 | { |
379 | } | 379 | } |
380 | 380 | ||
381 | public virtual void SendLayerData(float[] map) | 381 | public virtual void SendLayerData(float[] map) |
382 | { | 382 | { |
383 | } | 383 | } |
384 | 384 | ||
385 | public virtual void SendLayerData(int px, int py, float[] map) | 385 | public virtual void SendLayerData(int px, int py, float[] map) |
386 | { | 386 | { |
387 | } | 387 | } |
388 | 388 | ||
389 | public virtual void MoveAgentIntoRegion(RegionInfo regInfo, LLVector3 pos, LLVector3 look) | 389 | public virtual void MoveAgentIntoRegion(RegionInfo regInfo, LLVector3 pos, LLVector3 look) |
390 | { | 390 | { |
391 | } | 391 | } |
392 | 392 | ||
393 | public virtual void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint) | 393 | public virtual void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint) |
394 | { | 394 | { |
395 | } | 395 | } |
396 | 396 | ||
397 | public virtual AgentCircuitData RequestClientInfo() | 397 | public virtual AgentCircuitData RequestClientInfo() |
398 | { | 398 | { |
399 | return new AgentCircuitData(); | 399 | return new AgentCircuitData(); |
400 | } | 400 | } |
401 | 401 | ||
402 | public virtual void CrossRegion(ulong newRegionHandle, LLVector3 pos, LLVector3 lookAt, | 402 | public virtual void CrossRegion(ulong newRegionHandle, LLVector3 pos, LLVector3 lookAt, |
403 | IPEndPoint newRegionExternalEndPoint, string capsURL) | 403 | IPEndPoint newRegionExternalEndPoint, string capsURL) |
404 | { | 404 | { |
405 | } | 405 | } |
406 | 406 | ||
407 | public virtual void SendMapBlock(List<MapBlockData> mapBlocks) | 407 | public virtual void SendMapBlock(List<MapBlockData> mapBlocks) |
408 | { | 408 | { |
409 | } | 409 | } |
410 | 410 | ||
411 | public virtual void SendLocalTeleport(LLVector3 position, LLVector3 lookAt, uint flags) | 411 | public virtual void SendLocalTeleport(LLVector3 position, LLVector3 lookAt, uint flags) |
412 | { | 412 | { |
413 | } | 413 | } |
414 | 414 | ||
415 | public virtual void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, | 415 | public virtual void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, |
416 | uint locationID, uint flags, string capsURL) | 416 | uint locationID, uint flags, string capsURL) |
417 | { | 417 | { |
418 | } | 418 | } |
419 | 419 | ||
420 | public virtual void SendTeleportFailed(string reason) | 420 | public virtual void SendTeleportFailed(string reason) |
421 | { | 421 | { |
422 | } | 422 | } |
423 | 423 | ||
424 | public virtual void SendTeleportLocationStart() | 424 | public virtual void SendTeleportLocationStart() |
425 | { | 425 | { |
426 | } | 426 | } |
427 | 427 | ||
428 | public virtual void SendMoneyBalance(LLUUID transaction, bool success, byte[] description, int balance) | 428 | public virtual void SendMoneyBalance(LLUUID transaction, bool success, byte[] description, int balance) |
429 | { | 429 | { |
430 | } | 430 | } |
431 | 431 | ||
432 | public virtual void SendPayPrice(LLUUID objectID, int[] payPrice) | 432 | public virtual void SendPayPrice(LLUUID objectID, int[] payPrice) |
433 | { | 433 | { |
434 | } | 434 | } |
435 | 435 | ||
436 | public virtual void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, | 436 | public virtual void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, |
437 | uint avatarLocalID, LLVector3 Pos, byte[] textureEntry, uint parentID) | 437 | uint avatarLocalID, LLVector3 Pos, byte[] textureEntry, uint parentID) |
438 | { | 438 | { |
439 | } | 439 | } |
440 | 440 | ||
441 | public virtual void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, | 441 | public virtual void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, |
442 | LLVector3 position, LLVector3 velocity, LLQuaternion rotation) | 442 | LLVector3 position, LLVector3 velocity, LLQuaternion rotation) |
443 | { | 443 | { |
444 | } | 444 | } |
445 | 445 | ||
446 | public virtual void SendCoarseLocationUpdate(List<LLVector3> CoarseLocations) | 446 | public virtual void SendCoarseLocationUpdate(List<LLVector3> CoarseLocations) |
447 | { | 447 | { |
448 | } | 448 | } |
449 | 449 | ||
450 | public virtual void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint) | 450 | public virtual void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint) |
451 | { | 451 | { |
452 | } | 452 | } |
453 | 453 | ||
454 | public virtual void SendDialog(string objectname, LLUUID objectID, LLUUID ownerID, string msg, LLUUID textureID, int ch, string[] buttonlabels) | 454 | public virtual void SendDialog(string objectname, LLUUID objectID, LLUUID ownerID, string msg, LLUUID textureID, int ch, string[] buttonlabels) |
455 | { | 455 | { |
456 | } | 456 | } |
457 | 457 | ||
458 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, | 458 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, |
459 | PrimitiveBaseShape primShape, LLVector3 pos, LLVector3 vel, | 459 | PrimitiveBaseShape primShape, LLVector3 pos, LLVector3 vel, |
460 | LLVector3 acc, LLQuaternion rotation, LLVector3 rvel, uint flags, | 460 | LLVector3 acc, LLQuaternion rotation, LLVector3 rvel, uint flags, |
461 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, | 461 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, |
462 | uint parentID, | 462 | uint parentID, |
463 | byte[] particleSystem, byte clickAction) | 463 | byte[] particleSystem, byte clickAction) |
464 | { | 464 | { |
465 | } | 465 | } |
466 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, | 466 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, |
467 | PrimitiveBaseShape primShape, LLVector3 pos, LLVector3 vel, | 467 | PrimitiveBaseShape primShape, LLVector3 pos, LLVector3 vel, |
468 | LLVector3 acc, LLQuaternion rotation, LLVector3 rvel, uint flags, | 468 | LLVector3 acc, LLQuaternion rotation, LLVector3 rvel, uint flags, |
469 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, | 469 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, |
470 | uint parentID, | 470 | uint parentID, |
471 | byte[] particleSystem, byte clickAction, byte[] textureanimation, | 471 | byte[] particleSystem, byte clickAction, byte[] textureanimation, |
472 | bool attachment, uint AttachmentPoint, LLUUID AssetId) | 472 | bool attachment, uint AttachmentPoint, LLUUID AssetId) |
473 | { | 473 | { |
474 | } | 474 | } |
475 | public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, | 475 | public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, |
476 | LLVector3 position, LLQuaternion rotation, LLVector3 velocity, | 476 | LLVector3 position, LLQuaternion rotation, LLVector3 velocity, |
477 | LLVector3 rotationalvelocity, byte state, LLUUID AssetId) | 477 | LLVector3 rotationalvelocity, byte state, LLUUID AssetId) |
478 | { | 478 | { |
479 | } | 479 | } |
480 | 480 | ||
481 | public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, | 481 | public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, |
482 | LLVector3 position, LLQuaternion rotation, LLVector3 velocity, | 482 | LLVector3 position, LLQuaternion rotation, LLVector3 velocity, |
483 | LLVector3 rotationalvelocity) | 483 | LLVector3 rotationalvelocity) |
484 | { | 484 | { |
485 | } | 485 | } |
486 | 486 | ||
487 | public virtual void SendInventoryFolderDetails(LLUUID ownerID, LLUUID folderID, | 487 | public virtual void SendInventoryFolderDetails(LLUUID ownerID, LLUUID folderID, |
488 | List<InventoryItemBase> items, | 488 | List<InventoryItemBase> items, |
489 | List<InventoryFolderBase> folders, | 489 | List<InventoryFolderBase> folders, |
490 | bool fetchFolders, | 490 | bool fetchFolders, |
491 | bool fetchItems) | 491 | bool fetchItems) |
492 | { | 492 | { |
493 | } | 493 | } |
494 | 494 | ||
495 | public virtual void SendInventoryItemDetails(LLUUID ownerID, InventoryItemBase item) | 495 | public virtual void SendInventoryItemDetails(LLUUID ownerID, InventoryItemBase item) |
496 | { | 496 | { |
497 | } | 497 | } |
498 | 498 | ||
499 | public virtual void SendInventoryItemCreateUpdate(InventoryItemBase Item) | 499 | public virtual void SendInventoryItemCreateUpdate(InventoryItemBase Item) |
500 | { | 500 | { |
501 | } | 501 | } |
502 | 502 | ||
503 | public virtual void SendRemoveInventoryItem(LLUUID itemID) | 503 | public virtual void SendRemoveInventoryItem(LLUUID itemID) |
504 | { | 504 | { |
505 | } | 505 | } |
506 | 506 | ||
507 | /// <see>IClientAPI.SendBulkUpdateInventory(InventoryItemBase)</see> | 507 | /// <see>IClientAPI.SendBulkUpdateInventory(InventoryItemBase)</see> |
508 | public virtual void SendBulkUpdateInventory(InventoryItemBase item) | 508 | public virtual void SendBulkUpdateInventory(InventoryItemBase item) |
509 | { | 509 | { |
510 | } | 510 | } |
511 | 511 | ||
512 | public void SendTakeControls(int controls, bool passToAgent, bool TakeControls) | 512 | public void SendTakeControls(int controls, bool passToAgent, bool TakeControls) |
513 | { | 513 | { |
514 | } | 514 | } |
515 | 515 | ||
516 | public virtual void SendTaskInventory(LLUUID taskID, short serial, byte[] fileName) | 516 | public virtual void SendTaskInventory(LLUUID taskID, short serial, byte[] fileName) |
517 | { | 517 | { |
518 | } | 518 | } |
519 | 519 | ||
520 | public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data) | 520 | public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data) |
521 | { | 521 | { |
522 | } | 522 | } |
523 | 523 | ||
524 | public virtual void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit, | 524 | public virtual void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit, |
525 | int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, float PriceObjectScaleFactor, | 525 | int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, float PriceObjectScaleFactor, |
526 | int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent, int PricePublicObjectDecay, | 526 | int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent, int PricePublicObjectDecay, |
527 | int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice, float TeleportPriceExponent) | 527 | int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice, float TeleportPriceExponent) |
528 | { | 528 | { |
529 | 529 | ||
530 | } | 530 | } |
531 | public virtual void SendNameReply(LLUUID profileId, string firstname, string lastname) | 531 | public virtual void SendNameReply(LLUUID profileId, string firstname, string lastname) |
532 | { | 532 | { |
533 | } | 533 | } |
534 | 534 | ||
535 | public virtual void SendPreLoadSound(LLUUID objectID, LLUUID ownerID, LLUUID soundID) | 535 | public virtual void SendPreLoadSound(LLUUID objectID, LLUUID ownerID, LLUUID soundID) |
536 | { | 536 | { |
537 | } | 537 | } |
538 | 538 | ||
539 | public virtual void SendPlayAttachedSound(LLUUID soundID, LLUUID objectID, LLUUID ownerID, float gain, | 539 | public virtual void SendPlayAttachedSound(LLUUID soundID, LLUUID objectID, LLUUID ownerID, float gain, |
540 | byte flags) | 540 | byte flags) |
541 | { | 541 | { |
542 | } | 542 | } |
543 | 543 | ||
544 | public void SendTriggeredSound(LLUUID soundID, LLUUID ownerID, LLUUID objectID, LLUUID parentID, ulong handle, LLVector3 position, float gain) | 544 | public void SendTriggeredSound(LLUUID soundID, LLUUID ownerID, LLUUID objectID, LLUUID parentID, ulong handle, LLVector3 position, float gain) |
545 | { | 545 | { |
546 | } | 546 | } |
547 | 547 | ||
548 | public void SendAttachedSoundGainChange(LLUUID objectID, float gain) | 548 | public void SendAttachedSoundGainChange(LLUUID objectID, float gain) |
549 | { | 549 | { |
550 | 550 | ||
551 | } | 551 | } |
552 | 552 | ||
553 | public void SendAlertMessage(string message) | 553 | public void SendAlertMessage(string message) |
554 | { | 554 | { |
555 | } | 555 | } |
556 | 556 | ||
557 | public void SendAgentAlertMessage(string message, bool modal) | 557 | public void SendAgentAlertMessage(string message, bool modal) |
558 | { | 558 | { |
559 | } | 559 | } |
560 | 560 | ||
561 | public void SendSystemAlertMessage(string message) | 561 | public void SendSystemAlertMessage(string message) |
562 | { | 562 | { |
563 | } | 563 | } |
564 | 564 | ||
565 | public void SendLoadURL(string objectname, LLUUID objectID, LLUUID ownerID, bool groupOwned, string message, | 565 | public void SendLoadURL(string objectname, LLUUID objectID, LLUUID ownerID, bool groupOwned, string message, |
566 | string url) | 566 | string url) |
567 | { | 567 | { |
568 | } | 568 | } |
569 | 569 | ||
570 | public virtual void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args) | 570 | public virtual void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args) |
571 | { | 571 | { |
572 | if (OnRegionHandShakeReply != null) | 572 | if (OnRegionHandShakeReply != null) |
573 | { | 573 | { |
574 | OnRegionHandShakeReply(this); | 574 | OnRegionHandShakeReply(this); |
575 | } | 575 | } |
576 | 576 | ||
577 | if (OnCompleteMovementToRegion != null) | 577 | if (OnCompleteMovementToRegion != null) |
578 | { | 578 | { |
579 | OnCompleteMovementToRegion(); | 579 | OnCompleteMovementToRegion(); |
580 | } | 580 | } |
581 | } | 581 | } |
582 | public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, LLUUID AssetFullID) | 582 | public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, LLUUID AssetFullID) |
583 | { | 583 | { |
584 | } | 584 | } |
585 | 585 | ||
586 | public void SendConfirmXfer(ulong xferID, uint PacketID) | 586 | public void SendConfirmXfer(ulong xferID, uint PacketID) |
587 | { | 587 | { |
588 | } | 588 | } |
589 | 589 | ||
590 | public void SendXferRequest(ulong XferID, short AssetType, LLUUID vFileID, byte FilePath, byte[] FileName) | 590 | public void SendXferRequest(ulong XferID, short AssetType, LLUUID vFileID, byte FilePath, byte[] FileName) |
591 | { | 591 | { |
592 | } | 592 | } |
593 | 593 | ||
594 | public void SendImagePart(ushort numParts, LLUUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec) | 594 | public void SendImagePart(ushort numParts, LLUUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec) |
595 | { | 595 | { |
596 | } | 596 | } |
597 | 597 | ||
598 | public void SendShutdownConnectionNotice() | 598 | public void SendShutdownConnectionNotice() |
599 | { | 599 | { |
600 | } | 600 | } |
601 | 601 | ||
602 | public void SendSimStats(Packet pack) | 602 | public void SendSimStats(Packet pack) |
603 | { | 603 | { |
604 | } | 604 | } |
605 | 605 | ||
606 | public void SendObjectPropertiesFamilyData(uint RequestFlags, LLUUID ObjectUUID, LLUUID OwnerID, LLUUID GroupID, | 606 | public void SendObjectPropertiesFamilyData(uint RequestFlags, LLUUID ObjectUUID, LLUUID OwnerID, LLUUID GroupID, |
607 | uint BaseMask, uint OwnerMask, uint GroupMask, uint EveryoneMask, | 607 | uint BaseMask, uint OwnerMask, uint GroupMask, uint EveryoneMask, |
608 | uint NextOwnerMask, int OwnershipCost, byte SaleType, int SalePrice, uint Category, | 608 | uint NextOwnerMask, int OwnershipCost, byte SaleType, int SalePrice, uint Category, |
609 | LLUUID LastOwnerID, string ObjectName, string Description) | 609 | LLUUID LastOwnerID, string ObjectName, string Description) |
610 | { | 610 | { |
611 | } | 611 | } |
612 | 612 | ||
613 | public void SendObjectPropertiesReply(LLUUID ItemID, ulong CreationDate, LLUUID CreatorUUID, LLUUID FolderUUID, LLUUID FromTaskUUID, | 613 | public void SendObjectPropertiesReply(LLUUID ItemID, ulong CreationDate, LLUUID CreatorUUID, LLUUID FolderUUID, LLUUID FromTaskUUID, |
614 | LLUUID GroupUUID, short InventorySerial, LLUUID LastOwnerUUID, LLUUID ObjectUUID, | 614 | LLUUID GroupUUID, short InventorySerial, LLUUID LastOwnerUUID, LLUUID ObjectUUID, |
615 | LLUUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName, | 615 | LLUUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName, |
616 | string ItemDescription, uint OwnerMask, uint NextOwnerMask, uint GroupMask, uint EveryoneMask, | 616 | string ItemDescription, uint OwnerMask, uint NextOwnerMask, uint GroupMask, uint EveryoneMask, |
617 | uint BaseMask) | 617 | uint BaseMask) |
618 | { | 618 | { |
619 | } | 619 | } |
620 | 620 | ||
621 | public bool AddMoney(int debit) | 621 | public bool AddMoney(int debit) |
622 | { | 622 | { |
623 | return false; | 623 | return false; |
624 | } | 624 | } |
625 | 625 | ||
626 | public void SendSunPos(LLVector3 sunPos, LLVector3 sunVel, ulong time, uint dlen, uint ylen, float phase) | 626 | public void SendSunPos(LLVector3 sunPos, LLVector3 sunVel, ulong time, uint dlen, uint ylen, float phase) |
627 | { | 627 | { |
628 | } | 628 | } |
629 | 629 | ||
630 | public void SendViewerTime(int phase) | 630 | public void SendViewerTime(int phase) |
631 | { | 631 | { |
632 | } | 632 | } |
633 | 633 | ||
634 | public void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, string charterMember, | 634 | public void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, string charterMember, |
635 | string flAbout, uint flags, LLUUID flImageID, LLUUID imageID, string profileURL, | 635 | string flAbout, uint flags, LLUUID flImageID, LLUUID imageID, string profileURL, |
636 | LLUUID partnerID) | 636 | LLUUID partnerID) |
637 | { | 637 | { |
638 | } | 638 | } |
639 | 639 | ||
640 | public void SetDebug(int newDebug) | 640 | public void SetDebug(int newDebug) |
641 | { | 641 | { |
642 | } | 642 | } |
643 | 643 | ||
644 | public void InPacket(Packet NewPack) | 644 | public void InPacket(Packet NewPack) |
645 | { | 645 | { |
646 | } | 646 | } |
647 | 647 | ||
648 | public void Close(bool ShutdownCircuit) | 648 | public void Close(bool ShutdownCircuit) |
649 | { | 649 | { |
650 | } | 650 | } |
651 | 651 | ||
652 | public void Stop() | 652 | public void Stop() |
653 | { | 653 | { |
654 | } | 654 | } |
655 | 655 | ||
656 | private uint m_circuitCode; | 656 | private uint m_circuitCode; |
657 | 657 | ||
658 | public uint CircuitCode | 658 | public uint CircuitCode |
659 | { | 659 | { |
660 | get { return m_circuitCode; } | 660 | get { return m_circuitCode; } |
661 | set { m_circuitCode = value; } | 661 | set { m_circuitCode = value; } |
662 | } | 662 | } |
663 | public void SendBlueBoxMessage(LLUUID FromAvatarID, LLUUID fromSessionID, String FromAvatarName, String Message) | 663 | public void SendBlueBoxMessage(LLUUID FromAvatarID, LLUUID fromSessionID, String FromAvatarName, String Message) |
664 | { | 664 | { |
665 | 665 | ||
666 | } | 666 | } |
667 | public void SendLogoutPacket() | 667 | public void SendLogoutPacket() |
668 | { | 668 | { |
669 | } | 669 | } |
670 | 670 | ||
671 | public void Terminate() | 671 | public void Terminate() |
672 | { | 672 | { |
673 | } | 673 | } |
674 | 674 | ||
675 | public ClientInfo GetClientInfo() | 675 | public ClientInfo GetClientInfo() |
676 | { | 676 | { |
677 | return null; | 677 | return null; |
678 | } | 678 | } |
679 | 679 | ||
680 | public void SetClientInfo(ClientInfo info) | 680 | public void SetClientInfo(ClientInfo info) |
681 | { | 681 | { |
682 | } | 682 | } |
683 | 683 | ||
684 | public void SendScriptQuestion(LLUUID objectID, string taskName, string ownerName, LLUUID itemID, int question) | 684 | public void SendScriptQuestion(LLUUID objectID, string taskName, string ownerName, LLUUID itemID, int question) |
685 | { | 685 | { |
686 | } | 686 | } |
687 | public void SendHealth(float health) | 687 | public void SendHealth(float health) |
688 | { | 688 | { |
689 | } | 689 | } |
690 | 690 | ||
691 | public void sendEstateManagersList(LLUUID invoice, LLUUID[] EstateManagers, uint estateID) | 691 | public void sendEstateManagersList(LLUUID invoice, LLUUID[] EstateManagers, uint estateID) |
692 | { | 692 | { |
693 | } | 693 | } |
694 | public void sendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args) | 694 | public void sendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args) |
695 | { | 695 | { |
696 | } | 696 | } |
697 | public void sendEstateCovenantInformation() | 697 | public void sendEstateCovenantInformation() |
698 | { | 698 | { |
699 | } | 699 | } |
700 | public void sendDetailedEstateData(LLUUID invoice, string estateName, uint estateID) | 700 | public void sendDetailedEstateData(LLUUID invoice, string estateName, uint estateID) |
701 | { | 701 | { |
702 | } | 702 | } |
703 | 703 | ||
704 | public void sendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int simObjectCapacity, uint regionFlags) | 704 | public void sendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int simObjectCapacity, uint regionFlags) |
705 | { | 705 | { |
706 | } | 706 | } |
707 | public void sendLandAccessListData(List<LLUUID> avatars, uint accessFlag, int localLandID) | 707 | public void sendLandAccessListData(List<LLUUID> avatars, uint accessFlag, int localLandID) |
708 | { | 708 | { |
709 | } | 709 | } |
710 | public void sendForceClientSelectObjects(List<uint> objectIDs) | 710 | public void sendForceClientSelectObjects(List<uint> objectIDs) |
711 | { | 711 | { |
712 | } | 712 | } |
713 | public void sendLandObjectOwners(Dictionary<LLUUID, int> ownersAndCount) | 713 | public void sendLandObjectOwners(Dictionary<LLUUID, int> ownersAndCount) |
714 | { | 714 | { |
715 | } | 715 | } |
716 | public void sendLandParcelOverlay(byte[] data, int sequence_id) | 716 | public void sendLandParcelOverlay(byte[] data, int sequence_id) |
717 | { | 717 | { |
718 | } | 718 | } |
719 | #endregion | 719 | #endregion |
720 | } | 720 | } |
721 | } \ No newline at end of file | 721 | } \ No newline at end of file |
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs index 7aeff57..8a78f15 100644 --- a/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs +++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs | |||
@@ -1,43 +1,43 @@ | |||
1 | using libsecondlife; | 1 | using libsecondlife; |
2 | using Nini.Config; | 2 | using Nini.Config; |
3 | using OpenSim.Region.Environment.Interfaces; | 3 | using OpenSim.Region.Environment.Interfaces; |
4 | using OpenSim.Region.Environment.Scenes; | 4 | using OpenSim.Region.Environment.Scenes; |
5 | 5 | ||
6 | namespace OpenSim.Region.Environment.Modules.World.NPC | 6 | namespace OpenSim.Region.Environment.Modules.World.NPC |
7 | { | 7 | { |
8 | public class NPCModule : IRegionModule | 8 | public class NPCModule : IRegionModule |
9 | { | 9 | { |
10 | private const bool m_enabled = false; | 10 | private const bool m_enabled = false; |
11 | 11 | ||
12 | public void Initialise(Scene scene, IConfigSource source) | 12 | public void Initialise(Scene scene, IConfigSource source) |
13 | { | 13 | { |
14 | if (m_enabled) | 14 | if (m_enabled) |
15 | { | 15 | { |
16 | NPCAvatar testAvatar = new NPCAvatar("Jack", "NPC", new LLVector3(128, 128, 40), scene); | 16 | NPCAvatar testAvatar = new NPCAvatar("Jack", "NPC", new LLVector3(128, 128, 40), scene); |
17 | NPCAvatar testAvatar2 = new NPCAvatar("Jill", "NPC", new LLVector3(136, 128, 40), scene); | 17 | NPCAvatar testAvatar2 = new NPCAvatar("Jill", "NPC", new LLVector3(136, 128, 40), scene); |
18 | scene.AddNewClient(testAvatar, false); | 18 | scene.AddNewClient(testAvatar, false); |
19 | scene.AddNewClient(testAvatar2, false); | 19 | scene.AddNewClient(testAvatar2, false); |
20 | } | 20 | } |
21 | } | 21 | } |
22 | 22 | ||
23 | public void PostInitialise() | 23 | public void PostInitialise() |
24 | { | 24 | { |
25 | 25 | ||
26 | } | 26 | } |
27 | 27 | ||
28 | public void Close() | 28 | public void Close() |
29 | { | 29 | { |
30 | 30 | ||
31 | } | 31 | } |
32 | 32 | ||
33 | public string Name | 33 | public string Name |
34 | { | 34 | { |
35 | get { return "NPCModule"; } | 35 | get { return "NPCModule"; } |
36 | } | 36 | } |
37 | 37 | ||
38 | public bool IsSharedModule | 38 | public bool IsSharedModule |
39 | { | 39 | { |
40 | get { return true; } | 40 | get { return true; } |
41 | } | 41 | } |
42 | } | 42 | } |
43 | } | 43 | } |