Documentation ¶
Overview ¶
Package things implements a registry for items, creatures etc.
Index ¶
- Constants
- func OutfitColorCount() int
- type Creature
- func (c *Creature) AnimCount() int
- func (c *Creature) ClientID(clientVersion uint16) uint16
- func (c *Creature) ColorizedCreatureFrame(idx int, dir CreatureDirection, outfitOverlayMask OutfitOverlayMask, ...) image.Image
- func (c *Creature) CreatureFrame(idx int, dir CreatureDirection, outfitOverlayMask OutfitOverlayMask, ...) image.Image
- func (c *Creature) GraphicsSize() struct{ ... }
- func (c *Creature) IdleAnim() bool
- func (c *Creature) LightInfo() dat.LightInfo
- func (c *Creature) Name() string
- func (c *Creature) ServerID() int
- type CreatureDirection
- type Item
- func (i *Item) GraphicsSize() struct{ ... }
- func (i *Item) ItemFrame(idx int, x, y, z int) image.Image
- func (i *Item) LightInfo() dat.LightInfo
- func (i *Item) MapColor() dat.DatasetColor
- func (i *Item) MapColorOK() bool
- func (i *Item) Name() string
- func (i *Item) RawClientDatasetItem780() *dat.Item
- func (i *Item) ValidClientItem() bool
- type OutfitColor
- type OutfitOverlayMask
- type Things
- func (t *Things) AddItemsOTB(i *itemsotb.Items) error
- func (t *Things) AddSpriteSet(s *spr.SpriteSet) error
- func (t *Things) AddTibiaDataset(d *dat.Dataset) error
- func (t *Things) Creature(serverID uint16, clientVersion uint16) (*Creature, error)
- func (t *Things) CreatureWithClientID(clientID uint16, clientVersion uint16) (*Creature, error)
- func (t *Things) Item(serverID uint16, clientVersion uint16) (*Item, error)
- func (t *Things) ItemWithClientID(clientID uint16, clientVersion uint16) (*Item, error)
- func (t *Things) SpriteSetSignature() uint32
- func (t *Things) Temp__GetClientIDForServerID(serverID uint16, clientVersion uint16) uint16
- func (t *Things) Temp__GetItemFromOTB(serverID uint16, clientVersion uint16) *itemsotb.Item
- func (t *Things) TibiaDatasetSignature() uint32
Constants ¶
View Source
const ( OutfitOverlayMaskNone = OutfitOverlayMask(1 << iota) OutfitOverlayMaskFirst OutfitOverlayMaskSecond OutfitOverlayMaskThird OutfitOverlayMaskFourth OutfitOverlayMaskLast )
View Source
const ( CreatureDirectionNorth = CreatureDirection(0) CreatureDirectionEast = CreatureDirection(iota) CreatureDirectionSouth CreatureDirectionWest )
Variables ¶
This section is empty.
Functions ¶
func OutfitColorCount ¶ added in v0.0.3
func OutfitColorCount() int
Types ¶
type Creature ¶
type Creature struct {
// contains filtered or unexported fields
}
func (*Creature) ColorizedCreatureFrame ¶
func (c *Creature) ColorizedCreatureFrame(idx int, dir CreatureDirection, outfitOverlayMask OutfitOverlayMask, colors []color.Color) image.Image
func (*Creature) CreatureFrame ¶
func (c *Creature) CreatureFrame(idx int, dir CreatureDirection, outfitOverlayMask OutfitOverlayMask, colorTemplate bool) image.Image
func (*Creature) GraphicsSize ¶
type CreatureDirection ¶ added in v0.0.3
type CreatureDirection int
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (*Item) GraphicsSize ¶
func (*Item) MapColor ¶ added in v0.0.3
func (i *Item) MapColor() dat.DatasetColor
func (*Item) MapColorOK ¶ added in v0.0.3
func (*Item) RawClientDatasetItem780 ¶ added in v0.0.5
RawClientDatasetItem780 is for debug or viewing use only; please do not access it outside these scenarios, as it may disappear anytime.
It is currently used for showing opt byte descriptions in the web UI.
It may return nil.
func (*Item) ValidClientItem ¶ added in v0.0.3
type OutfitColor ¶
type OutfitColor int
func (OutfitColor) RGBA ¶
func (col OutfitColor) RGBA() (r, g, b, a uint32)
type OutfitOverlayMask ¶
type OutfitOverlayMask int
type Things ¶
type Things struct {
// contains filtered or unexported fields
}
func (*Things) AddItemsOTB ¶
func (*Things) CreatureWithClientID ¶
func (*Things) ItemWithClientID ¶
func (*Things) SpriteSetSignature ¶
func (*Things) Temp__GetClientIDForServerID ¶
func (*Things) Temp__GetItemFromOTB ¶
func (*Things) TibiaDatasetSignature ¶
Click to show internal directories.
Click to hide internal directories.