コード例 #1
0
 public StateViewModel(
     TreeViewViewModel treeParent,
     CompoundObjectViewModel parentVm,
     MainViewModel mainVm,
     ScenePropertiesViewModel sceneVm,
     string stateName,
     bool enabled = true) :
     base(treeParent, parentVm, mainVm, enabled)
 {
     _sceneVm  = sceneVm;
     StateName = stateName;
 }
コード例 #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);

            _defaultState = new StateViewModel(_sceneProperties, parentVm, mainVm, null, "default");
            _defaultStates.Add(_defaultState);
        }
コード例 #3
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);
        }