예제 #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="serve"></param>
 /// <param name="agentManager"></param>
 public GridManager(Server server, AgentManager agentManager)
 {
     Grid = new Dictionary<ulong, RegionInfo>();
     _server = server;
     _agentManager = agentManager;
     LoadGrid();
     InitialiseRegionHandshake();
 }
예제 #2
0
        public Controller()
        {
            _viewerServer = new Server();
            _backboneServers = new BackboneServers();
            _agentManager = new AgentManager(_viewerServer);
            _gridManager = new GridManager(_viewerServer, _agentManager);
            _scene = new SceneGraph(_viewerServer, _agentManager);

            ClientConnection.Grid = _gridManager;
            ClientConnection.Scene = _scene;
            ClientConnection.AgentManager = _agentManager;

            _viewerServer.Startup();

            if(Globals.Instance.StartLoginServer)
            {
                _loginServer = new LoginServer();
                _loginServer.Startup();
            }
        }
예제 #3
0
 public AgentManager(Server server)
 {
     _server=server;
 }
예제 #4
0
 public UpdateSender(Server server, AgentManager agentManager)
 {
     SendList = new BlockingQueue<SendInfo>();
     _server = server;
     _agentManager = agentManager;
 }
예제 #5
0
 public SceneGraph(Server server, AgentManager agentManager)
 {
     _server = server;
     RootNode = new Node();
     _physics = new PhysicsManager(this);
     Commands = new NonBlockingQueue<UpdateCommand>();
     Terrain = new Terrain();
     _updateSender = new UpdateSender(_server, agentManager);
     _agentManager = agentManager;
     //testing
     this.SetupTemplate("objectupate168.dat");
 }