Package mindustry.editor
Interface MapObjectivesDialog.FieldInterpreter<T>
- Enclosing class:
- MapObjectivesDialog
public static interface MapObjectivesDialog.FieldInterpreter<T>
-
Method Summary
-
Method Details
-
build
void build(Table cont, CharSequence name, MapObjectivesDialog.TypeInfo type, @Nullable Field field, @Nullable Runnable remover, @Nullable Boolc indexer, Prov<T> get, Cons<T> set) Builds the interpreter for (not-necessarily) a possibly annotated field. Implementations must add exactly 2 columns to the table.- Parameters:
name
- May be empty.remover
- If this callback is notnull
, this interpreter should add a button that invokes the callback to signal element removal.indexer
- If this callback is notnull
, this interpreter should add 2 buttons that invoke the callback to signal element rearrangement with the following values:true
: Swap element with previous index.false
: Swap element with next index.
-