BinhlEmul.World.TestStruct C# (CSharp) 메소드

TestStruct() 개인적인 메소드

private TestStruct ( ) : bool
리턴 bool
        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;
        }

Usage Example

예제 #1
0
 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;
 }