From 7daa3955bc3a1918e40962851f9e8d38597a245e Mon Sep 17 00:00:00 2001 From: gareth Date: Thu, 22 Mar 2007 10:11:15 +0000 Subject: brought zircon branch into trunk --- OpenSim.RegionServer/OpenSimRoot.cs | 63 +++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 OpenSim.RegionServer/OpenSimRoot.cs (limited to 'OpenSim.RegionServer/OpenSimRoot.cs') diff --git a/OpenSim.RegionServer/OpenSimRoot.cs b/OpenSim.RegionServer/OpenSimRoot.cs new file mode 100644 index 0000000..3361e5d --- /dev/null +++ b/OpenSim.RegionServer/OpenSimRoot.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Net; +//using System.Net.Sockets; +using libsecondlife; +using libsecondlife.Packets; +using OpenSim.world; +using OpenSim.Framework.Interfaces; +using OpenSim.UserServer; +using OpenSim.Assets; +using OpenSim.CAPS; +using OpenSim.Framework.Console; +using OpenSim.Physics.Manager; + +namespace OpenSim +{ + public sealed class OpenSimRoot + { + private static OpenSimRoot instance = new OpenSimRoot(); + + public static OpenSimRoot Instance + { + get + { + return instance; + } + } + + private OpenSimRoot() + { + + } + + public World LocalWorld; + public Grid GridServers; + public SimConfig Cfg; + public SimCAPSHTTPServer HttpServer; + public AssetCache AssetCache; + public InventoryCache InventoryCache; + //public Dictionary ClientThreads = new Dictionary(); + public Dictionary ClientThreads = new Dictionary(); + public DateTime startuptime; + public OpenSimApplication Application; + public bool Sandbox = false; + + public void StartUp() + { + if (this.Application != null) + { + this.Application.StartUp(); + } + } + + public void Shutdown() + { + if (this.Application != null) + { + this.Application.Shutdown(); + } + } + } +} -- cgit v1.1