public CoBehaviourViewModel(
            TreeViewViewModel treeParent,
            CompoundObjectViewModel parentVm,
            MainViewModel mainVm,
            CoBehaviour modelObject)
        {
            _modelObject = modelObject;

            _parentVm               = parentVm;
            _sceneProperties        = new ScenePropertiesViewModel(treeParent, parentVm, mainVm, ModelObject.SceneProperties);
            _steerableObjProperties = new SteerableObjectPropertiesViewModel(treeParent, parentVm, mainVm, ModelObject.SteerableObjProps);
            _breakableObjProperties = new BreakableObjectPropertiesViewModel(treeParent, parentVm, mainVm, ModelObject.BreakableObjProps);

            _defaultState = new StateViewModel(_sceneProperties, parentVm, mainVm, null, "default");
            _defaultStates.Add(_defaultState);
        }
Example #2
0
        public CoBehaviourViewModel(
            TreeViewViewModel treeParent,
            CompoundObjectViewModel parentVm,
            MainViewModel mainVm,
            CoBehaviour modelObject)
        {
            _modelObject = modelObject;

            _parentVm               = parentVm;
            _sceneProperties        = new ScenePropertiesViewModel(treeParent, parentVm, mainVm, ModelObject.SceneProperties);
            _steerableObjProperties = new SteerableObjectPropertiesViewModel(treeParent, parentVm, mainVm, ModelObject.SteerableObjProps);
            _breakableObjProperties = new BreakableObjectPropertiesViewModel(treeParent, parentVm, mainVm, ModelObject.BreakableObjProps);
            _explosiveObjProperties = new ExplosiveObjectPropertiesViewModel(treeParent, parentVm, mainVm, ModelObject.ExplosiveObjProps);
            _magneticMineProperties = new MagneticMinePropertiesViewModel(treeParent, parentVm, mainVm, ModelObject.MagneticMineProps);
            _pickupProperties       = new PickupObjectPropertiesViewModel(treeParent, parentVm, mainVm, ModelObject.PickupObjProps);
        }