model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SexUnknown = Sex(1)
	SexMale    = Sex(2)
	SexFemale  = Sex(3)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Guid

type Guid string

type Info

type Info struct {
	Quest struct {
		Id          int64  `json:"id"`
		Description string `json:"description"`
		Progress    string `json:"progress"`
		Completion  string `json:"completion"`
	} `json:"quest"`
	Gossip string `json:"gossip"`
	Npc    struct {
		Id   Guid   `json:"id"`
		Name string `json:"name"`
		Sex  Sex    `json:"Sex"`
	} `json:"npc"`
	Player struct {
		Name  string `json:"name"`
		Realm string `json:"realm"`
		Sex   Sex    `json:"Sex"`
		Race  string `json:"race"`
		Class string `json:"class"`
	} `json:"player"`
	Shortcut string `json:"shortcut"`
	L        string `json:"locale"`
}

func (Info) GossipId

func (i Info) GossipId() string

func (Info) IsValid

func (i Info) IsValid() bool

func (Info) Locale

func (i Info) Locale() locale.Locale

type Sex

type Sex uint

Jump to

Keyboard shortcuts

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