Beispiel #1
0
 public static void Load()
 {
     if (!Directory.Exists(OPTIONS_PATH))
     {
         Directory.CreateDirectory(OPTIONS_PATH);
     }
     if (!File.Exists(OPTIONS_PATH + "square_size"))
     {
         VSave.WriteToFile(OPTIONS_PATH + "square_size", DEFAULT_SQUARE_SIZE);
     }
     squareSize      = VSave.LoadFromFile <int>(OPTIONS_PATH + "square_size");
     blockQuart      = squareSize / 4;
     blockHalf       = squareSize / 2;
     blockThirdQuart = blockQuart + blockHalf;;
 }