Ejemplo n.º 1
0
        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);
            });
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public CInspectorBaseViewModel(IInspectorViewModel viewModel, string name)
 {
     m_viewModel = viewModel;
     m_name      = name;
 }
Ejemplo n.º 4
0
 public CInspectorEntityViewModel(IInspectorViewModel vm, string name, SEntityId entityId)
     : base(vm, name)
 {
     EntityId = entityId;
 }