diff options
author | Adam Frisby | 2007-05-04 03:25:20 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-04 03:25:20 +0000 |
commit | 10f75f936e1322ea1e328799cfba08229d667a78 (patch) | |
tree | 87bc3faaeb19595a67ef0b286a93dbdb117c1942 /OpenGrid.Framework.Data | |
parent | fix array size (diff) | |
download | opensim-SC_OLD-10f75f936e1322ea1e328799cfba08229d667a78.zip opensim-SC_OLD-10f75f936e1322ea1e328799cfba08229d667a78.tar.gz opensim-SC_OLD-10f75f936e1322ea1e328799cfba08229d667a78.tar.bz2 opensim-SC_OLD-10f75f936e1322ea1e328799cfba08229d667a78.tar.xz |
Committing OpenGrid.Framework.Data and MySql Adaptor - not in functional state yet, posted for reference and future use.
Diffstat (limited to 'OpenGrid.Framework.Data')
-rw-r--r-- | OpenGrid.Framework.Data/GridData.cs | 14 | ||||
-rw-r--r-- | OpenGrid.Framework.Data/OpenGrid.Framework.Data.csproj | 52 | ||||
-rw-r--r-- | OpenGrid.Framework.Data/Properties/AssemblyInfo.cs | 35 | ||||
-rw-r--r-- | OpenGrid.Framework.Data/SimProfileData.cs | 65 | ||||
-rw-r--r-- | OpenGrid.Framework.Data/UserProfileData.cs | 33 |
5 files changed, 199 insertions, 0 deletions
diff --git a/OpenGrid.Framework.Data/GridData.cs b/OpenGrid.Framework.Data/GridData.cs new file mode 100644 index 0000000..9bc2ce3 --- /dev/null +++ b/OpenGrid.Framework.Data/GridData.cs | |||
@@ -0,0 +1,14 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenGrid.Framework.Data | ||
6 | { | ||
7 | public interface IGridData | ||
8 | { | ||
9 | SimProfileData GetProfileByHandle(ulong regionHandle); | ||
10 | SimProfileData GetProfileByLLUUID(libsecondlife.LLUUID UUID); | ||
11 | bool AuthenticateSim(libsecondlife.LLUUID UUID, ulong regionHandle, string simrecvkey); | ||
12 | void Initialise(); | ||
13 | } | ||
14 | } | ||
diff --git a/OpenGrid.Framework.Data/OpenGrid.Framework.Data.csproj b/OpenGrid.Framework.Data/OpenGrid.Framework.Data.csproj new file mode 100644 index 0000000..2be7ea9 --- /dev/null +++ b/OpenGrid.Framework.Data/OpenGrid.Framework.Data.csproj | |||
@@ -0,0 +1,52 @@ | |||
1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
2 | <PropertyGroup> | ||
3 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
4 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
5 | <ProductVersion>8.0.50727</ProductVersion> | ||
6 | <SchemaVersion>2.0</SchemaVersion> | ||
7 | <ProjectGuid>{70E6CBC5-2DD0-44F1-87B8-2CFB2458EDE9}</ProjectGuid> | ||
8 | <OutputType>Library</OutputType> | ||
9 | <AppDesignerFolder>Properties</AppDesignerFolder> | ||
10 | <RootNamespace>OpenGrid.Framework.Data</RootNamespace> | ||
11 | <AssemblyName>OpenGrid.Framework.Data</AssemblyName> | ||
12 | </PropertyGroup> | ||
13 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
14 | <DebugSymbols>true</DebugSymbols> | ||
15 | <DebugType>full</DebugType> | ||
16 | <Optimize>false</Optimize> | ||
17 | <OutputPath>bin\Debug\</OutputPath> | ||
18 | <DefineConstants>DEBUG;TRACE</DefineConstants> | ||
19 | <ErrorReport>prompt</ErrorReport> | ||
20 | <WarningLevel>4</WarningLevel> | ||
21 | </PropertyGroup> | ||
22 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
23 | <DebugType>pdbonly</DebugType> | ||
24 | <Optimize>true</Optimize> | ||
25 | <OutputPath>bin\Release\</OutputPath> | ||
26 | <DefineConstants>TRACE</DefineConstants> | ||
27 | <ErrorReport>prompt</ErrorReport> | ||
28 | <WarningLevel>4</WarningLevel> | ||
29 | </PropertyGroup> | ||
30 | <ItemGroup> | ||
31 | <Reference Include="libsecondlife, Version=0.9.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
32 | <SpecificVersion>False</SpecificVersion> | ||
33 | <HintPath>..\bin\libsecondlife.dll</HintPath> | ||
34 | </Reference> | ||
35 | <Reference Include="System" /> | ||
36 | <Reference Include="System.Data" /> | ||
37 | <Reference Include="System.Xml" /> | ||
38 | </ItemGroup> | ||
39 | <ItemGroup> | ||
40 | <Compile Include="GridData.cs" /> | ||
41 | <Compile Include="Properties\AssemblyInfo.cs" /> | ||
42 | <Compile Include="SimProfileData.cs" /> | ||
43 | </ItemGroup> | ||
44 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
45 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
46 | Other similar extension points exist, see Microsoft.Common.targets. | ||
47 | <Target Name="BeforeBuild"> | ||
48 | </Target> | ||
49 | <Target Name="AfterBuild"> | ||
50 | </Target> | ||
51 | --> | ||
52 | </Project> \ No newline at end of file | ||
diff --git a/OpenGrid.Framework.Data/Properties/AssemblyInfo.cs b/OpenGrid.Framework.Data/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1446673 --- /dev/null +++ b/OpenGrid.Framework.Data/Properties/AssemblyInfo.cs | |||
@@ -0,0 +1,35 @@ | |||
1 | using System.Reflection; | ||
2 | using System.Runtime.CompilerServices; | ||
3 | using System.Runtime.InteropServices; | ||
4 | |||
5 | // General Information about an assembly is controlled through the following | ||
6 | // set of attributes. Change these attribute values to modify the information | ||
7 | // associated with an assembly. | ||
8 | [assembly: AssemblyTitle("OpenGrid.Framework.Data")] | ||
9 | [assembly: AssemblyDescription("")] | ||
10 | [assembly: AssemblyConfiguration("")] | ||
11 | [assembly: AssemblyCompany("")] | ||
12 | [assembly: AssemblyProduct("OpenGrid.Framework.Data")] | ||
13 | [assembly: AssemblyCopyright("Copyright © 2007")] | ||
14 | [assembly: AssemblyTrademark("")] | ||
15 | [assembly: AssemblyCulture("")] | ||
16 | |||
17 | // Setting ComVisible to false makes the types in this assembly not visible | ||
18 | // to COM components. If you need to access a type in this assembly from | ||
19 | // COM, set the ComVisible attribute to true on that type. | ||
20 | [assembly: ComVisible(false)] | ||
21 | |||
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM | ||
23 | [assembly: Guid("3a711c34-b0c0-4264-b0fe-f366eabf9d7b")] | ||
24 | |||
25 | // Version information for an assembly consists of the following four values: | ||
26 | // | ||
27 | // Major Version | ||
28 | // Minor Version | ||
29 | // Build Number | ||
30 | // Revision | ||
31 | // | ||
32 | // You can specify all the values or you can default the Revision and Build Numbers | ||
33 | // by using the '*' as shown below: | ||
34 | [assembly: AssemblyVersion("1.0.0.0")] | ||
35 | [assembly: AssemblyFileVersion("1.0.0.0")] | ||
diff --git a/OpenGrid.Framework.Data/SimProfileData.cs b/OpenGrid.Framework.Data/SimProfileData.cs new file mode 100644 index 0000000..a701875 --- /dev/null +++ b/OpenGrid.Framework.Data/SimProfileData.cs | |||
@@ -0,0 +1,65 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenGrid.Framework.Data | ||
6 | { | ||
7 | public class SimProfileData | ||
8 | { | ||
9 | /// <summary> | ||
10 | /// The name of the region | ||
11 | /// </summary> | ||
12 | public string regionName; | ||
13 | |||
14 | /// <summary> | ||
15 | /// A 64-bit number combining map position into a (mostly) unique ID | ||
16 | /// </summary> | ||
17 | public ulong regionHandle; | ||
18 | |||
19 | /// <summary> | ||
20 | /// OGS/OpenSim Specific ID for a region | ||
21 | /// </summary> | ||
22 | public libsecondlife.LLUUID UUID; | ||
23 | |||
24 | /// <summary> | ||
25 | /// Coordinates of the region | ||
26 | /// </summary> | ||
27 | public uint regionLocX; | ||
28 | public uint regionLocY; | ||
29 | public uint regionLocZ; // Reserved (round-robin, layers, etc) | ||
30 | |||
31 | /// <summary> | ||
32 | /// Authentication secrets | ||
33 | /// </summary> | ||
34 | /// <remarks>Not very secure, needs improvement.</remarks> | ||
35 | public string regionSendKey; | ||
36 | public string regionRecvKey; | ||
37 | public string regionSecret; | ||
38 | |||
39 | /// <summary> | ||
40 | /// Whether the region is online | ||
41 | /// </summary> | ||
42 | public bool regionOnline; | ||
43 | |||
44 | /// <summary> | ||
45 | /// Information about the server that the region is currently hosted on | ||
46 | /// </summary> | ||
47 | public string serverIP; | ||
48 | public uint serverPort; | ||
49 | public string serverURI; | ||
50 | |||
51 | /// <summary> | ||
52 | /// Set of optional overrides. Can be used to create non-eulicidean spaces. | ||
53 | /// </summary> | ||
54 | public ulong regionNorthOverrideHandle; | ||
55 | public ulong regionSouthOverrideHandle; | ||
56 | public ulong regionEastOverrideHandle; | ||
57 | public ulong regionWestOverrideHandle; | ||
58 | |||
59 | /// <summary> | ||
60 | /// Optional: URI Location of the region database | ||
61 | /// </summary> | ||
62 | /// <remarks>Used for floating sim pools where the region data is not nessecarily coupled to a specific server</remarks> | ||
63 | public string regionDataURI; | ||
64 | } | ||
65 | } | ||
diff --git a/OpenGrid.Framework.Data/UserProfileData.cs b/OpenGrid.Framework.Data/UserProfileData.cs new file mode 100644 index 0000000..d99394e --- /dev/null +++ b/OpenGrid.Framework.Data/UserProfileData.cs | |||
@@ -0,0 +1,33 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using libsecondlife; | ||
5 | |||
6 | namespace OpenGrid.Framework.Data | ||
7 | { | ||
8 | public class UserProfileData | ||
9 | { | ||
10 | string username; // The configurable part of the users username | ||
11 | string surname; // The users surname (can be used to indicate user class - eg 'Test User' or 'Test Admin') | ||
12 | |||
13 | ulong homeRegion; // RegionHandle of home | ||
14 | LLVector3 homeLocation; // Home Location inside the sim | ||
15 | |||
16 | int created; // UNIX Epoch Timestamp (User Creation) | ||
17 | int lastLogin; // UNIX Epoch Timestamp (Last Login Time) | ||
18 | |||
19 | string userInventoryURI; // URI to inventory server for this user | ||
20 | string userAssetURI; // URI to asset server for this user | ||
21 | |||
22 | uint profileCanDoMask; // Profile window "I can do" mask | ||
23 | uint profileWantDoMask; // Profile window "I want to" mask | ||
24 | |||
25 | string profileAboutText; // My about window text | ||
26 | string profileFirstText; // First Life Text | ||
27 | |||
28 | LLUUID profileImage; // My avatars profile image | ||
29 | LLUUID profileFirstImage; // First-life image | ||
30 | |||
31 | |||
32 | } | ||
33 | } | ||