Anvil
|
Represents a json engine structure. More...
Public Member Functions | |
string | Dump () |
Dumps the content of the json object to a string. More... | |
NwObject? | ToNwObject (Location location, NwGameObject? owner=null, bool loadObjectState=true) |
Attempts to parse this json structure into a NwObject. More... | |
T? | ToNwObject< T > (Location location, NwGameObject? owner=null, bool loadObjectState=true) |
Attempts to parse this json structure into a NwObject. More... | |
Public Member Functions inherited from Anvil.API.EngineStructure | |
void | Dispose () |
Static Public Member Functions | |
static implicit | operator Json (IntPtr intPtr) |
static Json | Parse (string jsonString) |
Parses the specified string as a json structure. More... | |
Static Public Member Functions inherited from Anvil.API.EngineStructure | |
static implicit | operator IntPtr (EngineStructure engineStructure) |
Properties | |
override int | StructureId [get] |
Properties inherited from Anvil.API.EngineStructure | |
bool | IsValid [get] |
Gets if this object is valid. More... | |
abstract int | StructureId [get] |
Additional Inherited Members | |
Protected Member Functions inherited from Anvil.API.EngineStructure | |
EngineStructure (IntPtr handle, bool memoryOwn) | |
Represents a json engine structure.
This class is specifically for compatibility with the base game.
It is recommended to use JsonUtility and System.Text.Json for all json-related problems in C#.
|
inline |
Dumps the content of the json object to a string.
|
inlinestatic |
Parses the specified string as a json structure.
jsonString | The json string to parse. |
|
inline |
Attempts to parse this json structure into a NwObject.
location | The location to spawn the parsed object. |
owner | If this object is an item, the owner of the parsed item. |
loadObjectState | If the object should load object state info from the json structure. |
|
inline |
Attempts to parse this json structure into a NwObject.
location | The location to spawn the parsed object. |
owner | If this object is an item, the owner of the parsed item. |
loadObjectState | If the object should load object state info from the json structure. |
T | : | NwObject |