item

package
v0.0.0-...-3befcbb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdData

type IdData struct {
	Id string `json:"id"`
}

type Item

type Item struct {
	Item string `json:"item"`
}

type ItemEntity

type ItemEntity struct {
	Id       uuid.UUID
	Item     Item
	Position dopemap.Position
}

func GetItemEntityByUUID

func GetItemEntityByUUID(items []*ItemEntity, uuid uuid.UUID) *ItemEntity

func NewItemEntity

func NewItemEntity(item Item, x float32, y float32) *ItemEntity

func (*ItemEntity) Serialize

func (i *ItemEntity) Serialize() ItemEntityData

type ItemEntityData

type ItemEntityData struct {
	Id   string  `json:"id"`
	Item string  `json:"item"`
	X    float32 `json:"x"`
	Y    float32 `json:"y"`
}

Jump to

Keyboard shortcuts

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