public static UIPageEditorViewModel Create([NotNull] UIPageViewModel asset) { return(new UIPageEditorViewModel(asset, x => new UIPageEditorController(asset, (UIPageEditorViewModel)x))); }
public UIPageRootViewModel([NotNull] UIEditorBaseViewModel editor, [NotNull] UIPageViewModel asset, UIElementDesign rootElement) : base(editor, asset, rootElement?.Yield()) { NotifyGameSidePartAdded().Forget(); }
/// <summary> /// Initializes a new instance of the <see cref="UIPageViewModel"/> class. /// </summary> /// <param name="asset">The asset related to this editor.</param> /// <param name="controllerFactory">A factory to create the associated <see cref="IEditorGameController"/>.</param> /// <seealso cref="Create(UIPageViewModel)"/> public UIPageEditorViewModel([NotNull] UIPageViewModel asset, [NotNull] Func <GameEditorViewModel, IEditorGameController> controllerFactory) : base(asset, controllerFactory) { }