pvp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PVP

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

func New

func New(db *dbr.Connection, logger dbr.EventReceiver) (*PVP, error)

func (*PVP) ListPlayers

func (pvp *PVP) ListPlayers(server string) []Player

func (*PVP) Register

func (pvp *PVP) Register(user Player) error

type Player

type Player struct {
	ID         string `db:"id" json:"id"`
	Username   string `db:"username" json:"username"`
	Server     string `db:"server" json:"server,omitempty"`
	IGN        string `db:"ign" json:"ign"`
	FriendCode string `db:"friendcode" json:"friendcode"`
}

func (*Player) ToString added in v0.1.0

func (p *Player) ToString() string

Jump to

Keyboard shortcuts

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