DefaultFunctions

package
v0.0.0-...-6b2d15a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContinueGame

func ContinueGame(window fyne.Window, args *NFData.NFInterfaceMap) (*NFData.NFInterfaceMap, error)

ContinueGame continues the game from the last save file

func CustomError

func CustomError(window fyne.Window, args *NFData.NFInterfaceMap) (*NFData.NFInterfaceMap, 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 HelloWorld

func HelloWorld(window fyne.Window, args *NFData.NFInterfaceMap) (*NFData.NFInterfaceMap, error)

HelloWorld is a simple function that prints "Hello World" to the console

func Import

func Import()

Import is an empty function, created to allow the inclusion of this package in other parts of the code, even if none of its functions are directly used. This ensures that the init function is executed without triggering warnings about unused imports.

While it's possible to import a package for its side effects by changing its alias to _, using the Import function provides the added benefit of retaining direct access to the package's contents.

func LoadGame

func LoadGame(window fyne.Window, args *NFData.NFInterfaceMap) (*NFData.NFInterfaceMap, error)

LoadGame loads a game save file and starts the game

func NewGame

func NewGame(window fyne.Window, args *NFData.NFInterfaceMap) (*NFData.NFInterfaceMap, error)

NewGame creates a new game save file and starts the game

func Quit

func Quit(window fyne.Window, args *NFData.NFInterfaceMap) (*NFData.NFInterfaceMap, error)

Quit simply closes the window after prompting the user for confirmation

func SaveAs

func SaveAs(window fyne.Window, args *NFData.NFInterfaceMap) (*NFData.NFInterfaceMap, error)

SaveAs saves the game as a new save file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL