|
|
@@ -9,11 +9,11 @@ import lombok.AllArgsConstructor;
|
|
|
|
|
|
@JsonTypeInfo(use=Id.NAME)
|
|
|
@JsonSubTypes({
|
|
|
- @Type(name="Simple", value=DDFeature.Simple.class),
|
|
|
- @Type(name="Flat", value=DDFeature.Flat.class),
|
|
|
- @Type(name="SpellLevel", value=DDFeature.PerSpellLevel.class)
|
|
|
+ @Type(name="Simple", value=DDProperty.Simple.class),
|
|
|
+ @Type(name="Flat", value=DDProperty.Flat.class),
|
|
|
+ @Type(name="SpellLevel", value=DDProperty.PerSpellLevel.class)
|
|
|
})
|
|
|
-public interface DDFeature {
|
|
|
+public interface DDProperty {
|
|
|
public enum Group {
|
|
|
NONE
|
|
|
}
|
|
|
@@ -21,14 +21,14 @@ public interface DDFeature {
|
|
|
<T> T value();
|
|
|
|
|
|
@AllArgsConstructor
|
|
|
- public class Simple implements DDFeature {
|
|
|
+ public class Simple implements DDProperty {
|
|
|
String name;
|
|
|
@Override public boolean appliesTo(String key) { return false; }
|
|
|
@Override public <T> T value() { return null; }
|
|
|
}
|
|
|
|
|
|
@AllArgsConstructor
|
|
|
- public static class Flat implements DDFeature {
|
|
|
+ public static class Flat implements DDProperty {
|
|
|
String applies;
|
|
|
Group group;
|
|
|
int value;
|
|
|
@@ -46,7 +46,7 @@ public interface DDFeature {
|
|
|
}
|
|
|
|
|
|
@AllArgsConstructor
|
|
|
- public static class PerSpellLevel implements DDFeature {
|
|
|
+ public static class PerSpellLevel implements DDProperty {
|
|
|
String applies;
|
|
|
Group group;
|
|
|
int value;
|