internal bool TestStruct() { for (int x = 0; x < WorldSizeX; x++) { for (int y = 0; y < WorldSizeY; y++) { for (int z = 0; z < WorldSizeZ; z++) { if (!_objectMatrix[x, y, z].testState()) { return false; } } } } return true; }
private static bool FTestStruct(World world,bool altest) { bool tstruct = world.TestStruct(); if (tstruct) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Struct - OK"); Console.ForegroundColor = ConsoleColor.White; } else { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Struct - ERROR"); altest = false; Console.ForegroundColor = ConsoleColor.White; } return altest; }