Field scale field

This commit is contained in:
rusefillc 2022-04-04 21:16:24 -04:00
parent 4f6e466843
commit 6ae10a4c63
1 changed files with 10 additions and 1 deletions

View File

@ -26,7 +26,7 @@ public class Field {
private final FieldType type;
private final int bitOffset;
private final String[] options;
// todo: add multiplier support!
private double scale = 1;
public Field(String name, int offset, FieldType type) {
this(name, offset, type, NO_BIT_OFFSET);
@ -250,4 +250,13 @@ public class Field {
public boolean getBooleanValue(ConfigurationImage ci) {
return getValue(ci) != 0.0;
}
public Field setScale(double scale) {
this.scale = scale;
return this;
}
public double getScale() {
return scale;
}
}