game

package
v0.0.0-...-dad72f4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(first, second []string) []string

func Dump

func Dump(object *Object) (dump string)

func GetVariant

func GetVariant(object *Object) (response *variant.Object)

func Restore

func Restore(dump []byte, object *Object) (err error)

func Set

func Set(object *Object) (err error)

func SetVariant

func SetVariant(object *Object, option string)

Types

type DumpObject

type DumpObject struct {
	ObjectId  string   `json:"object_id"`
	Score     int      `json:"score"`
	Lives     int      `json:"lives"`
	Completed []string `json:"completed"`
	Current   string   `json:"current"`
}

type Object

type Object struct {
	ObjectId  string   `json:"object_id"`
	Score     int      `json:"score"`
	Lives     int      `json:"lives"`
	Completed []string `json:"-"`
	Current   string   `json:"-"`
}

func Add

func Add() (object *Object, err error)

func Get

func Get(objectId string) (response *Object, err error)

Jump to

Keyboard shortcuts

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