Documentation
¶
Overview ¶
Hiscore package implements the communication between a Gopher2600 high-score server and the local client. It is a proof-of-concept and is not yet fully defined.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session represents a gaming session with the hi-score server. A session is started (with StartSession()) when a game starts, and concludes (with EndSession() when the game ends by uploading the game stats. Instances of the Session type can be used more than once.
func NewSession ¶
NewSession is the preferred method of initialisation of the Session type.
func (*Session) EndSession ¶
EndSession notifies the the HiScore server that a game has finished, with details of the game session (time spent, score, etc.)
Click to show internal directories.
Click to hide internal directories.