Example usage for com.badlogic.gdx.utils JsonValue asIntArray

List of usage examples for com.badlogic.gdx.utils JsonValue asIntArray

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils JsonValue asIntArray.

Prototype

public int[] asIntArray() 

Source Link

Document

Returns the children of this value as a newly allocated int array.

Usage

From source file:com.strategames.engine.gameobject.types.Door.java

License:Open Source License

@Override
protected void readValue(JsonValue jsonData) {
    String name = jsonData.name();
    if (name.contentEquals("nextLevelPosition")) {
        this.entryLevel = jsonData.asIntArray();
    }//from w  ww. jav  a2  s. com
}

From source file:MeshBoneUtil.CreatureModuleUtils.java

License:Open Source License

public static int[] getIntArray(JsonValue raw_data) {
    return raw_data.asIntArray();
}