model

package
v0.0.0-...-e5a3c4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuffBarInfo

type BuffBarInfo struct {
	Count byte `bin:"len:1"`
	Buffs []BuffIcon
}

Bar info that contains all the buffs/debuffs of player's character

type BuffIcon

type BuffIcon struct {
	Attribute_ID uint16    `bin:"len:4"`
	TimeStart    time.Time `bin:"len:16"`
	Seconds      uint16    `bin:"len:4"`
	ClilocID1    uint32    `bin:"len:8"`
	ClilocID2    uint32    `bin:"len:8"`
}

Character buff or debuff

type ButtonTileArt

type ButtonTileArt struct {
	X           int32 `bin:"le"`
	Y           int32 `bin:"le"`
	ReleasedID  int32 `bin:"le"`
	PressedID   int32 `bin:"le"`
	Quit        int32 `bin:"le"`
	PageID      int32 `bin:"le"`
	ReturnValue int32 `bin:"le"`
	ArtID       int32 `bin:"le"`
	Hue         int32 `bin:"le"`
	ArtX        int32 `bin:"le"`
	ArtY        int32 `bin:"le"`
	ElemNum     int32 `bin:"le"`
}

class _GumpButton:

args = [_int] * 9
container = 'GumpButtons'
keys = ('X', 'Y', 'ReleasedID', 'PressedID', 'Quit', 'PageID',returnValue', 'Page', 'ElemNum')

type CheckBox

type CheckBox struct {
	X           int32 `bin:"le"`
	Y           int32 `bin:"le"`
	ReleasedID  int32 `bin:"le"`
	PressedID   int32 `bin:"le"`
	Quit        int32 `bin:"le"`
	PageID      int32 `bin:"le"`
	ReturnValue int32 `bin:"le"`
	Page        int32 `bin:"le"`
	ElemNum     int32 `bin:"le"`
}

class _ButtonTileArt:

args = [_int] * 12
container = 'ButtonTileArts'
keys = ('X', 'Y', 'ReleasedID', 'PressedID', 'Quit', 'PageID',returnValue', 'ArtID', 'Hue', 'ArtX', 'ArtY', 'ElemNum')

type CheckerTrans

type CheckerTrans struct {
	X       int32 `bin:"le"`
	Y       int32 `bin:"le"`
	Width   int32 `bin:"le"`
	Height  int32 `bin:"le"`
	Page    int32 `bin:"le"`
	ElemNum int32 `bin:"le"`
}

class _CheckBox:

args = [_int] * 8
container = 'CheckBoxes'returnValue',
        'Page', 'ElemNum')

type Coordinate

type Coordinate uint16

Represents X or Y coordinate in UO world

type CroppedText

type CroppedText struct {
	X       int32 `bin:"le"`
	Y       int32 `bin:"le"`
	Width   int32 `bin:"le"`
	Height  int32 `bin:"le"`
	Color   int32 `bin:"le"`
	TextId  int32 `bin:"le"`
	Page    int32 `bin:"le"`
	ElemNum int32 `bin:"le"`
}

class _ChekerTrans:

args = [_int] * 6
container = 'ChekerTrans'
keys = 'X', 'Y', 'Width', 'Height', 'Page', 'ElemNum'

type ExtGumpInfo

type ExtGumpInfo struct {
	GroupsLen           uint32             `bin:"le"`
	Groups              []Group            `bin:"len:GroupsLen"`
	EndGroupsLen        uint32             `bin:"le"`
	EndGroups           []Group            `bin:"len:EndGroupsLen"`
	GumpButtonsLen      uint32             `bin:"le"`
	GumpButtons         []GumpButton       `bin:"len:GumpButtonsLen"`
	ButtonTileArtLen    uint32             `bin:"le"`
	ButtonTileArt       []ButtonTileArt    `bin:"len:ButtonTileArtLen"`
	CheckBoxLen         uint32             `bin:"le"`
	CheckBox            []CheckBox         `bin:"len:CheckBoxLen"`
	CheckerTransLen     uint32             `bin:"le"`
	CheckerTransparency []CheckerTrans     `bin:"len:CheckerTransLen"`
	CroppedTextLen      uint32             `bin:"le"`
	CroppedText         []CroppedText      `bin:"len:CroppedTextLen"`
	GumpPicLen          uint32             `bin:"le"`
	GumpPic             []GumpPic          `bin:"len:GumpPicLen"`
	GumpPicTiledLen     uint32             `bin:"le"`
	GumpPicTiled        []GumpPicTiled     `bin:"len:GumpPicTiledLen"`
	RadioButtonLen      uint32             `bin:"le"`
	RadioButton         []RadioButton      `bin:"len:RadioButtonLen"`
	ResizePicLen        uint32             `bin:"le"`
	ResizePics          []ResizePic        `bin:"len:ResizePicLen"`
	GumpTextLen         uint32             `bin:"le"`
	GumpText            []GumpText         `bin:"len:GumpTextLen"`
	TextEntryLen        uint32             `bin:"le"`
	TextEntry           []TextEntry        `bin:"len:TextEntryLen"`
	TextLen             uint32             `bin:"le"`
	Text                []string           `bin:"len:TextLen,[StringFunc]"`
	TextEntryLimitedLen uint32             `bin:"le"`
	TextEntryLimited    []TextEntryLimited `bin:"len:TextEntryLimitedLen"`
	TilePicLen          uint32             `bin:"le"`
	TilePic             []TilePic          `bin:"len:TilePicLen"`
	TilePicHueLen       uint32             `bin:"le"`
	TilePicture         []TilePicHue       `bin:"len:TilePicHueLen"`
	TooltipLen          uint32             `bin:"le"`
	Tooltip             []Tooltip          `bin:"len:TooltipLen"`
	HtmlGumpLen         uint32             `bin:"le"`
	HtmlGump            []HtmlGump         `bin:"len:HtmlGumpLen"`
	XmfHtmlGumpLen      uint32             `bin:"le"`
	XmfHTMLGump         []XmfHtmlGump      `bin:"len:XmfHtmlGumpLen"`
	XmfHTMLGumpColorLen uint32             `bin:"le"`
	XmfHTMLGumpColor    []XmfHTMLGumpColor `bin:"len:XmfHTMLGumpColorLen"`
	XmfHTMLTokLen       uint32             `bin:"le"`
	XmfHTMLTok          []XmfHTMLTok       `bin:"len:XmfHTMLTokLen"`
	ItemPropertyLen     uint32             `bin:"le"`
	ItemProperty        []ItemProperty     `bin:"len:GroupsLen"`
}

func (*ExtGumpInfo) StringFunc

func (d *ExtGumpInfo) StringFunc(r binstruct.Reader) (string, error)

type ExtendedInfo

type ExtendedInfo struct {
	MaxWeight          uint16 `bin:"le"`
	Race               byte   `bin:"le"`
	StatCap            uint16 `bin:"le"`
	PetsCurrent        byte   `bin:"le"`
	PetsMax            byte   `bin:"le"`
	FireResist         uint16 `bin:"le"`
	ColdResist         uint16 `bin:"le"`
	PoisonResist       uint16 `bin:"le"`
	EnergyResist       uint16 `bin:"le"`
	Luck               int16  `bin:"le"`
	DamageMin          uint16 `bin:"le"`
	DamageMax          uint16 `bin:"le"`
	TithingPoints      uint32 `bin:"le"`
	HitChanceIncr      uint16 `bin:"le"`
	SwingSpeedIncr     uint16 `bin:"le"`
	DamageChanceIncr   uint16 `bin:"le"`
	LowerReagentCost   uint16 `bin:"le"`
	HpRegen            uint16 `bin:"le"`
	StamRegen          uint16 `bin:"le"`
	ManaRegen          uint16 `bin:"le"`
	ReflectPhysDamage  uint16 `bin:"le"`
	EnhancePotions     uint16 `bin:"le"`
	DefenseChanceIncr  uint16 `bin:"le"`
	SpellDamageIncr    uint16 `bin:"le"`
	FasterCastRecovery uint16 `bin:"le"`
	FasterCasting      uint16 `bin:"le"`
	LowerManaCost      uint16 `bin:"le"`
	StrengthIncr       uint16 `bin:"le"`
	DextIncr           uint16 `bin:"le"`
	IntIncr            uint16 `bin:"le"`
	HpIncr             uint16 `bin:"le"`
	StamIncr           uint16 `bin:"le"`
	ManaIncr           uint16 `bin:"le"`
	MaxHpIncr          uint16 `bin:"le"`
	MaxStamIncr        uint16 `bin:"le"`
	MaxManaIncrease    uint16 `bin:"le"`
}

Extended info about player's character

type FoundTile

type FoundTile struct {
	Tile uint16     `bin:"le"`
	X    Coordinate `bin:"le"`
	Y    Coordinate `bin:"le"`
	Z    int8       `bin:"le"`
}

type Group

type Group struct {
	GroupNumber int32 `bin:"le"`
	Page        int32 `bin:"le"`
	ElemNum     int32 `bin:"le"`
}

type Gump

type Gump struct {
	Serial    uint32 `bin:"le"`
	GumpId    uint32 `bin:"le"`
	X         uint16 `bin:"le"`
	Y         uint16 `bin:"le"`
	Pages     int32  `bin:"le"`
	NoMove    bool   `bin:"le"`
	NoResize  bool   `bin:"le"`
	NoDispose bool   `bin:"le"`
	NoClose   bool   `bin:"le"`
	ExtInfo   ExtGumpInfo
}

class _ItemProperty:

args = [_uint, _int]
container = 'ItemProperties'
keys = 'Prop', 'ElemNum'

type GumpButton

type GumpButton struct {
	X           int32 `bin:"le"`
	Y           int32 `bin:"le"`
	ReleasedID  int32 `bin:"le"`
	PressedID   int32 `bin:"le"`
	Quit        int32 `bin:"le"`
	PageID      int32 `bin:"le"`
	ReturnValue int32 `bin:"le"`
	Page        int32 `bin:"le"`
	ElemNum     int32 `bin:"le"`
}

type GumpPic

type GumpPic struct {
	X       int32 `bin:"le"`
	Y       int32 `bin:"le"`
	Id      int32 `bin:"le"`
	Hue     int32 `bin:"le"`
	Page    int32 `bin:"le"`
	ElemNum int32 `bin:"le"`
}

class _CroppedText:

args = [_int] * 8
container = 'CroppedText'
keys = 'X', 'Y', 'Width', 'Height', 'Color', 'TextID', 'Page', 'ElemNum'

type GumpPicTiled

type GumpPicTiled struct {
	X       int32 `bin:"le"`
	Y       int32 `bin:"le"`
	Width   int32 `bin:"le"`
	Height  int32 `bin:"le"`
	GumpId  int32 `bin:"le"`
	Page    int32 `bin:"le"`
	ElemNum int32 `bin:"le"`
}

class _GumpPic:

args = [_int] * 6
container = 'GumpPics'
keys = 'X', 'Y', 'ID', 'Hue', 'Page', 'ElemNum'

type GumpText

type GumpText struct {
	X       int32 `bin:"le"`
	Y       int32 `bin:"le"`
	Color   int32 `bin:"le"`
	TextId  int32 `bin:"le"`
	Page    int32 `bin:"le"`
	ElemNum int32 `bin:"le"`
}

class _ResizePic:

args = [_int] * 7
container = 'ResizePics'
keys = 'X', 'Y', 'GumpID', 'Width', 'Height', 'Page', 'ElemNum'

type HtmlGump

type HtmlGump struct {
	X          int32 `bin:"le"`
	Y          int32 `bin:"le"`
	Width      int32 `bin:"le"`
	Height     int32 `bin:"le"`
	TextId     int32 `bin:"le"`
	Background int32 `bin:"le"`
	Scrollbar  int32 `bin:"le"`
	Page       int32 `bin:"le"`
	ElemNum    int32 `bin:"le"`
}

class _Tooltip:

args = [_uint, _str, _int, _int]
container = 'Tooltips'
keys = 'ClilocID', 'Arguments', 'Page', 'ElemNum'

type ItemProperty

type ItemProperty struct {
	Prop    uint32 `bin:"le"`
	ElemNum int32  `bin:"le"`
}

class _XmfHTMLTok:

args = [_int] * 7 + [_uint, _str, _int, _int]
container = 'XmfHTMLTok'
keys = ('X', 'Y', 'Width', 'Height', 'Background', 'Scrollbar', 'Color',
        'ClilocID', 'Arguments', 'Page', 'ElemNum')

type MapCell

type MapCell struct {
	Tile uint16 `bin:"le"`
	Z    int8   `bin:"le"`
}

type Multi

type Multi struct {
	Id                                          uint32
	X, Y, XMax, XMin, YMax, YMin, Width, Height uint16 `bin:"le"`
	Z                                           byte   `bin:"le"`
}

Multi structure that can represent wessel or house for example

type Point2D

type Point2D struct {
	X, Y uint16 `bin:"len:4"`
}

Point in UO world

type RadioButton

type RadioButton struct {
	X           int32 `bin:"le"`
	Y           int32 `bin:"le"`
	ReleasedID  int32 `bin:"le"`
	PressedID   int32 `bin:"le"`
	Status      int32 `bin:"le"`
	ReturnValue int32 `bin:"le"`
	Page        int32 `bin:"le"`
	ElemNum     int32 `bin:"le"`
}

class _GumpPicTiled:

fmt = '=7i'
args = [_int] * 7
container = 'GumpPicTiled'
keys = 'X', 'Y', 'Width', 'Height', 'GumpID', 'Page', 'ElemNum'

type ResizePic

type ResizePic struct {
	X       int32 `bin:"le"`
	Y       int32 `bin:"le"`
	Width   int32 `bin:"le"`
	Height  int32 `bin:"le"`
	GumpId  int32 `bin:"le"`
	Page    int32 `bin:"le"`
	ElemNum int32 `bin:"le"`
}

class _Radiobutton:

args = [_int] * 8
container = 'RadioButtons'returnValue',
        'Page', 'ElemNum')

