Package com.badlogic.gdx.utils

Examples of com.badlogic.gdx.utils.JsonValue.asString()


  }

  private void readCurve (CurveTimeline timeline, int frameIndex, JsonValue valueMap) {
    JsonValue curve = valueMap.get("curve");
    if (curve == null) return;
    if (curve.isString() && curve.asString().equals("stepped"))
      timeline.setStepped(frameIndex);
    else if (curve.isArray()) {
      timeline.setCurve(frameIndex, curve.getFloat(0), curve.getFloat(1), curve.getFloat(2), curve.getFloat(3));
    }
  }
View Full Code Here


  }

  void readCurve (CurveTimeline timeline, int frameIndex, JsonValue valueMap) {
    JsonValue curve = valueMap.get("curve");
    if (curve == null) return;
    if (curve.isString() && curve.asString().equals("stepped"))
      timeline.setStepped(frameIndex);
    else if (curve.isArray()) {
      timeline.setCurve(frameIndex, curve.getFloat(0), curve.getFloat(1), curve.getFloat(2), curve.getFloat(3));
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.