il2cpp-dump-analyzer-mcp
Version:
Agentic RAG system for analyzing IL2CPP dump.cs files from Unity games
94 lines (93 loc) • 2.39 kB
TypeScript
import { IL2CPPMethod, IL2CPPParameter } from './enhanced-types';
/**
* Advanced parser for additional IL2CPP constructs to reach 90% coverage
*/
export declare class AdvancedParser {
/**
* Parse properties from class body
*/
parseProperties(classBody: string): IL2CPPProperty[];
/**
* Parse events from class body
*/
parseEvents(classBody: string): IL2CPPEvent[];
/**
* Parse constants from class body
*/
parseConstants(classBody: string): IL2CPPConstant[];
/**
* Parse operators from class body
*/
parseOperators(classBody: string): IL2CPPOperator[];
/**
* Parse indexers from class body
*/
parseIndexers(classBody: string): IL2CPPIndexer[];
/**
* Parse destructors/finalizers from class body
*/
parseDestructors(classBody: string): IL2CPPDestructor[];
/**
* Parse extension methods (static methods with 'this' parameter)
*/
parseExtensionMethods(methods: IL2CPPMethod[]): IL2CPPExtensionMethod[];
/**
* Parse partial class indicators
*/
parsePartialClasses(classDeclaration: string): boolean;
/**
* Parse static constructors
*/
parseStaticConstructors(methods: IL2CPPMethod[]): IL2CPPMethod[];
/**
* Helper method to parse attributes
*/
private parseAttributes;
/**
* Helper method to parse parameters
*/
private parseParameters;
}
export interface IL2CPPProperty {
name: string;
type: string;
isPublic: boolean;
isStatic: boolean;
isVirtual: boolean;
isOverride: boolean;
hasGetter: boolean;
hasSetter: boolean;
attributes: string[];
}
export interface IL2CPPEvent {
name: string;
type: string;
isPublic: boolean;
isStatic: boolean;
attributes: string[];
}
export interface IL2CPPConstant {
name: string;
type: string;
value: string;
isPublic: boolean;
}
export interface IL2CPPOperator {
symbol: string;
returnType: string;
parameters: IL2CPPParameter[];
isPublic: boolean;
}
export interface IL2CPPIndexer {
returnType: string;
parameters: IL2CPPParameter[];
isPublic: boolean;
}
export interface IL2CPPDestructor {
className: string;
name: string;
}
export interface IL2CPPExtensionMethod extends IL2CPPMethod {
extendedType: string;
isExtensionMethod: boolean;
}