aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/OpenSimRoot.cs
blob: 3361e5d85bee15c244805bc9870c5047305fdedc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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<EndPoint, SimClient> ClientThreads = new Dictionary<EndPoint, SimClient>();
        public Dictionary<uint, SimClient> ClientThreads = new Dictionary<uint, SimClient>();
        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();
            }
        }
    }
}