Documentation
¶
Index ¶
- Constants
- func EncodeItemsBlob(items []uint16) []byte
- func PackPos(x, y uint16, z uint8) uint64
- type FloorBounds
- type GameMap
- type ItemAttrValue
- type MapItem
- type MapTile
- type Node
- func (n *Node) GetFloat32() (float32, error)
- func (n *Node) GetLongString() (string, error)
- func (n *Node) GetString() (string, error)
- func (n *Node) GetU8() (uint8, error)
- func (n *Node) GetU16() (uint16, error)
- func (n *Node) GetU32() (uint32, error)
- func (n *Node) Remaining() int
- func (n *Node) ResetPos()
- func (n *Node) Skip(count int) error
- type OTB
- type TeleportDest
- type Town
- type Waypoint
- type WorldData
- type WorldOption
Constants ¶
View Source
const ( NodeMapData = 2 NodeTileArea = 4 NodeTile = 5 NodeItem = 6 NodeTowns = 12 NodeTown = 13 NodeHouseTile = 14 NodeWaypoints = 15 NodeWaypoint = 16 )
View Source
const ( AttrDescription = 1 AttrExtFile = 2 AttrTileFlags = 3 AttrActionID = 4 AttrUniqueID = 5 AttrText = 6 AttrDesc = 7 AttrTeleDest = 8 AttrItem = 9 AttrDepotID = 10 AttrSpawnFile = 11 AttrRuneCharges = 12 AttrHouseFile = 13 AttrDoorID = 14 AttrCount = 15 AttrDuration = 16 AttrDecayState = 17 AttrWrittenDate = 18 AttrWrittenBy = 19 AttrSleeperGUID = 20 AttrSleepStart = 21 AttrCharges = 22 AttrContainerItems = 23 AttrAttrMap = 128 )
View Source
const ( TileFlagProtectionZone = 0x0001 TileFlagNoPVP = 0x0004 TileFlagNoLogout = 0x0008 TileFlagPVPZone = 0x0010 TileFlagRefresh = 0x0020 )
Variables ¶
This section is empty.
Functions ¶
func EncodeItemsBlob ¶ added in v1.18.0
Types ¶
type FloorBounds ¶
type FloorBounds struct {
MinX, MinY, MaxX, MaxY uint16
}
type GameMap ¶
type ItemAttrValue ¶ added in v1.20.0
type MapItem ¶ added in v1.17.0
type MapItem struct {
ID uint16
ActionID uint16
UniqueID uint16
TeleDest *TeleportDest
DoorID uint8
DepotID uint16
Text string
Description string
Charges uint16
RuneCharges uint8
Count uint8
Duration uint32
WrittenDate uint32
WrittenBy string
SleeperGUID uint32
SleepStart uint32
CustomAttrs map[string]ItemAttrValue
SubItems []MapItem
}
type Node ¶
type Node struct {
Type uint8
Data []byte
Children []*Node
// contains filtered or unexported fields
}
func (*Node) GetFloat32 ¶ added in v1.20.0
func (*Node) GetLongString ¶ added in v1.20.0
type TeleportDest ¶ added in v1.17.0
type WorldData ¶ added in v1.18.0
type WorldOption ¶ added in v1.18.0
type WorldOption func(*worldConfig)
func WithHouses ¶ added in v1.18.0
func WithHouses(path string) WorldOption
func WithSpawns ¶ added in v1.18.0
func WithSpawns(path string) WorldOption
Click to show internal directories.
Click to hide internal directories.