getPack

Read the pack directly from the JSON parser.

Note, this will not fill out the path property of the Pack struct, which is required to read resources. Use the other overload to fill it automatically.

  1. Pack getPack(JSONParser json)
    @safe @trusted
    getPack
    (
    ref JSONParser json
    )
  2. Pack getPack(string filename)

Parameters

json JSONParser

JSONParser instance to fetch data from.

Throws

rcdata.json.JSONException on type mismatch or type error

Meta