Beispiel #1
0
 public void ExportType(WWCTType aType, BinaryWriter bw)
 {
     for (int i = 0; i < wwctStrings.Count; i++)
     {
         if (wwctStrings[i].Type == aType)
         {
             bw.Write(wwctStrings[i].Index);
             HelperFunctions.WriteNullTerminatedString(bw, wwctStrings[i].Path);
         }
     }
 }
Beispiel #2
0
        public int CalculateTypeCount(WWCTType type)
        {
            int count = 0;

            for (int i = 0; i < wwctStrings.Count; i++)
            {
                if (wwctStrings[i].Type == type)
                {
                    count++;
                }
            }
            return(count);
        }
Beispiel #3
0
 public WWCTString(WWCTType aType, string aPath, uint aIndex)
 {
     Type  = aType;
     Path  = aPath;
     Index = aIndex;
 }