LynnaLab.GfxHeaderData.ShouldHaveNext C# (CSharp) Method

ShouldHaveNext() public method

public ShouldHaveNext ( ) : bool
return bool
        public bool ShouldHaveNext()
        {
            return (Project.EvalToInt(GetValue(2)) & 0x80) == 0x80;
        }

Usage Example

示例#1
0
 void SetUniqueGfx(int index)
 {
     graphicsState.RemoveGfxHeaderType(GfxHeaderType.Unique);
     if (index != 0)
     {
         FileParser    uniqueGfxHeaderFile = Project.GetFileWithLabel("uniqueGfxHeadersStart");
         GfxHeaderData header
             = uniqueGfxHeaderFile.GetData("uniqueGfxHeader" + index.ToString("x2"))
               as GfxHeaderData;
         if (header != null)
         {
             bool next = true;
             while (next)
             {
                 graphicsState.AddGfxHeader(header, GfxHeaderType.Unique);
                 next = false;
                 if (header.ShouldHaveNext())
                 {
                     GfxHeaderData nextHeader = header.NextData as GfxHeaderData;
                     if (nextHeader != null)
                     {
                         header = nextHeader;
                         next   = true;
                     }
                     // Might wanna print a warning if no next value is found
                 }
             }
         }
     }
     InvalidateAllTiles();
 }
All Usage Examples Of LynnaLab.GfxHeaderData::ShouldHaveNext