Package se.llbit.json

Examples of se.llbit.json.JsonValue


  public void saveCameraPreset(String name) {
    cameraPresets.add(name, camera.toJson());
  }

  public void loadCameraPreset(String name) {
    JsonValue value = cameraPresets.get(name);
    if (!value.isUnknown()) {
      camera.fromJson(value.object());
    }
  }
View Full Code Here


    }
    case SKYBOX:
    {
      JsonArray array = sky.get("skybox").array();
      for (int i = 0; i < 6; ++i) {
        JsonValue value = array.get(i);
        skyboxFileName[i] = value.stringValue("");
      }
      break;
    }
    default:
      break;
View Full Code Here

            String[] path = name.split("\\.");
            JsonObject obj = desc;
            for (int j = 0; j < path.length-1; ++j) {
              obj = obj.get(path[j]).object();
            }
            JsonValue jsonValue;
            try {
              jsonValue = new JsonNumber(Integer.parseInt(value));
            } catch (Exception e) {
              jsonValue = new JsonString(value);
            }
View Full Code Here

TOP

Related Classes of se.llbit.json.JsonValue

Copyright © 2018 www.massapicom. 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.