3 protected static const string JSON_FILE_PATH =
"scripts/data/credits.json";
7 string nameDepartment =
"Department";
8 string nameSection =
"Section";
9 string nameLine =
"Line";
14 for (
int index_dep = 0; index_dep < 3; ++index_dep)
20 for (
int index_sec = 0; index_sec < 4; ++index_sec)
24 section.
SectionName = (nameSection +
" "+ index_sec);
27 for (
int i = 0; i < linesCount; ++i)
39 if (!JsonFileLoader<ref JsonDataCredits>.SaveFile(
JSON_FILE_PATH, data, errorMessage))
48 if (!JsonFileLoader<ref JsonDataCredits>.LoadFile(
JSON_FILE_PATH, data, errorMessage))
static void CreateTestJson()
static JsonDataCredits GetData()
static const string JSON_FILE_PATH
ref array< ref JsonDataCreditsDepartment > Departments
ref array< ref JsonDataCreditsSection > Sections
ref array< string > SectionLines
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].