public class EffectTypeAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<EffectBase>, com.google.gson.JsonDeserializer<EffectBase>
Modifier and Type | Field and Description |
---|---|
static EffectTypeAdapter |
ADAPTER |
static java.util.HashMap<java.lang.String,java.lang.Class<? extends EffectBase>> |
EFFECTS |
Constructor and Description |
---|
EffectTypeAdapter() |
Modifier and Type | Method and Description |
---|---|
EffectBase |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type type,
com.google.gson.JsonDeserializationContext ctx) |
com.google.gson.JsonElement |
serialize(EffectBase effect,
java.lang.reflect.Type type,
com.google.gson.JsonSerializationContext ctx) |
public static final EffectTypeAdapter ADAPTER
public static final java.util.HashMap<java.lang.String,java.lang.Class<? extends EffectBase>> EFFECTS
public com.google.gson.JsonElement serialize(EffectBase effect, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext ctx)
serialize
in interface com.google.gson.JsonSerializer<EffectBase>
public EffectBase deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext ctx) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<EffectBase>
com.google.gson.JsonParseException