Documentation ¶
Overview ¶
Package things implements a registry for items, creatures etc.
Index ¶
- Constants
- type Creature
- func (c *Creature) AnimCount() int
- func (c *Creature) ColorizedCreatureFrame(idx, dir int, outfitOverlayMask OutfitOverlayMask, colors []color.Color) image.Image
- func (c *Creature) CreatureFrame(idx, dir int, outfitOverlayMask OutfitOverlayMask, colorTemplate bool) image.Image
- func (c *Creature) GraphicsSize() struct{ ... }
- func (c *Creature) IdleAnim() bool
- func (c *Creature) LightInfo() dat.LightInfo
- func (c *Creature) Name() string
- type Item
- 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) 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 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Creature ¶
type Creature struct {
// contains filtered or unexported fields
}
func (*Creature) ColorizedCreatureFrame ¶
func (*Creature) CreatureFrame ¶
func (*Creature) GraphicsSize ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (*Item) GraphicsSize ¶
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.