Discover Packages
git.kirsle.net/SketchyMaze/doodle
pkg
campaign
package
Version:
v0.0.0-...-79996cc
Opens a new window with list of versions in this module.
Published: Apr 9, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package campaign contains types and functions for the single player campaigns.
Package campaign contains types and functions for the single player campaigns.
List returns the list of available campaign JSONs.
It searches in:
- The embedded bindata for built-in scenarios
- Scenarios on disk at the assets/campaigns folder.
- User-made scenarios at ~/doodle/campaigns.
type Campaign struct {
Version int `json:"version"`
Title string `json:"title"`
Author string `json:"author"`
Levels []Level `json:"levels"`
}
Campaign structure for the JSON campaign files.
type Level struct {
Filename string `json:"filename"`
}
Level is the "levels" object of the JSON file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.