MBGen.WordList.GetWordByIndex C# (CSharp) Method

GetWordByIndex() public method

public GetWordByIndex ( int index, string subtype, WordFormat format ) : string
index int
subtype string
format WordFormat
return string
        public string GetWordByIndex(int index, string subtype, WordFormat format)
        {
            int subIndex = LookForSubtype(subtype);

            if (subIndex == -1)
            {
                return Error("SubtypeNotFound->" + subtype);
            }
            if (subIndex > Words[index].Length - 1)
            {
                return Error("InadequateSubtypeCount");
            }
            return Format(Words[index][subIndex], format);
        }