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: 6 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 DBPlayer

type DBPlayer struct {
	ID        int64
	CreatedAt time.Time
	UpdatedAt time.Time
	Age       int
}

DBPlayer is a player from DB

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) Get

func (s *Store) Get(ctx context.Context, playerID int64) (DBPlayer, error)

Get returns basic player info

Jump to

Keyboard shortcuts

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