/// <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(); }
/// <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(); }
/// <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>(); } }
public void SetFairyWingType(WingTypes newType) { mCASModel.SetFairyWingType(newType); }
public void RequestSetFairyWings(WingTypes newType, Vector3 newColor) { mCASModel.RequestSetFairyWings(newType, newColor); }
public void RequestSetFairyWings(WingTypes newType) { mCASModel.RequestSetFairyWings(newType); }
public const decimal PRICE_WINGS_HONEYGARLIC = 10.0m; public const decimal PRICE_WINGS_SUICIDE = 9.5m; public enum WingTypes { BBQ, HoneyGarlic, Suicide }