Commit cffa6fde authored by Legodev's avatar Legodev

fixed indentions of the mod config

parent ccc795e5
......@@ -3,7 +3,7 @@ static string BRDataFileSaveLocation = "$profile:BRData.json";
class StaticBRData
{
//Array of items/clothing to give the player before the round starts.
ref array<string> Player_Items = {"TrackSuitJacket_Red","TrackSuitPants_Red","JoggingShoes_Red"};
ref array<string> Player_Items = {"TrackSuitJacket_Red", "TrackSuitPants_Red", "JoggingShoes_Red"};
vector debug_position = "14829.2 72.3148 14572.3";
vector cherno_center = "6497.66 6.01245 2519.26";
......@@ -36,23 +36,26 @@ class StaticBRData
int include_start_shrink_zone_in_roundtime = 1; // 0 == off, 1 == on
static ref StaticBRData LoadDataServer()
static ref StaticBRData
LoadDataServer()
{
ref StaticBRData data = new ref StaticBRData;
if ( FileExist(BRDataFileSaveLocation) )
if(FileExist(BRDataFileSaveLocation))
{
Print( "BR Data exists, loading!" );
Print("BR Data exists, loading!");
JsonFileLoader<StaticBRData>.JsonLoadFile(BRDataFileSaveLocation, data);
} else {
Print( "BR Data doesn't exist, creating file!" );
SaveDataServer( data );
}
else
{
Print("BR Data doesn't exist, creating file!");
SaveDataServer(data);
}
return data;
}
static void SaveDataServer( ref StaticBRData data )
static void SaveDataServer(ref StaticBRData data)
{
JsonFileLoader<StaticBRData>.JsonSaveFile(BRDataFileSaveLocation, data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment