il2cpp-dump-analyzer-mcp
Version:
Agentic RAG system for analyzing IL2CPP dump.cs files from Unity games
85 lines (84 loc) • 2.18 kB
TypeScript
import { EnhancedParseResult } from './enhanced-types';
/**
* Enhanced IL2CPP Dump Parser
* Handles real IL2CPP dump format with comprehensive parsing capabilities
* Supports TypeDefIndex, RVA/Offset, attributes, generic types, and nested classes
*/
export declare class EnhancedIL2CPPParser {
private content;
private lines;
private imageMappings;
private parseErrors;
private loaded;
/**
* Load and parse an IL2CPP dump.cs file
* @param filePath Path to the dump.cs file
*/
loadFile(filePath: string): Promise<void>;
/**
* Load content directly from string (useful for testing)
* @param content IL2CPP dump content as string
*/
loadContent(content: string): void;
/**
* Check if the parser has loaded content
*/
isLoaded(): boolean;
/**
* Extract all IL2CPP constructs from the loaded content
*/
extractAllConstructs(): EnhancedParseResult;
/**
* Parse image mappings from the beginning of the file
* Format: // Image 0: holo-game.dll - 0
*/
private parseImageMappings;
/**
* Extract all classes from the IL2CPP dump
*/
private extractClasses;
/**
* Extract all enums from the IL2CPP dump
*/
private extractEnums;
/**
* Extract all interfaces from the IL2CPP dump
*/
private extractInterfaces;
/**
* Find the body of a class/enum/interface by matching braces
*/
private findClassBody;
/**
* Parse attributes from attribute string
*/
private parseAttributes;
/**
* Parse base class from inheritance string
*/
private parseBaseClass;
/**
* Parse interfaces from inheritance string
*/
private parseInterfaces;
/**
* Parse fields from class body
*/
private parseFields;
/**
* Parse methods from class body
*/
private parseMethods;
/**
* Parse method parameters
*/
private parseParameters;
/**
* Parse enum values from enum body
*/
private parseEnumValues;
/**
* Calculate comprehensive parsing statistics
*/
private calculateStatistics;
}