コード例 #1
0
 public ViewportController(IContainer container)
 {
     _container       = container;
     _profileService  = container.Resolve <IProfileService>();
     _viewportService = container.Resolve <IViewportService>();
     _dcsWorldManager = container.Resolve <IDcsWorldManager>();
 }
コード例 #2
0
 public SelectInitialViewportsWizardStepViewModel(IContainer container)
     : base(container)
 {
     _viewportService = container.Resolve <IViewportService>();
     _dcsWorldManager = container.Resolve <IDcsWorldManager>();
     _profileService  = container.Resolve <IProfileService>();
 }
コード例 #3
0
        public override void Initialize()
        {
            // testing
            UnitEntity e = unitBuilder.CreateUnitEntity(UnitEntityType.Cube);
            categoriseComponents(e);

            vpService = (IViewportService)this.Game.Services.GetService(typeof(IViewportService));
            vpService.MainViewChanged += new ViewportService.ViewportChangedHandler(vpService_MainViewChanged);
            this.mapViewport = vpService.MainView;

            base.Initialize();
        }
コード例 #4
0
        protected override Task RegisterContainerItemsAsync(IContainer container)
        {
            container.Register <IViewportService, ViewportService>().AsSingleton().UsingConstructor(() => new ViewportService(container));

            var eventRegistry = container.Resolve <ApplicationEventRegistry>();

            //eventRegistry.PopulateSettings += PopulateSettings;

            _dcsWorldManager = container.Resolve <IDcsWorldManager>();
            _viewportService = container.Resolve <IViewportService>();

            return(base.RegisterContainerItemsAsync(container));
        }
コード例 #5
0
        public override void Initialize()
        {
            // testing
            UnitEntity e = unitBuilder.CreateUnitEntity(UnitEntityType.Cube);

            categoriseComponents(e);

            vpService = (IViewportService)this.Game.Services.GetService(typeof(IViewportService));
            vpService.MainViewChanged += new ViewportService.ViewportChangedHandler(vpService_MainViewChanged);
            this.mapViewport           = vpService.MainView;

            base.Initialize();
        }
コード例 #6
0
ファイル: MapComponent.cs プロジェクト: igirock/antsx
 private void initViewport()
 {
     this.vpService   = (IViewportService)this.Game.Services.GetService(typeof(IViewportService));
     this.mapViewport = this.vpService.MainView;
     this.vpService.MainViewChanged += new ViewportService.ViewportChangedHandler(viewport_MainViewChanged);
 }
コード例 #7
0
ファイル: MapComponent.cs プロジェクト: igirock/antsx
 private void initViewport()
 {
     this.vpService = (IViewportService)this.Game.Services.GetService(typeof(IViewportService));
     this.mapViewport = this.vpService.MainView;
     this.vpService.MainViewChanged += new ViewportService.ViewportChangedHandler(viewport_MainViewChanged);
 }