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); } } }
public int CalculateTypeCount(WWCTType type) { int count = 0; for (int i = 0; i < wwctStrings.Count; i++) { if (wwctStrings[i].Type == type) { count++; } } return(count); }
public WWCTString(WWCTType aType, string aPath, uint aIndex) { Type = aType; Path = aPath; Index = aIndex; }