public class AttackAnimationTypeAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<AttackAnimation>, com.google.gson.JsonDeserializer<AttackAnimation>
Modifier and Type | Field and Description |
---|---|
static AttackAnimationTypeAdapter |
ADAPTER |
Constructor and Description |
---|
AttackAnimationTypeAdapter() |
Modifier and Type | Method and Description |
---|---|
AttackAnimation |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type type,
com.google.gson.JsonDeserializationContext ctx) |
com.google.gson.JsonElement |
serialize(AttackAnimation animation,
java.lang.reflect.Type type,
com.google.gson.JsonSerializationContext ctx) |
public static final AttackAnimationTypeAdapter ADAPTER
public com.google.gson.JsonElement serialize(AttackAnimation animation, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext ctx)
serialize
in interface com.google.gson.JsonSerializer<AttackAnimation>
public AttackAnimation 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<AttackAnimation>
com.google.gson.JsonParseException