tryGetGUID

Tries to get a GUID from a JSON Object.

Inochi2D has transitioned over to GUIDs, as such we convert the old 32 bit UUIDs into fake GUIDs if they're in use.

  1. GUID tryGetGUID(DataNode obj, ModelState state, string uuidKey, string guidKey)
    @nogc
    tryGetGUID
    (
    ref DataNode obj
    ,,
    string uuidKey
    ,
    string guidKey = "guid"
    )
  2. GUID tryGetGUID(DataNode obj, ModelState state)

Parameters

obj DataNode

The object to get the GUID from.

state ModelState

The state of the deserializer.

uuidKey string

The legacy UUID key to check for.

guidKey string

The GUID key to check for.

Return Value

Type: GUID

A GUID.

Meta