Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAIFile ¶
IsAIFile checks if the content looks like a TA / TA: Kingdoms AI profile file. TA's own AI files always carry per-difficulty `plan <name>` blocks; TA: Kingdoms profiles often skip them and list weights/limits directly, so a single weight or limit directive is enough to identify the file.
Types ¶
type AIFile ¶
type AIFile struct {
Plans []DifficultyPlan
}
AIFile represents a complete AI configuration file
type Difficulty ¶
type Difficulty int
Difficulty represents a game difficulty level
const ( Easy Difficulty = iota Medium Hard )
func (Difficulty) String ¶
func (d Difficulty) String() string
type DifficultyPlan ¶
type DifficultyPlan struct {
Name string // e.g., "easy", "medium", "hard"
Weights []UnitWeight // Weight directives
Limits []UnitLimit // Limit directives
}
DifficultyPlan represents AI configuration for one difficulty level
type UnitWeight ¶
UnitWeight represents a unit's weight value
Click to show internal directories.
Click to hide internal directories.