78 errorMessage =
string.Format(
"Cannot load provided JSON data (deserialization error) - check syntax: %1",
error);
92 errorMessage =
"Cannot create JSON from provided data (serialization error)";
Super root of all classes in Enforce script.
static bool LoadFile(string filename, out T data, out string errorMessage)
static void JsonLoadFile(string filename, out T data)
#ifndef DIAG_DEVELOPER
static void JsonLoadData(string string_data, out T data)
use JsonFileLoader::LoadData instead
static bool SaveFile(string filename, T data, out string errorMessage)
static bool MakeData(T inputData, out string outputData, out string errorMessage, bool prettyPrint=true)
static void JsonSaveFile(string filename, T data)
use JsonFileLoader::SaveFile instead
static bool LoadData(string string_data, out T data, out string errorMessage)
static string JsonMakeData(T data)
use JsonFileLoader::MakeData instead
Class for sending RPC over network.
proto void CloseFile(FileHandle file)
Close the File.
proto void FPrint(FileHandle file, void var)
Write to file.
proto int FGets(FileHandle file, string var)
Get line from file, every next call of this function returns next line.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.
proto bool FileExist(string name)
Check existence of file.