use of io.github.voidzombie.nhglib.input.models.InputContext in project nhglib by VoidZombie.
the class InputJson method parse.
@Override
public void parse(JsonValue jsonValue) {
JsonValue contextsJson = jsonValue.get("contexts");
for (JsonValue contextJson : contextsJson) {
String name = contextJson.getString("name");
JsonValue inputsJson = contextJson.get("inputs");
InputContext inputContext = new InputContext(name);
for (JsonValue inputJson : inputsJson) {
inputContext.addInput(inputFromJson(inputJson));
}
inputContexts.add(inputContext);
}
}
Aggregations