2 using System.Collections.Generic;
6 using SiliconStudio.Paradox;
7 using SiliconStudio.Paradox.Games.MicroThreading;
9 using SiliconStudio.Paradox.Games.ViewModel;
15 private ViewModelContext selectedEntitiesContext;
19 this.selectedEntitiesContext = selectedEntitiesContext;
22 public void GenerateChildren(ViewModelContext context, IViewModelNode viewModelNode, ref
bool handled)
24 if (viewModelNode.NodeValue is MicroThread)
26 viewModelNode.Children.Add(
new ViewModelNode(
"Id",
new PropertyInfoViewModelContent(
new ParentNodeValueViewModelContent(), typeof(MicroThread).GetProperty(
"Id"))));
27 viewModelNode.Children.Add(
new ViewModelNode(
"Name",
new PropertyInfoViewModelContent(
new ParentNodeValueViewModelContent(), typeof(MicroThread).GetProperty(
"Name"))));
28 viewModelNode.Children.Add(
new ViewModelNode(
"ScriptName",
29 LambdaViewModelContent<string>.FromParent<MicroThread>(x => x.Get(ScriptManager.ScriptEntryProperty).TypeName)));
31 viewModelNode.Children.Add(
new ViewModelNode(
"EventOpen",
new RootViewModelContent((ExecuteCommand)((viewModel2, parameter) =>
33 selectedEntitiesContext.ViewModelByGuid.Clear();
34 selectedEntitiesContext.Root = selectedEntitiesContext.GetModelView(viewModel2.Parent.NodeValue);
void GenerateChildren(ViewModelContext context, IViewModelNode viewModelNode, ref bool handled)
MicroThreadEnumerator(ViewModelContext selectedEntitiesContext)