Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LevelValidateCmd = &cobra.Command{ Use: "level-validate", Short: "Validate game levels for solvability", Long: `Validate game levels to ensure they are properly formatted and solvable. This command uses the Parable Bloom level solver to verify that levels can be completed.`, Run: func(cmd *cobra.Command, _args []string) { isVerbose := utils.IsVerbose(cmd) log.Start("Validating game levels") file, _ := cmd.Flags().GetString("file") directory, _ := cmd.Flags().GetString("directory") checkSolvability, _ := cmd.Flags().GetBool("check-solvability") strict, _ := cmd.Flags().GetBool("strict") dryRun, _ := cmd.Flags().GetBool("dry-run") showWarnings, _ := cmd.Flags().GetBool("warnings") if file == "" && directory == "" { directory = "assets/levels" } if file != "" { validateSingleFile(file, checkSolvability, strict, dryRun, showWarnings, isVerbose) } else { validateDirectory(directory, checkSolvability, strict, dryRun, showWarnings, isVerbose) } }, }
LevelValidateCmd represents the 'parable-bloom level-validate' command for validating game levels. It checks that levels are properly formatted and solvable using the game's solver.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.