go-tibia: badc0de.net/pkg/go-tibia/things Index | Files

package things

import "badc0de.net/pkg/go-tibia/things"

Package things implements a registry for items, creatures etc.

Index

Package Files

compositor.go doc.go things.go

Constants

const (
    OutfitOverlayMaskNone = OutfitOverlayMask(1 << iota)
    OutfitOverlayMaskFirst
    OutfitOverlayMaskSecond
    OutfitOverlayMaskThird
    OutfitOverlayMaskFourth

    OutfitOverlayMaskLast
)
const (
    CreatureDirectionNorth = CreatureDirection(0)
    CreatureDirectionEast  = CreatureDirection(iota)
    CreatureDirectionSouth
    CreatureDirectionWest
)

type Creature Uses

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

func (*Creature) AnimCount Uses

func (c *Creature) AnimCount() int

func (*Creature) ColorizedCreatureFrame Uses

func (c *Creature) ColorizedCreatureFrame(idx int, dir CreatureDirection, outfitOverlayMask OutfitOverlayMask, colors []color.Color) image.Image

func (*Creature) CreatureFrame Uses

func (c *Creature) CreatureFrame(idx int, dir CreatureDirection, outfitOverlayMask OutfitOverlayMask, colorTemplate bool) image.Image

func (*Creature) GraphicsSize Uses

func (c *Creature) GraphicsSize() struct{ W, H int }

func (*Creature) IdleAnim Uses

func (c *Creature) IdleAnim() bool

func (*Creature) LightInfo Uses

func (c *Creature) LightInfo() dat.LightInfo

func (*Creature) Name Uses

func (c *Creature) Name() string

type CreatureDirection Uses

type CreatureDirection int

type Item Uses

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

func (*Item) GraphicsSize Uses

func (i *Item) GraphicsSize() struct{ W, H int }

func (*Item) ItemFrame Uses

func (i *Item) ItemFrame(idx int, x, y, z int) image.Image

func (*Item) LightInfo Uses

func (i *Item) LightInfo() dat.LightInfo

func (*Item) Name Uses

func (i *Item) Name() string

type OutfitColor Uses

type OutfitColor int

func (OutfitColor) RGBA Uses

func (col OutfitColor) RGBA() (r, g, b, a uint32)

type OutfitOverlayMask Uses

type OutfitOverlayMask int

type Things Uses

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

func New Uses

func New() (*Things, error)

func (*Things) AddItemsOTB Uses

func (t *Things) AddItemsOTB(i *itemsotb.Items) error

func (*Things) AddSpriteSet Uses

func (t *Things) AddSpriteSet(s *spr.SpriteSet) error

func (*Things) AddTibiaDataset Uses

func (t *Things) AddTibiaDataset(d *dat.Dataset) error

func (*Things) CreatureWithClientID Uses

func (t *Things) CreatureWithClientID(clientID uint16, clientVersion uint16) (*Creature, error)

func (*Things) Item Uses

func (t *Things) Item(serverID uint16, clientVersion uint16) (*Item, error)

func (*Things) ItemWithClientID Uses

func (t *Things) ItemWithClientID(clientID uint16, clientVersion uint16) (*Item, error)

func (*Things) SpriteSetSignature Uses

func (t *Things) SpriteSetSignature() uint32

func (*Things) Temp__GetClientIDForServerID Uses

func (t *Things) Temp__GetClientIDForServerID(serverID uint16, clientVersion uint16) uint16

func (*Things) Temp__GetItemFromOTB Uses

func (t *Things) Temp__GetItemFromOTB(serverID uint16, clientVersion uint16) *itemsotb.Item

func (*Things) TibiaDatasetSignature Uses

func (t *Things) TibiaDatasetSignature() uint32

Package things imports 7 packages (graph) and is imported by 5 packages. Updated 2020-10-21. Refresh now. Tools for package owners.