Documentation ¶
Index ¶
Constants ¶
View Source
const ( PLAYER_HANDSHAKE = iota PLAYER_MOVEMENT PLAYER_SPAWN PLAYER_RESPAWN CHAT_NORMAL CHAT_PRIVATE SHOW_ITEMS MOB_ATTACK PLAYER_ATTACK MOB_MOVEMENT PET_MOVEMENT CHARACTER_DEATH ITEM_DROP BOSS_DROP DROP_DISAPPEAR BATTLE_MODE PVP_START PVP_FINISHED MEDITATION_MODE CAST_SKILL )
View Source
const (
HOUSTON_CH = "Houston"
)
Variables ¶
View Source
var DefaultOptions = server.Options{ Host: "127.0.0.1", Port: 4222, NoLog: false, NoSigs: false, MaxControlLine: 256, }
DefaultTestOptions are default options for the unit tests.
Functions ¶
func ConnectSelf ¶
func Connection ¶
func Connection() *nats.Conn
Types ¶
type CastPacket ¶
type CastPacket struct { CastNear bool `json:"cast_near"` CharacterID int `json:"character_id"` MobID int `json:"mob_id"` PetID int `json:"pet_id"` DropID int `json:"loot_id"` Location *struct { X float64 Y float64 } `json:"location"` MaxDistance float64 `json:"max_distance"` Data []byte `json:"data"` Type int8 `json:"type"` }
func (*CastPacket) Cast ¶
func (p *CastPacket) Cast() error
Click to show internal directories.
Click to hide internal directories.