type StaticsXY

type StaticsXY struct {
	Tile, X, Y, Color uint16 `bin:"le"`
	Z                 byte   `bin:"le"`
}

Struct that represents TStatic from stealth client Tiles are useful to find lumberjacking, mining or fishing spots. There are also a lot of other useful ways to consume this struct

type TargetInfo

type TargetInfo struct {
	ID   uint32     `bin:"le"`
	Tile uint16     `bin:"le"`
	X    Coordinate `bin:"le"`
	Y    Coordinate `bin:"le"`
	Z    int8       `bin:"le"`
}

type Text

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

class _TextEntry:

args = [_int] * 7 + [_str, _int, _int]
container = 'TextEntries'returnValue',
        'DefaultTextID', 'RealValue', 'Page', 'ElemNum')

type TextEntry

type TextEntry struct {
	X             int32 `bin:"le"`
	Y             int32 `bin:"le"`
	Width         int32 `bin:"le"`
	Height        int32 `bin:"le"`
	Color         int32 `bin:"le"`
	ReturnValue   int32 `bin:"le"`
	DefaultTextId int32 `bin:"le"`
	Page          int32 `bin:"le"`
	ElemNum       int32 `bin:"le"`
}

class _GumpText:

args = [_int] * 6
container = 'GumpText'
keys = 'X', 'Y', 'Color', 'TextID', 'Page', 'ElemNum'

