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