|
|
@@ -2,6 +2,8 @@ package org.leumasjaffe.charsheet.model.magic.dimension;
|
|
|
|
|
|
import org.leumasjaffe.charsheet.util.StringHelper;
|
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
|
+import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
|
|
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
|
import com.fasterxml.jackson.annotation.JsonTypeInfo.Id;
|
|
|
|
|
|
@@ -11,6 +13,12 @@ import lombok.RequiredArgsConstructor;
|
|
|
import lombok.experimental.FieldDefaults;
|
|
|
|
|
|
@JsonTypeInfo(use=Id.NAME)
|
|
|
+@JsonSubTypes({
|
|
|
+ @Type(value=Area.Line.class, name="Line"),
|
|
|
+ @Type(value=Area.Cone.class, name="Cone"),
|
|
|
+ @Type(value=Area.Sphere.class, name="Sphere"),
|
|
|
+ @Type(value=Area.Cylinder.class, name="Cylinder")
|
|
|
+})
|
|
|
public interface Area {
|
|
|
public static enum Emission { BURST, EMANATION, SPREAD, NONE }
|
|
|
public static enum Shape { CONE, CYLINDER, LINE, SPHERE }
|