type TextEntryLimited

type TextEntryLimited struct {
	X             int32 `bin:"le"`
	Y             int32 `bin:"le"`
	Width         int32 `bin:"le"`
	Height        int32 `bin:"le"`
	Color         int32 `bin:"le"`
	ReturnValue   int32 `bin:"le"`
	DefaultTextId int32 `bin:"le"`
	Limit         int32 `bin:"le"`
	Page          int32 `bin:"le"`
	ElemNum       int32 `bin:"le"`
}

class _Text:

args = [_str]
container = 'Text'
keys = None

type TilePic

type TilePic struct {
	X       int32 `bin:"le"`
	Y       int32 `bin:"le"`
	Id      int32 `bin:"le"`
	Page    int32 `bin:"le"`
	ElemNum int32 `bin:"le"`
}

class _TextEntryLimited:

args = [_int] * 10
container = 'TextEntriesLimited'returnValue',
        'DefaultTextID', 'Limit', 'Page', 'ElemNum')

type TilePicHue

type TilePicHue struct {
	X       int32 `bin:"le"`
	Y       int32 `bin:"le"`
	Id      int32 `bin:"le"`
	Color   int32 `bin:"le"`
	Page    int32 `bin:"le"`
	ElemNum int32 `bin:"le"`
}

class _TilePic:

