diff options
author | lbsa71 | 2007-09-21 03:13:49 +0000 |
---|---|---|
committer | lbsa71 | 2007-09-21 03:13:49 +0000 |
commit | 409bcd999d19c52133f7099963febdf96d865467 (patch) | |
tree | a4853c05b6af3b17a2ee1392aca9e08ed38ac427 /OpenSim/Region/Environment/Regions | |
parent | physics-related fixes; should stabilize border crossings (diff) | |
download | opensim-SC_OLD-409bcd999d19c52133f7099963febdf96d865467.zip opensim-SC_OLD-409bcd999d19c52133f7099963febdf96d865467.tar.gz opensim-SC_OLD-409bcd999d19c52133f7099963febdf96d865467.tar.bz2 opensim-SC_OLD-409bcd999d19c52133f7099963febdf96d865467.tar.xz |
* Continuing refactoring of presence
* Deleted stub ScenePresence.Body.cs
* Added stub Region classes
The idea is to, at first, have every ScenePresence have one RegionPresence, moving code over to it until we can detach the two classes and not have a ScenePresence for every RegionPresence.
Diffstat (limited to 'OpenSim/Region/Environment/Regions')
-rw-r--r-- | OpenSim/Region/Environment/Regions/Region.cs | 15 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Regions/RegionManager.cs | 16 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Regions/RegionPresence.cs | 14 |
3 files changed, 45 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Regions/Region.cs b/OpenSim/Region/Environment/Regions/Region.cs new file mode 100644 index 0000000..f7669a9 --- /dev/null +++ b/OpenSim/Region/Environment/Regions/Region.cs | |||
@@ -0,0 +1,15 @@ | |||
1 | using System.Collections.Generic; | ||
2 | using libsecondlife; | ||
3 | |||
4 | namespace OpenSim.Region.Environment.Regions | ||
5 | { | ||
6 | public class Region | ||
7 | { | ||
8 | private Dictionary<LLUUID, RegionPresence> m_regionPresences; | ||
9 | |||
10 | public Region() | ||
11 | { | ||
12 | m_regionPresences = new Dictionary<LLUUID, RegionPresence>( ); | ||
13 | } | ||
14 | } | ||
15 | } | ||
diff --git a/OpenSim/Region/Environment/Regions/RegionManager.cs b/OpenSim/Region/Environment/Regions/RegionManager.cs new file mode 100644 index 0000000..ab5b97c --- /dev/null +++ b/OpenSim/Region/Environment/Regions/RegionManager.cs | |||
@@ -0,0 +1,16 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Region.Environment.Regions | ||
6 | { | ||
7 | public class RegionManager | ||
8 | { | ||
9 | private Dictionary<uint, Region> m_regions; | ||
10 | |||
11 | public RegionManager( ) | ||
12 | { | ||
13 | m_regions = new Dictionary<uint, Region>( ); | ||
14 | } | ||
15 | } | ||
16 | } | ||
diff --git a/OpenSim/Region/Environment/Regions/RegionPresence.cs b/OpenSim/Region/Environment/Regions/RegionPresence.cs new file mode 100644 index 0000000..9720bb3 --- /dev/null +++ b/OpenSim/Region/Environment/Regions/RegionPresence.cs | |||
@@ -0,0 +1,14 @@ | |||
1 | using OpenSim.Framework.Interfaces; | ||
2 | |||
3 | namespace OpenSim.Region.Environment.Regions | ||
4 | { | ||
5 | public class RegionPresence | ||
6 | { | ||
7 | private IClientAPI m_client; | ||
8 | |||
9 | public RegionPresence(IClientAPI client ) | ||
10 | { | ||
11 | m_client = client; | ||
12 | } | ||
13 | } | ||
14 | } | ||