fixtures

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
}

func (Location) MarshalBinary

func (l Location) MarshalBinary() ([]byte, error)

func (*Location) UnmarshalBinary

func (l *Location) UnmarshalBinary(b []byte) error

type Player

type Player struct {
	Serial   string   `json:"serial"`
	Name     string   `json:"name"`
	Active   bool     `json:"active"`
	Class    string   `json:"class"`
	Race     string   `json:"race"`
	Age      int      `json:"age"`
	Hp       int      `json:"hp"`
	Mp       int      `json:"mp"`
	Balance  float64  `json:"balance"`
	Gender   string   `json:"gender"`
	Guild    string   `json:"guild"`
	Location Location `json:"location"`
}

func Players

func Players() []Player

Players loads a set of players

Jump to

Keyboard shortcuts

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