Map JSONs

Utilities to help load and parse json files related to Map.


ObjectsJSON.GetFile

function TMapObjectJSON.GetFile(chunk: TPoint; plane: Integer): TJSONItem;

Internal method to return a objects JSON file associated with the specified chunk and plane.


ObjectsJSON.GetJSON

function TMapObjectJSON.GetJSON(chunks: TPointArray; plane: Integer): TJSONItem;

Internal method to return all objects JSON data associated with the specified chunks and plane merged into a single TJSONItem.


ObjectsJSON.Load

function TMapObjectJSON.Load(regions: array of TRSMapRegion): TJSONItem;

Internal method to load all objects JSON data associated into the TMapObjectJSON with the specified regions merged into a single TJSONItem.


ObjectsJSON.Get

function TMapObjectJSON.Get(name: String; amount: Integer = 0): TJSONItem;

Returns a TJSONItem JSON array of a map object that matches the specified name. By default you get all objects that match the name, however, if you want you can specify how many you want through amount.


ObjectsJSON.GetByID

function TMapObjectJSON.GetByID(id: Integer): TJSONItem;

Returns a TJSONItem JSON object of a map object that matches the specified id.


ObjectsJSON.GetByAction

function TMapObjectJSON.GetByAction(action: String; amount: Integer = 0): TJSONItem;

Returns a TJSONItem JSON array of a map object that has an action that matches the specified action. By default you get all objects that match the action, however, if you want you can specify how many you want through amount.


NPCsJSON.GetFile

function TMapNPCJSON.GetFile(chunk: TPoint; plane: Integer): TJSONItem;

Internal method to return a npcs JSON file associated with the specified chunk and plane.


NPCsJSON.GetJSON

function TMapNPCJSON.GetJSON(chunks: TPointArray; plane: Integer): TJSONItem;

Internal method to return all npcs JSON data associated with the specified chunks and plane merged into a single TJSONItem.


NPCsJSON.Load

function TMapNPCJSON.Load(regions: array of TRSMapRegion): TJSONItem;

Internal method to load all npcs JSON data associated into the TMapNPCJSON with the specified regions merged into a single TJSONItem.


NPCsJSON.Get

function TMapNPCJSON.Get(name: String; amount: Integer = 0): TJSONItem;

Returns a TJSONItem JSON array of a map npcs that matches the specified name. By default you get all npcs that match the name, however, if you want you can specify how many you want through amount.


NPCsJSON.GetByID

function TMapNPCJSON.GetByID(id: Integer): TJSONItem;

Returns a TJSONItem JSON object of a map npcs that matches the specified id.


NPCsJSON.GetByAction

function TMapNPCJSON.GetByAction(action: String; amount: Integer = 0): TJSONItem;

Returns a TJSONItem JSON array of a map npcs that has an action that matches the specified action. By default you get all npcs that match the action, however, if you want you can specify how many you want through amount.