public EnumPropertyEditor(IUIFactory factory, ActionManager actions, StateModel model) { _factory = factory; _actions = actions; _model = model; }
public static Action Execute(StateModel model, params (IComponent component, string propertyName, object value)[] properties)
public BoolPropertyEditor(IGameFactory factory, ActionManager actions, StateModel model) { _factory = factory; _actions = actions; _model = model; }
public PropertyAction(IProperty property, object value, StateModel model) : this(property, new ValueModel(value, type : property.PropertyType), model) { }
public EnumPropertyEditor(IGameFactory factory, ActionManager actions, StateModel model) { _editor = new SelectEditor(factory, actions, model, getOptions, getValue); }
public StringPropertyEditor(IGameFactory factory, bool enabled, ActionManager actions, StateModel model) { _model = model; _factory = factory; _enabled = enabled; _actions = actions; }
/// <summary> /// Updates the state model with a list of property + values, and prepares an undo action (if the user selects to undo). /// </summary> /// <returns>The execute.</returns> /// <param name="model">Model.</param> /// <param name="properties">Properties.</param> public static Action Execute(StateModel model, params (IComponent component, string propertyName, ValueModel value, List <IProperty> propertyChain)[] properties)