diff options
Diffstat (limited to 'OpenSim/Services/LLLoginService/LLLoginResponse.cs')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index d1dcfe7..54d53fb 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -217,12 +217,14 @@ namespace OpenSim.Services.LLLoginService | |||
217 | 217 | ||
218 | public LLLoginResponse(UserAccount account, AgentCircuitData aCircuit, GridUserInfo pinfo, | 218 | public LLLoginResponse(UserAccount account, AgentCircuitData aCircuit, GridUserInfo pinfo, |
219 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, | 219 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, |
220 | string where, string startlocation, Vector3 position, Vector3 lookAt, string message, | 220 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, |
221 | GridRegion home, IPEndPoint clientIP) | 221 | GridRegion home, IPEndPoint clientIP) |
222 | : this() | 222 | : this() |
223 | { | 223 | { |
224 | FillOutInventoryData(invSkel, libService); | 224 | FillOutInventoryData(invSkel, libService); |
225 | 225 | ||
226 | FillOutActiveGestures(gestures); | ||
227 | |||
226 | CircuitCode = (int)aCircuit.circuitcode; | 228 | CircuitCode = (int)aCircuit.circuitcode; |
227 | Lastname = account.LastName; | 229 | Lastname = account.LastName; |
228 | Firstname = account.FirstName; | 230 | Firstname = account.FirstName; |
@@ -283,6 +285,22 @@ namespace OpenSim.Services.LLLoginService | |||
283 | } | 285 | } |
284 | } | 286 | } |
285 | 287 | ||
288 | private void FillOutActiveGestures(List<InventoryItemBase> gestures) | ||
289 | { | ||
290 | ArrayList list = new ArrayList(); | ||
291 | if (gestures != null) | ||
292 | { | ||
293 | foreach (InventoryItemBase gesture in gestures) | ||
294 | { | ||
295 | Hashtable item = new Hashtable(); | ||
296 | item["item_id"] = gesture.ID.ToString(); | ||
297 | item["asset_id"] = gesture.AssetID.ToString(); | ||
298 | list.Add(item); | ||
299 | } | ||
300 | } | ||
301 | ActiveGestures = list; | ||
302 | } | ||
303 | |||
286 | private void FillOutHomeData(GridUserInfo pinfo, GridRegion home) | 304 | private void FillOutHomeData(GridUserInfo pinfo, GridRegion home) |
287 | { | 305 | { |
288 | int x = 1000 * (int)Constants.RegionSize, y = 1000 * (int)Constants.RegionSize; | 306 | int x = 1000 * (int)Constants.RegionSize, y = 1000 * (int)Constants.RegionSize; |