Ejemplo n.º 1
0
        public void Setup()
        {
            Globals.VERSION = MVersion.VERSION;

            MFileSystem.SetProjectPath(@".\");
            Globals._scene = new MScene(true);
            _spawnHandler  = new MSpawnHandler();
            _deleteHandler = new MDeleteHandler();

            _teleportHandler    = new MTeleportHandler();
            _textureHandler     = new MTextureHandler();
            _lightHandler       = new MLightHandler();
            _propertyHandler    = new MPropertyChangeHandler();
            _navPointer         = new MNavigationPointer();
            _bookmarkController = new BookmarkController();
            _moveHandler        = new MMoveHandler();
            _avatarHandler      = new MAvatarHandler();



            Globals._scene.SetupInitialObjects();
            _cameraHandler = new MCameraHandler();
            _buildParts    = new MBuildParts();
            _buildParts.Setup();

            _userDetails = new UserDetails();
            _userDetails.Setup();
            ParseCmdLine();

            //TODO: get from server


            Globals._scene.Setup();
            _navPointer.Setup();

            Globals._scene.Play();
            //Settings.DebugNetwork = true;
            CreateAvatar();
        }