示例#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)
 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)