Documentation ¶
Index ¶
- func PacketPlayerEnterGame(plr Data, channelID int32) mpacket.Packet
- type Data
- func (d Data) AP() int16
- func (d Data) AccountID() int32
- func (d *Data) AddEquip(item item.Data)
- func (d Data) CashSlotSize() byte
- func (d Data) ChairID() int32
- func (d Data) CheckPos(pos pos.Data, xRange, yRange int16) bool
- func (d Data) Conn() mnet.Client
- func (d Data) Dex() int16
- func (d Data) DisplayBytes() []byte
- func (d Data) EquipSlotSize() byte
- func (d Data) EtcSlotSize() byte
- func (d Data) Exp() int32
- func (d Data) Face() int32
- func (d Data) Fame() int16
- func (d Data) Gender() byte
- func (d *Data) GiveAP(amount int16)
- func (d *Data) GiveDex(amount int16)
- func (d *Data) GiveEXP(amount int32, fromMob, fromParty bool)
- func (d *Data) GiveHP(amount int16)
- func (d *Data) GiveInt(amount int16)
- func (d *Data) GiveItem(newItem item.Data, db *sql.DB) error
- func (d *Data) GiveLevel(amount byte)
- func (d *Data) GiveLuk(amount int16)
- func (d *Data) GiveMP(amount int16)
- func (d *Data) GiveMesos(amount int32)
- func (d *Data) GiveSP(amount int16)
- func (d *Data) GiveStr(amount int16)
- func (d Data) Guild() string
- func (d Data) HP() int16
- func (d Data) Hair() int32
- func (d Data) ID() int32
- func (d Data) InstanceID() int
- func (d Data) Int() int16
- func (d Data) Job() int16
- func (d *Data) LastAttackPacketTime() int64
- func (d Data) Level() byte
- func (d Data) Luk() int16
- func (d Data) MP() int16
- func (d Data) MapID() int32
- func (d Data) MapPos() byte
- func (d Data) MaxHP() int16
- func (d Data) MaxMP() int16
- func (d Data) Mesos() int32
- func (d Data) MiniGameDraw() int32
- func (d Data) MiniGameLoss() int32
- func (d Data) MiniGamePoints() int32
- func (d Data) MiniGameWins() int32
- func (d *Data) MoveItem(start, end, amount int16, invID byte, inst instance, db *sql.DB) error
- func (d Data) Name() string
- func (d Data) PortalCount() byte
- func (d Data) Pos() pos.Data
- func (d Data) PreviousMap() int32
- func (d Data) SP() int16
- func (d Data) Save(db *sql.DB) error
- func (d Data) Send(packet mpacket.Packet)
- func (d *Data) SetAP(amount int16)
- func (d *Data) SetCashSlotSize(size byte)
- func (d *Data) SetDex(amount int16)
- func (d *Data) SetEXP(amount int32)
- func (d *Data) SetEquipSlotSize(size byte)
- func (d *Data) SetEtcSlotSize(size byte)
- func (d *Data) SetFame(amount int16)
- func (d *Data) SetGuild(name string)
- func (d *Data) SetHP(amount int16)
- func (d *Data) SetInstance(inst interface{})
- func (d *Data) SetInt(amount int16)
- func (d *Data) SetJob(id int16)
- func (d *Data) SetLastAttackPacketTime(t int64)
- func (d *Data) SetLevel(amount byte)
- func (d *Data) SetLuk(amount int16)
- func (d *Data) SetMP(amount int16)
- func (d *Data) SetMapID(id int32)
- func (d *Data) SetMapPosID(pos byte)
- func (d *Data) SetMaxHP(amount int16)
- func (d *Data) SetMaxMP(amount int16)
- func (d *Data) SetMesos(amount int32)
- func (d *Data) SetMiniGameDraw(v int32)
- func (d *Data) SetMiniGameLoss(v int32)
- func (d *Data) SetMiniGamePoints(v int32)
- func (d *Data) SetMiniGameWins(v int32)
- func (d *Data) SetPos(pos pos.Data)
- func (d *Data) SetSP(amount int16)
- func (d *Data) SetSetUpSlotSize(size byte)
- func (d *Data) SetStr(amount int16)
- func (d *Data) SetUseSlotSize(size byte)
- func (d Data) SetupSlotSize() byte
- func (d Data) Skills() map[int32]Skill
- func (d Data) Skin() byte
- func (d Data) Stance() byte
- func (d Data) Str() int16
- func (d *Data) TakeItem(itemID int32, amount int16) (item.Data, error)
- func (d *Data) UpdateGuildInfo()
- func (d *Data) UpdateMovement(frag movementFrag)
- func (d *Data) UpdateSkill(updatedSkill Skill)
- func (d Data) Use() []item.Data
- func (d Data) UseSlotSize() byte
- func (d Data) WorldID() byte
- type Skill
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data connected to server
func GetCharactersFromAccountWorldID ¶
GetCharactersFromAccountWorldID - characters under a specific account
func LoadFromID ¶
LoadFromID - player id to load from database
func (Data) DisplayBytes ¶
DisplayBytes used in packets for displaying Data in various situations e.g. in field, in mini game room
func (Data) InstanceID ¶
InstanceID - field instance id the Data is currently on
func (*Data) LastAttackPacketTime ¶
LastAttackPacketTime of player
func (Data) MiniGamePoints ¶
MiniGamePoints between omok and memory
func (*Data) MoveItem ¶
MoveItem from one slot to another, if the final slot is zero then this is a drop action
func (Data) PortalCount ¶
PortalCount of Data, used in detecting warp hacking
func (*Data) SetLastAttackPacketTime ¶
SetLastAttackPacketTime of player
func (*Data) SetMiniGamePoints ¶
SetMiniGamePoints of data
func (*Data) UpdateMovement ¶
func (d *Data) UpdateMovement(frag movementFrag)
UpdateMovement - update Data from position data
Click to show internal directories.
Click to hide internal directories.