Documentation
¶
Overview ¶
DEPRECATED: This package is deprecated. Use parable-bloom/tools/level-builder instead. Future versions will port this functionality to the new CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LevelRepairCmd = &cobra.Command{ Use: "level-repair", Short: "Repair corrupted level JSON files by regenerating them", Long: `Scan a levels directory and regenerate any files that fail to parse. This helps recover from partial writes or corrupted files produced by earlier runs.`, Run: func(cmd *cobra.Command, _args []string) { isVerbose := utils.IsVerbose(cmd) log.Start("Repairing level files (scan + regenerate)") directory, _ := cmd.Flags().GetString("directory") overwrite, _ := cmd.Flags().GetBool("overwrite") dryRun, _ := cmd.Flags().GetBool("dry-run") if directory == "" { directory = "assets/levels" } repairDirectory(directory, overwrite, dryRun, isVerbose) }, }
LevelRepairCmd repairs corrupted or truncated level files by regenerating them.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.