/// <summary>
        /// Initializes a new instance of the <see cref="EditorGameModelSelectionService"/> class.
        /// </summary>
        /// <param name="editorGame">The <see cref="EntityHierarchyEditorViewModel"/> related to the current instance of the scene editor.</param>
        protected override Task <bool> Initialize(EditorServiceGame editorGame)
        {
            selectionService = editorGame.EditorServices.Get <IEditorGameEntitySelectionService>();
            selectionService.SelectionUpdated += SelectionUpdated;

            return(Task.FromResult(true));
        }
Пример #2
0
        public void RegisterSelectionService(IEditorGameEntitySelectionService selectionService)
        {
            if (selectionService == null)
            {
                throw new ArgumentNullException(nameof(selectionService));
            }

            this.selectionService              = selectionService;
            selectionService.SelectionUpdated += SelectionUpdated;
        }