args = [_int] * 5
container = 'TilePics'
keys = 'X', 'Y', 'ID', 'Page', 'ElemNum'

type Tooltip

type Tooltip struct {
	ClilocId int32 `bin:"le"`
	Page     int32 `bin:"le"`
	ElemNum  int32 `bin:"le"`
}

class _TilePicHue:

args = [_int] * 6
container = 'TilePicHue'
keys = 'X', 'Y', 'ID', 'Color', 'Page', 'ElemNum'

type WorldCellPassable

type WorldCellPassable struct {
	Passable bool `bin:"len:1"`
	Z        int8 `bin:"len:2"`
}

Determines that world cell which is a XYZ point is passable or not

type XmfHTMLGumpColor

type XmfHTMLGumpColor struct {
	X          int32 `bin:"le"`
	Y          int32 `bin:"le"`
	Width      int32 `bin:"le"`
	Height     int32 `bin:"le"`
	ClilocID   int32 `bin:"le"`
	Background int32 `bin:"le"`
	Scrollbar  int32 `bin:"le"`
	Hue        int32 `bin:"le"`
	Page       int32 `bin:"le"`
	ElemNum    int32 `bin:"le"`
}

class _XmfHtmlGump:

args = [_int] * 4 + [_uint] + [_int] * 4
container = 'XmfHtmlGump'
keys = ('X', 'Y', 'Width', 'Height', 'ClilocID', 'Background', 'Scrollbar',
        'Page', 'ElemNum')

