player

package
v0.0.0-...-5612d75 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Overview

Package player provides information of the player

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlayerInfo

type PlayerInfo struct {
	ID    int64
	Age   int
	Food  int
	Wood  int
	Gold  int
	Stone int
}

PlayerInfo is what the name implies

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store contains everything needed to provide player info

func (*Store) Info

func (s *Store) Info(ctx context.Context, playerID int64) (PlayerInfo, error)

Info returns PlayerInfo given the ID

Jump to

Keyboard shortcuts

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