Documentation
¶
Index ¶
Constants ¶
View Source
const IsoTimestampFileUsable = "2006-01-02T15-04-05"
Variables ¶
This section is empty.
Functions ¶
func RegisterEventHandler ¶
RegisterEventHandler is the main way to register a handler callback for when an events.GameEvent is raised
func RegisterGlobalHandler ¶
func RegisterGlobalHandler(handler gameEventHandlerCallback)
RegisterGlobalHandler is a function that will call handler anytime a RECOGNISED event is raised
func RegisterNonEventHandler ¶
RegisterNonEventHandler calls the handler callback provided if a game event happens that the library does not currently support Useful for using the package as a base should you wish to extend it, or for debugging
func StartupAndServe ¶
StartupAndServe is the main entrypoint for the application. addr is the address and port you wish to serve the application on. Pass it in the same way you would to http.ListenAndServe()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.