示例#1
0
 public static UIPageEditorViewModel Create([NotNull] UIPageViewModel asset)
 {
     return(new UIPageEditorViewModel(asset, x => new UIPageEditorController(asset, (UIPageEditorViewModel)x)));
 }
示例#2
0
 public UIPageRootViewModel([NotNull] UIEditorBaseViewModel editor, [NotNull] UIPageViewModel asset, UIElementDesign rootElement)
     : base(editor, asset, rootElement?.Yield())
 {
     NotifyGameSidePartAdded().Forget();
 }
示例#3
0
 /// <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)
 {
 }