From 303ea70efad0ba703743f4a5b9812250c314c2d4 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 23 Jun 2007 11:14:58 +0000 Subject: More work on CAPS handler. --- Common/OpenSim.Framework/Types/AgentCiruitData.cs | 1 + Common/OpenSim.Framework/Types/Login.cs | 1 + Common/OpenSim.Framework/Util.cs | 8 ++++++++ 3 files changed, 10 insertions(+) (limited to 'Common/OpenSim.Framework') diff --git a/Common/OpenSim.Framework/Types/AgentCiruitData.cs b/Common/OpenSim.Framework/Types/AgentCiruitData.cs index cfac9ba..a650343 100644 --- a/Common/OpenSim.Framework/Types/AgentCiruitData.cs +++ b/Common/OpenSim.Framework/Types/AgentCiruitData.cs @@ -45,5 +45,6 @@ namespace OpenSim.Framework.Types public bool child; public LLUUID InventoryFolder; public LLUUID BaseFolder; + public string CapsPath = ""; } } diff --git a/Common/OpenSim.Framework/Types/Login.cs b/Common/OpenSim.Framework/Types/Login.cs index 992d665..3180a16 100644 --- a/Common/OpenSim.Framework/Types/Login.cs +++ b/Common/OpenSim.Framework/Types/Login.cs @@ -42,6 +42,7 @@ namespace OpenSim.Framework.Types public LLUUID InventoryFolder; public LLUUID BaseFolder; public uint CircuitCode; + public string CapsPath =""; public Login() { diff --git a/Common/OpenSim.Framework/Util.cs b/Common/OpenSim.Framework/Util.cs index 10e3fdf..8c34c9b 100644 --- a/Common/OpenSim.Framework/Util.cs +++ b/Common/OpenSim.Framework/Util.cs @@ -81,6 +81,14 @@ namespace OpenSim.Framework.Utilities return sb.ToString(); } + public static string GetRandomCapsPath() + { + LLUUID caps = LLUUID.Random(); + string capsPath = caps.ToStringHyphenated(); + capsPath = capsPath.Remove(capsPath.Length - 4, 4); + return capsPath; + } + //public static int fast_distance2d(int x, int y) //{ // x = System.Math.Abs(x); -- cgit v1.1