Exemple #1
0
        public static string GetName(uint id, bool with_hint_full = false)
        {
            string hint = with_hint_full ? MakeHint_Full(id) :MakeHint_Simple(id);

            if (!Program.ROM.RomInfo.is_multibyte())
            {
                string name = MapTerrainNameEngForm.GetName(id);
                name = TextForm.StripAllCode(name);
                return(name + hint);
            }

            InputFormRef InputFormRef = Init(null);
            uint         addr         = InputFormRef.IDToAddr(id);

            if (!U.isSafetyOffset(addr))
            {
                return("");
            }
            uint c_addr = Program.ROM.p32(addr);

            if (!U.isSafetyOffset(c_addr))
            {
                return("");
            }
            return(Program.ROM.getString(c_addr) + hint);
        }
        //リストを作る.
        public static List <U.AddrResult> MakeList()
        {
            if (!Program.ROM.RomInfo.is_multibyte)
            {
                return(MapTerrainNameEngForm.MakeList());
            }

            InputFormRef InputFormRef = Init(null);

            return(InputFormRef.MakeList());
        }
        public static string GetName(uint id)
        {
            if (!Program.ROM.RomInfo.is_multibyte)
            {
                string name = MapTerrainNameEngForm.GetName(id);
                name = TextForm.StripAllCode(name);
                return(name);
            }

            InputFormRef InputFormRef = Init(null);
            uint         addr         = InputFormRef.IDToAddr(id);

            if (!U.isSafetyOffset(addr))
            {
                return("");
            }
            uint c_addr = Program.ROM.p32(addr);

            if (!U.isSafetyOffset(c_addr))
            {
                return("");
            }
            return(Program.ROM.getString(c_addr));
        }