public CInspectorEntityComponentViewModel(IInspectorViewModel viewModel, string name, SEntityComponentId componentId) : base(viewModel, name) { ComponentId = componentId; DeleteComponentCommand = new CRelayCommand(arg => { EditorEntityUtility.DestroyComponent(ComponentId); m_viewModel.QueueEntityInformationUpdate(ComponentId.EntityId, true); }); }
public CInspectorSceneComponentViewModel(IInspectorViewModel viewModel, string name, SEntityComponentId componentId, string dragIdentifier) : base(viewModel, name) { ComponentId = componentId; MakeRootCommand = new CRelayCommand(OnMakeRoot); DeleteComponentCommand = new CRelayCommand(OnDeleteComponent); DragEnterCommand = new CRelayCommand(OnDragEnter); DragOverCommand = new CRelayCommand(OnDragOver); DropCommand = new CRelayCommand(OnDrop); m_dragIdentifier = dragIdentifier; }
public CInspectorBaseViewModel(IInspectorViewModel viewModel, string name) { m_viewModel = viewModel; m_name = name; }
public CInspectorEntityViewModel(IInspectorViewModel vm, string name, SEntityId entityId) : base(vm, name) { EntityId = entityId; }