コード例 #1
0
ファイル: LevelInfo.cs プロジェクト: aglab2/LevelCombiner
        public static int GetLevel(int levelScriptEntryPoint)
        {
            int romOffset = (levelScriptEntryPoint - 0x2AC094) / 20;
            LevelOffsetsDescription lod = FindByROMOffset(romOffset);

            return(lod.NaturalIndex);
        }
コード例 #2
0
ファイル: LevelInfo.cs プロジェクト: aglab2/LevelCombiner
        public static int GetLevelScriptEntryPoint(int level)
        {
            LevelOffsetsDescription lod = FindByNaturalIndex(level);

            return(0x2AC094 + lod.ROMOffset * 20);
        }