| 24 | Callback<RAMEvent, Integer> expressionCallback; |
| 25 | |
| 26 | public DynamicCheat(String cheatName, int address, int holdValue) { |
| 27 | super(cheatName, RAMEvent.TYPE.ANY, RAMEvent.SCOPE.ADDRESS, RAMEvent.VALUE.ANY); |
| 28 | id = (int) (Math.random() * 10000000); |
| 29 | addr = new SimpleIntegerProperty(address); |
| 30 | expression = new SimpleStringProperty(String.valueOf(holdValue)); |
| 31 | isHold = true; |
| 32 | active = new SimpleBooleanProperty(false); |
| 33 | name = new SimpleStringProperty("Untitled"); |
| 34 | expressionCallback = (RAMEvent e) -> holdValue; |
| 35 | doConfig(); |
| 36 | } |
| 37 | |
| 38 | boolean isHold = false; |
| 39 | |