Example usage for com.badlogic.gdx.utils Json writeValue

List of usage examples for com.badlogic.gdx.utils Json writeValue

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils Json writeValue.

Prototype

public void writeValue(Object value, Class knownType) 

Source Link

Document

Writes the value, writing the class of the object if it differs from the specified known type.

Usage

From source file:com.bladecoder.engine.actions.ActionCallbackQueue.java

License:Apache License

public static void write(Json json) {
    ArrayList<String> q = new ArrayList<String>();
    for (ActionCallback cb : queue) {
        q.add(ActionCallbackSerialization.find(cb));
    }/*from   w w w. ja  va 2  s.c om*/

    json.writeValue("queue", q);
}

From source file:com.bladecoder.engine.actions.AnimationAction.java

License:Apache License

@Override
public void write(Json json) {
    json.writeValue("animation", animation);
    json.writeValue("actorId", actorId);
    json.writeValue("posx", posx);
    json.writeValue("posy", posy);
    json.writeValue("setPos", setPos);
    json.writeValue("reverse", reverse);
    json.writeValue("repeat", repeat);
    json.writeValue("count", count);
    super.write(json);
}

From source file:com.bladecoder.engine.actions.BaseCallbackAction.java

License:Apache License

@Override
public void write(Json json) {
    json.writeValue("cb", ActionCallbackSerialization.find(verbCb));
}

From source file:com.bladecoder.engine.actions.ChooseAction.java

License:Apache License

@Override
public void write(Json json) {
    json.writeValue("chooseCount", chooseCount);
}

From source file:com.bladecoder.engine.actions.RepeatAction.java

License:Apache License

@Override
public void write(Json json) {
    json.writeValue("currentRepeat", currentRepeat);
}

From source file:com.bladecoder.engine.actions.RunOnceAction.java

License:Apache License

@Override
public void write(Json json) {
    json.writeValue("executed", executed);
}

From source file:com.bladecoder.engine.actions.RunVerbAction.java

License:Apache License

@Override
public void write(Json json) {
    json.writeValue("ip", ip);
    json.writeValue("state", state);
    super.write(json);
}

From source file:com.bladecoder.engine.actions.SayAction.java

License:Apache License

@Override
public void write(Json json) {
    json.writeValue("previousAnim", previousAnim);
    super.write(json);
}

From source file:com.bladecoder.engine.actions.SayDialogAction.java

License:Apache License

@Override
public void write(Json json) {
    json.writeValue("previousFA", previousAnim);
    json.writeValue("responseText", responseText);
    json.writeValue("characterTurn", characterTurn);
    json.writeValue("characterName", characterName);
    super.write(json);
}

From source file:com.bladecoder.engine.actions.ScaleAction.java

License:Apache License

@Override
public void write(Json json) {
    json.writeValue("actorId", actorId);
    json.writeValue("scale", scale);
    json.writeValue("speed", speed);
    json.writeValue("repeat", repeat);
    json.writeValue("count", count);
    super.write(json);
}