Documentation ¶
Index ¶
- func ContinueGame(_ fyne.Window, _ map[string]interface{}) (map[string]interface{}, map[string]fyne.CanvasObject, error)
- func CustomError(window fyne.Window, args map[string]interface{}) (results map[string]interface{}, widgets map[string]fyne.CanvasObject, ...)
- func Import()
- func LoadGame(window fyne.Window, args map[string]interface{}) (map[string]interface{}, map[string]fyne.CanvasObject, error)
- func NewGame(window fyne.Window, args map[string]interface{}) (results map[string]interface{}, widgets map[string]fyne.CanvasObject, ...)
- func Quit(window fyne.Window, _ map[string]interface{}) (map[string]interface{}, map[string]fyne.CanvasObject, error)
- func SaveAs(window fyne.Window, args map[string]interface{}) (map[string]interface{}, map[string]fyne.CanvasObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContinueGame ¶
func ContinueGame(_ fyne.Window, _ map[string]interface{}) (map[string]interface{}, map[string]fyne.CanvasObject, error)
ContinueGame continues the game from the last save file
func CustomError ¶
func CustomError(window fyne.Window, args map[string]interface{}) (results map[string]interface{}, widgets map[string]fyne.CanvasObject, err error)
CustomError creates a dialog window over the current game window The user is prompted if they would like to try and continue the game despite the error If they choose to continue, the error is not returned
func Import ¶
func Import()
Import is a function that exists to allow importing of this package even if you don't directly use any of its functions, while still running the init function without disabling the unused import warning, You can also import a functions package for side effects by changing its alias to _ but this way allows you to still use the package
func LoadGame ¶
func LoadGame(window fyne.Window, args map[string]interface{}) (map[string]interface{}, map[string]fyne.CanvasObject, error)
LoadGame loads a game save file and starts the game
func NewGame ¶
func NewGame(window fyne.Window, args map[string]interface{}) (results map[string]interface{}, widgets map[string]fyne.CanvasObject, err error)
NewGame creates a new game save file and starts the game
Types ¶
This section is empty.