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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinate

type Coordinate struct {
	Zone Zone
	X    float32
	Y    float32
}

type Item

type Item struct {
	Id   int64
	Name string
}

type NonPlayerCharacter

type NonPlayerCharacter struct {
	Id   int64
	Name string
	Type string

	Male bool

	Locations []Coordinate
}

type Object

type Object struct {
	Id   int64
	Name string

	Locations []Coordinate
}

type Quest

type Quest struct {
	Id       int64
	Obsolete bool

	Title       string
	Description string
	Progress    string
	Completion  string
	Locale      locale.Locale

	StartNPC    *NonPlayerCharacter
	StartObject *Object
	StartItem   *Item

	EndNPC    *NonPlayerCharacter
	EndObject *Object
	EndItem   *Item
}

func (*Quest) IsValid

func (q *Quest) IsValid() error

type Zone

type Zone struct {
	Id   int64
	Name string
}

Jump to

Keyboard shortcuts

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