public static int GetLevel(int levelScriptEntryPoint) { int romOffset = (levelScriptEntryPoint - 0x2AC094) / 20; LevelOffsetsDescription lod = FindByROMOffset(romOffset); return(lod.NaturalIndex); }
public static int GetLevelScriptEntryPoint(int level) { LevelOffsetsDescription lod = FindByNaturalIndex(level); return(0x2AC094 + lod.ROMOffset * 20); }