GetText() public static méthode

public static GetText ( int offset, TextType texttype, bool ignorecc ) : string
offset int
texttype TextType
ignorecc bool
Résultat string
        public static string GetName(int index)
        {
            int a = Rom.ReadUShort(Address + (index << 1));

            a += EndAddress;
            return(TextProvider.GetText(a, 1024,
                                        (M3Rom.Version == RomVersion.Japanese ? TextType.Japanese : TextType.EnglishWide), true));
        }
        public static string GetDescription(int index)
        {
            int a    = Address + (index << 1);
            int addr = Rom.ReadUShort(a);

            addr += Address + (Entries << 1);

            return(TextProvider.GetText(addr, 1024,
                                        (Version == RomVersion.Japanese) ? TextType.Japanese : TextType.EnglishWide, true));
        }
        public static string GetText(int index)
        {
            int a = Address + 12 + (index << 1);

            int addr = Rom.ReadUShort(a);

            if (Version != RomVersion.Japanese)
            {
                addr <<= 1;
            }

            addr += Address;

            return(TextProvider.GetText(addr, 1024,
                                        (Version == RomVersion.Japanese) ? TextType.Japanese : TextType.EnglishWide, true));
        }
        public static string GetLine(int room, int line)
        {
            if (Lines[room] == -1)
            {
                return(null);
            }

            // Get the main pointer
            int a = Rom.ReadInt(Address + 4 + (room << 3));

            if (a == 0)
            {
                return(null);
            }
            a += Address;

            int addr = Rom.ReadUShort(a + (line << 1));

            addr += a + (Lines[room] << 1);

            TextType tt;

            switch (M3Rom.Version)
            {
            case RomVersion.Japanese:
            default:
                tt = TextType.Japanese;
                break;

            case RomVersion.English:
                tt = TextType.EnglishShort;
                break;

            case RomVersion.Englishv12:
                tt = TextType.EnglishShortRaw;
                break;
            }

            return(TextProvider.GetText(addr, 0x7FFFFFFF, tt, false));
        }
 public static string GetName(int index)
 {
     return(TextProvider.GetText(Address + 4 + (index * Length * 2), Length,
                                 (Version == RomVersion.Japanese) ? TextType.Japanese : TextType.EnglishWide, true));
 }