Exemplo n.º 1
0
 public EnumPropertyEditor(IUIFactory factory, ActionManager actions, StateModel model)
 {
     _factory = factory;
     _actions = actions;
     _model   = model;
 }
Exemplo n.º 2
0
 public static Action Execute(StateModel model, params (IComponent component, string propertyName, object value)[] properties)
Exemplo n.º 3
0
 public BoolPropertyEditor(IGameFactory factory, ActionManager actions, StateModel model)
 {
     _factory = factory;
     _actions = actions;
     _model   = model;
 }
Exemplo n.º 4
0
 public PropertyAction(IProperty property, object value, StateModel model) :
     this(property, new ValueModel(value, type : property.PropertyType), model)
 {
 }
Exemplo n.º 5
0
 public EnumPropertyEditor(IGameFactory factory, ActionManager actions, StateModel model)
 {
     _editor = new SelectEditor(factory, actions, model, getOptions, getValue);
 }
Exemplo n.º 6
0
 public StringPropertyEditor(IGameFactory factory, bool enabled, ActionManager actions, StateModel model)
 {
     _model   = model;
     _factory = factory;
     _enabled = enabled;
     _actions = actions;
 }
Exemplo n.º 7
0
 /// <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)