Files
tactical-shooter/package/dist/utils/autoload-ini.d.ts
T
shawn 91b878f347 Quaternius weapons, input fixes, sound & path fixes
- Added 6 Quaternius weapon models (Pistol, Revolver, Rifle, Shotgun, P90, SniperRifle)
- Created weapon resource files with balanced stats
- Wired Pistol + Rifle into player.tscn replacing Kenney blasters
- Fixed WASD input (matched input map action names)
- Fixed Escape key toggles mouse capture
- Added Audio autoload singleton
- Fixed broken sound asset paths across all scripts
- Fixed all scene ext_resource text paths (nested under assets/kenney-fps/)
- Fixed all .import source_file paths
- Deleted stale .import files (will be regenerated by editor on open)
2026-07-05 22:53:27 -04:00

38 lines
1.8 KiB
TypeScript

/**
* Parsing and editing primitives for the `[autoload]` section of project.godot.
*
* Used by:
* - tools/autoload-tools.ts — list/add/remove/update_autoload handlers
* - utils/bridge-manager.ts — McpBridge inject/cleanup/repair
*
* Pure functions: each takes the absolute path to project.godot and returns
* either parsed data or a boolean indicating whether the file was mutated.
*/
export interface AutoloadEntry {
name: string;
path: string;
singleton: boolean;
}
/**
* Matches an empty `[autoload]` section (the header followed by only blank
* lines, up to the next section header or end-of-file). Used by cleanup paths
* to drop the section after the last entry is removed.
*/
export declare const EMPTY_AUTOLOAD_SECTION_REGEX: RegExp;
/**
* Mirrors the parser's `\w+` assumption (parseAutoloads / removeAutoloadEntry).
* Enforced on write paths to prevent a name with newlines or INI section
* delimiters from corrupting project.godot.
*/
export declare const VALID_AUTOLOAD_NAME_REGEX: RegExp;
export declare function normalizeAutoloadPath(p: string): string;
export declare function parseAutoloads(projectFilePath: string, existingContent?: string): AutoloadEntry[];
export declare function addAutoloadEntry(projectFilePath: string, name: string, path: string, singleton: boolean, existingContent?: string): void;
/**
* Remove the named autoload entry. Also drops the `[autoload]` section header
* if the removed entry was the last one in it. Returns true when the file was
* mutated.
*/
export declare function removeAutoloadEntry(projectFilePath: string, name: string): boolean;
export declare function updateAutoloadEntry(projectFilePath: string, name: string, newPath?: string, singleton?: boolean): boolean;
//# sourceMappingURL=autoload-ini.d.ts.map