Ejemplo n.º 1
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public EditSystemViewModel(ComponentTrackerViewModel vM)
        {
            componentTracker = vM;
            this.name        = this.componentTracker.SelectedSystem.Name;
            this.description = this.componentTracker.SelectedSystem.Description;
            this.wingType    = this.componentTracker.SelectedSystem.WingType;

            this.initializeOtherPrivateFields();
            this.createCommands();
            this.acquireControllers();
            this.subscribeToEvents();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public AddSystemViewModel(ComponentTrackerViewModel vM)
        {
            componentTracker = vM;
            this.name        = AFSLSystem.DefaultName;
            this.description = AFSLSystem.DefaultDescription;
            this.wingType    = AFSLSystem.DefaultWingType;

            this.initializeOtherPrivateFields();
            this.createCommands();
            this.acquireControllers();
            this.subscribeToEvents();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates an object using the passed in arguments.
        /// </summary>
        /// <param name="name"></param>
        /// <param name="description"></param>
        /// <param name="components"></param>
        public AFSLSystem(string name = DefaultName, string description          = DefaultDescription,
                          List <Component> components = null, WingTypes wingType = DefaultWingType)
        {
            this.Name        = name;
            this.Description = description;
            this.WingType    = wingType;

            if (components != null)
            {
                this.Components = components;
            }
            else
            {
                this.Components = new List <Component>();
            }
        }
Ejemplo n.º 4
0
 public void SetFairyWingType(WingTypes newType)
 {
     mCASModel.SetFairyWingType(newType);
 }
Ejemplo n.º 5
0
 public void RequestSetFairyWings(WingTypes newType, Vector3 newColor)
 {
     mCASModel.RequestSetFairyWings(newType, newColor);
 }
Ejemplo n.º 6
0
 public void RequestSetFairyWings(WingTypes newType)
 {
     mCASModel.RequestSetFairyWings(newType);
 }
Ejemplo n.º 7
0
        public const decimal PRICE_WINGS_HONEYGARLIC = 10.0m;
        public const decimal PRICE_WINGS_SUICIDE = 9.5m;

        public enum WingTypes { BBQ, HoneyGarlic, Suicide }