type XmfHTMLTok

type XmfHTMLTok struct {
	X          int32 `bin:"le"`
	Y          int32 `bin:"le"`
	Width      int32 `bin:"le"`
	Height     int32 `bin:"le"`
	Background int32 `bin:"le"`
	Scrollbar  int32 `bin:"le"`
	Color      int32 `bin:"le"`
	ClilocID   int32 `bin:"le"`
	Page       int32 `bin:"le"`
	ElemNum    int32 `bin:"le"`
}

class _XmfHTMLGumpColor:

args = [_int] * 4 + [_uint] + [_int] * 5
container = 'XmfHTMLGumpColor'
keys = ('X', 'Y', 'Width', 'Height', 'ClilocID', 'Background', 'Scrollbar',
        'Hue', 'Page', 'ElemNum')

type XmfHtmlGump

type XmfHtmlGump struct {
	X          int32 `bin:"le"`
	Y          int32 `bin:"le"`
	Width      int32 `bin:"le"`
	Height     int32 `bin:"le"`
	ClilocID   int32 `bin:"le"`
	Background int32 `bin:"le"`
	Scrollbar  int32 `bin:"le"`
	Page       int32 `bin:"le"`
	ElemNum    int32 `bin:"le"`
}

class _HtmlGump:

args = [_int] * 9
container = 'HtmlGump'
keys = ('X', 'Y', 'Width', 'Height', 'TextID', 'Background', 'Scrollbar',
        'Page', 'ElemNum')

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL