From d1c36c2412b98350f8336e38361e49b3655982d5 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 1 Aug 2021 23:43:10 +0900 Subject: Too many changes to describe Config gui overhaul. --- .../java/kr/syeyoung/dungeonsguide/roomedit/Parameter.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/Parameter.java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/Parameter.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/Parameter.java index 1cb3d548..eb4d8987 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/Parameter.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/Parameter.java @@ -22,9 +22,19 @@ import lombok.AllArgsConstructor; import lombok.Data; @Data -@AllArgsConstructor public class Parameter { private String name; private Object previousData; private Object newData; + + public Parameter(String name, Object previousData, Object newData) { + this.name = name; this.previousData = previousData; this.newData = newData; + } + + private Runnable onSetNewData; + + public void setNewData(Object newData) { + this.newData = newData; + if (onSetNewData != null) onSetNewData.run(); + } } -- cgit