Documentation ¶
Index ¶
- Variables
- func LoadEnemyConfigs() ([]config.Enemy, error)
- func LoadLevelConfigs() ([]config.Level, error)
- func LoadMapConfigs() ([]config.Map, error)
- func LoadReplays() ([]*replay.Watcher, error)
- func LoadStats() (*ingame.PlayerState, error)
- func LoadTowerConfigs() ([]config.Tower, error)
- func LoadUIConfig() (config.UI, error)
- func ReadConfigs[T any](dirName, ext string) ([]T, error)
- func SaveStats(stats *ingame.PlayerState) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUINotOnce = fmt.Errorf("there must be only 1 file in ./UI")
ErrUINotOnce is returned when there are more than 1 files in ./UI.
Functions ¶
func LoadEnemyConfigs ¶
LoadEnemyConfigs loads enemy configs from the Enemies directory.
func LoadLevelConfigs ¶
LoadLevelConfigs loads level configs from the Levels directory.
func LoadMapConfigs ¶
LoadMapConfigs loads map configs from the Maps directory.
func LoadReplays ¶
LoadReplays loads replays from the Replays directory.
func LoadStats ¶
func LoadStats() (*ingame.PlayerState, error)
func LoadTowerConfigs ¶
LoadTowerConfigs loads tower configs from the Towers directory.
func LoadUIConfig ¶
LoadUIConfig loads UI configs from the UI directory.
func ReadConfigs ¶
ReadConfigs reads all files with extension ext from dirName and returns a slice of T.
func SaveStats ¶
func SaveStats(stats *ingame.PlayerState) error
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.