public void InIt(ReadAndWrite rw, INI_init ini) { front_offset = rw.ReadPointer(ini.frontspritetable); back_offset = rw.ReadPointer(ini.backspritetable); normal_pal_off = rw.ReadPointer(ini.frontpalettetable); shiny_pal_off = rw.ReadPointer(ini.shinypalettetable); icoinTable = rw.ReadPointer(ini.icointable); icoinPalleteIndexTable = rw.ReadPointer(ini.icoinindextable); icoinPalltes = new Color[3][]; rw.Seek(ini.icoinpallete); for (byte x = 0; x < 3; x++) { byte[] pal = rw.Br.ReadBytes(32); icoinPalltes[x] = ImgFunction.ConvertGBAPalTo24Bit(pal); } }
public void Init_ini(out INI_init ini) { PokeConfig.ini = new INI_init { start_offset = GetAsInt("起始空位"), abilities = GetAsInt("特性名"), ablitynum = GetAsInt("特性总量"), pokenum = GetAsInt("精灵总量"), pokebasestats = GetAsInt("基础值"), pokenames = GetAsInt("精灵名字"), items = GetAsInt("道具"), itemnum = GetAsInt("道具总量"), itemimages = GetAsInt("道具图片"), tmhmcompabilities = GetAsInt("TM学习面"), tmhmnum = GetAsInt("TM总量"), toutornum = GetAsInt("TOUTOR总量"), toutorsize = GetSize(GetAsInt("TOUTOR总量")), tmhmsize = GetSize(GetAsInt("TM总量")), tmhmlist = GetAsInt("TMLIST"), toutorcompabilities = GetAsInt("TOUTOR学习面"), toutorlist = GetAsInt("TOUTORLIST"), movenum = GetAsInt("技能总量"), moves = GetAsInt("技能名"), frontspritetable = GetAsInt("正面图"), backspritetable = GetAsInt("背面图"), frontpalettetable = GetAsInt("普通色板"), shinypalettetable = GetAsInt("闪光色板"), learnset = GetAsInt("升级技能"), movedesc = GetAsInt("技能描述"), moveinfo = GetAsInt("技能表"), trainerimg = GetAsInt("训练师图片"), trainerpal = GetAsInt("训练师调色板"), trainernum = GetAsInt("图片数量"), trainertatal = GetAsInt("训练师数量"), traineroffset = GetAsInt("训练师地址"), national_dex = GetAsInt("全国图鉴"), icoinindextable = GetAsInt("图标色板标号"), icoinpallete = GetAsInt("图标色板"), icointable = GetAsInt("图标"), }; ini = PokeConfig.ini; }