database

package
v0.0.0-...-5fc1a02 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMinScore

func GetMinScore() int

func NilCheck

func NilCheck(err error)

func OpenDb

func OpenDb() error

func UpdateAchievements

func UpdateAchievements(data *AchievementData)

func UpdateLeaderboard

func UpdateLeaderboard(username string, score int)

Types

type AchievementData

type AchievementData struct {
	Username   string
	TotalScore int
	HighScore  int
	Spikes     int
	Resources  int
	Creatures  int
	Bitmap     uint32 // Bitmap corresponding to locked/unlocked achievements
}

func GetAchievements

func GetAchievements(username string) *AchievementData

type Leaderboard

type Leaderboard struct {
	Usernames []string
	Scores    []int
}

func GetAllRows

func GetAllRows() *Leaderboard

Jump to

Keyboard shortcuts

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