Documentation ¶
Index ¶
- func Comma(v *big.Int) string
- func WrapSpawnFunc(f func(*Material, string) world.Visible) func(string) world.Visible
- type Door
- func (d *Door) Actions(player world.PlayerLike) []string
- func (d *Door) Blocking() bool
- func (d *Door) Colors() []string
- func (d *Door) Interact(player world.PlayerLike, action string)
- func (d *Door) Name() string
- func (d *Door) Sprite() string
- func (d *Door) SpritePos() (uint, uint)
- func (d *Door) SpriteSize() (uint, uint)
- type Floor
- func (f *Floor) AnimationType() string
- func (f *Floor) Blocking() bool
- func (f *Floor) Colors() []string
- func (f *Floor) Examine() (string, [][][2]string)
- func (f *Floor) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (f *Floor) Name() string
- func (f *Floor) Save() (uint, interface{}, []world.ObjectLike)
- func (f *Floor) Sprite() string
- func (f *Floor) SpritePos() (uint, uint)
- func (f *Floor) SpriteSize() (uint, uint)
- type Forge
- func (f *Forge) Actions(player world.PlayerLike) []string
- func (f *Forge) Blocking() bool
- func (f *Forge) Colors() []string
- func (f *Forge) Command(player world.PlayerLike, data map[string]interface{})
- func (f *Forge) Examine() (string, [][][2]string)
- func (f *Forge) ExtraBlock() [][2]int8
- func (f *Forge) Interact(player world.PlayerLike, action string)
- func (f *Forge) Name() string
- func (f *Forge) Scale() uint
- func (f *Forge) Sprite() string
- func (f *Forge) SpriteSize() (uint, uint)
- type GatherSchedule
- type Ingot
- func (i *Ingot) AdminOnly() bool
- func (i *Ingot) Colors() []string
- func (i *Ingot) Examine() (string, [][][2]string)
- func (i *Ingot) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (i *Ingot) Name() string
- func (i *Ingot) Quality() *big.Int
- func (i *Ingot) Save() (uint, interface{}, []world.ObjectLike)
- func (i *Ingot) Sprite() string
- func (i *Ingot) Volume() uint64
- func (i *Ingot) Weight() uint64
- type IsWall
- type Logs
- func (l *Logs) AdminOnly() bool
- func (l *Logs) Colors() []string
- func (l *Logs) Examine() (string, [][][2]string)
- func (l *Logs) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (l *Logs) Material() *Material
- func (l *Logs) Name() string
- func (l *Logs) Save() (uint, interface{}, []world.ObjectLike)
- func (l *Logs) Sprite() string
- func (l *Logs) Volume() uint64
- func (l *Logs) Weight() uint64
- type Material
- func (m *Material) Copy(volume uint64) *Material
- func (m *Material) CopyMetal(volume uint64) *Material
- func (m *Material) CopyStone(volume uint64) *Material
- func (m *Material) CopyWood(volume uint64) *Material
- func (m *Material) Get() (wood []WoodType, stone []StoneType, metal []MetalType)
- func (m *Material) Info() [][][2]string
- func (m *Material) LeafColor() string
- func (m *Material) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (m *Material) MetalColor() string
- func (m *Material) Name() string
- func (m *Material) OreColor() string
- func (m *Material) Quality() *big.Int
- func (m *Material) Save() (uint, interface{}, []world.ObjectLike)
- func (m *Material) Stat(stat world.Stat) *big.Int
- func (m *Material) StoneColor() string
- func (m *Material) Volume() uint64
- func (m *Material) Weight() uint64
- func (m *Material) WoodColor() string
- type MaterialData
- type MetalType
- type Node
- func (n *Node) Blocking() bool
- func (n *Node) Examine() (string, [][][2]string)
- func (n *Node) Gather(i world.InventoryLike, maxToolScore *big.Int, item func(uint64) world.Visible) (bool, bool)
- func (n *Node) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (n *Node) Quality() *big.Int
- func (n *Node) Save() (uint, interface{}, []world.ObjectLike)
- func (n *Node) Size() uint64
- type NodeLike
- type Ore
- func (o *Ore) AdminOnly() bool
- func (o *Ore) Colors() []string
- func (o *Ore) Examine() (string, [][][2]string)
- func (o *Ore) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (o *Ore) Material() *Material
- func (o *Ore) Name() string
- func (o *Ore) Save() (uint, interface{}, []world.ObjectLike)
- func (o *Ore) Sprite() string
- func (o *Ore) Volume() uint64
- func (o *Ore) Weight() uint64
- type Rock
- func (r *Rock) Actions(player world.PlayerLike) []string
- func (r *Rock) Colors() []string
- func (r *Rock) Examine() (string, [][][2]string)
- func (r *Rock) Interact(player world.PlayerLike, action string)
- func (r *Rock) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (r *Rock) Name() string
- func (r *Rock) Quality() *big.Int
- func (r *Rock) Save() (uint, interface{}, []world.ObjectLike)
- func (r *Rock) Sprite() string
- func (r *Rock) SpriteSize() (uint, uint)
- type Stone
- func (s *Stone) AdminOnly() bool
- func (s *Stone) Colors() []string
- func (s *Stone) Examine() (string, [][][2]string)
- func (s *Stone) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (s *Stone) Material() *Material
- func (s *Stone) Name() string
- func (s *Stone) Save() (uint, interface{}, []world.ObjectLike)
- func (s *Stone) Sprite() string
- func (s *Stone) Volume() uint64
- func (s *Stone) Weight() uint64
- type StoneType
- type Tree
- func (t *Tree) Actions(player world.PlayerLike) []string
- func (t *Tree) Colors() []string
- func (t *Tree) Examine() (string, [][][2]string)
- func (t *Tree) Interact(player world.PlayerLike, action string)
- func (t *Tree) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (t *Tree) Name() string
- func (t *Tree) Quality() *big.Int
- func (t *Tree) Save() (uint, interface{}, []world.ObjectLike)
- func (t *Tree) Sprite() string
- func (t *Tree) SpriteSize() (uint, uint)
- type Wall
- func (w *Wall) Blocking() bool
- func (w *Wall) Colors() []string
- func (w *Wall) Examine() (string, [][][2]string)
- func (w *Wall) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (w *Wall) Name() string
- func (w *Wall) Save() (uint, interface{}, []world.ObjectLike)
- func (w *Wall) Sprite() string
- func (w *Wall) SpritePos() (uint, uint)
- func (w *Wall) SpriteSize() (uint, uint)
- type WoodType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Door ¶
type Door struct { world.VisibleObject // contains filtered or unexported fields }
func (*Door) SpriteSize ¶
type Floor ¶
type Floor struct { world.VisibleObject // contains filtered or unexported fields }
func (*Floor) AnimationType ¶
func (*Floor) Load ¶
func (f *Floor) Load(version uint, data interface{}, attached []world.ObjectLike)
func (*Floor) SpriteSize ¶
type Forge ¶
type Forge struct {
world.VisibleObject
}
func (*Forge) Command ¶
func (f *Forge) Command(player world.PlayerLike, data map[string]interface{})
func (*Forge) ExtraBlock ¶
func (*Forge) SpriteSize ¶
type GatherSchedule ¶
type GatherSchedule struct { world.Object Tool world.StatLike Target_ NodeLike Item func(uint64) world.Visible // contains filtered or unexported fields }
func (*GatherSchedule) ShouldSave ¶
func (s *GatherSchedule) ShouldSave() bool
func (*GatherSchedule) Target ¶
func (s *GatherSchedule) Target() world.ObjectLike
type Ingot ¶
type Ingot struct { world.VisibleObject // contains filtered or unexported fields }
type Logs ¶
type Logs struct { world.VisibleObject // contains filtered or unexported fields }
type Material ¶
func (*Material) Load ¶
func (m *Material) Load(version uint, data interface{}, attached []world.ObjectLike)
func (*Material) MetalColor ¶
func (*Material) StoneColor ¶
type MaterialData ¶
type MaterialData struct {
// contains filtered or unexported fields
}
func (*MaterialData) Color ¶
func (m *MaterialData) Color() color.Color
func (*MaterialData) Density ¶
func (m *MaterialData) Density() uint64
Density in centigrams per cubic centimeter.
func (*MaterialData) Durability ¶
func (m *MaterialData) Durability() *big.Int
Durability increases the amount of wear an item can take before degrading.
func (*MaterialData) ExtraColor ¶
func (m *MaterialData) ExtraColor() color.Color
func (*MaterialData) Name ¶
func (m *MaterialData) Name() string
func (*MaterialData) Skin ¶
func (m *MaterialData) Skin() uint8
type MetalType ¶
type MetalType uint64
func (MetalType) Data ¶
func (t MetalType) Data() *MaterialData
type Node ¶
type Node struct { world.VisibleObject // contains filtered or unexported fields }
type Ore ¶
type Ore struct { world.VisibleObject // contains filtered or unexported fields }
type Rock ¶
type Rock struct { Node // contains filtered or unexported fields }
func (*Rock) Load ¶
func (r *Rock) Load(version uint, data interface{}, attached []world.ObjectLike)
func (*Rock) SpriteSize ¶
type Stone ¶
type Stone struct { world.VisibleObject // contains filtered or unexported fields }
type StoneType ¶
type StoneType uint64
func (StoneType) Data ¶
func (t StoneType) Data() *MaterialData
type Tree ¶
type Tree struct { Node // contains filtered or unexported fields }
func (*Tree) Load ¶
func (t *Tree) Load(version uint, data interface{}, attached []world.ObjectLike)
func (*Tree) SpriteSize ¶
type Wall ¶
type Wall struct { world.VisibleObject // contains filtered or unexported fields }
func (*Wall) Load ¶
func (w *Wall) Load(version uint, data interface{}, attached []world.ObjectLike)
func (*Wall) SpriteSize ¶
Click to show internal directories.
Click to hide internal directories.