Documentation ¶
Index ¶
- Constants
- func BuildChangingTeam(id uint32, team uint8) []byte
- func BuildGameResult(u *User, boxids []uint32) []byte
- func BuildGameResultHeader(rm *Room) []byte
- func BuildHostStop() []byte
- func BuildItemUsing(uid uint32, itemid uint32, num int) []byte
- func BuildSetBuyMenu(id uint32, inventory *UserInventory) []byte
- func BuildSetUserInventory(u *User, destid uint32) []byte
- func BuildSetUserLoadout(u *User) []byte
- func GetGainExp(u *User, bot uint8) uint64
- func GetGainPoints(u *User, bot uint8) uint64
- func GetRandomBox() uint32
- func OnChangingTeam(p *PacketData, client net.Conn)
- func OnHost(p *PacketData, client net.Conn)
- func OnHostAssistPacket(p *PacketData, client net.Conn)
- func OnHostBuyItem(p *PacketData, client net.Conn)
- func OnHostDeathPacket(p *PacketData, client net.Conn)
- func OnHostGameEnd(p *PacketData, client net.Conn)
- func OnHostGameScorePacket(p *PacketData, client net.Conn)
- func OnHostGameStart(client net.Conn)
- func OnHostItemUsing(p *PacketData, client net.Conn)
- func OnHostKillPacket(p *PacketData, client net.Conn)
- func OnHostRevivedPacket(p *PacketData, client net.Conn)
- func OnHostSetUserBuyMenu(p *PacketData, client net.Conn)
- func OnHostSetUserInventory(p *PacketData, client net.Conn)
- func OnHostSetUserLoadout(p *PacketData, client net.Conn)
- func OnHostWeaponPoint(p *PacketData, client net.Conn)
Constants ¶
View Source
const ( WeaponsPoint = 3 UserKillOne = 7 UserDeath = 8 UserAssist = 9 GameScore = 10 //比分类 TeamChanging = 11 HostUnk00 = 12 //未知 BuyItem = 14 UserRevived = 20 OnGameEnd = 21 SetInventory = 101 // 不一定是101,可能其他的数据包 ItemUsing = 105 SetLoadout = 107 SetBuyMenu = 111 //kill类型 KillSelf = 0xFF //自杀 KillOne = 1 KillTeamCt = 2 KillTeamTr = 1 )
Variables ¶
This section is empty.
Functions ¶
func BuildChangingTeam ¶
func BuildGameResult ¶
func BuildGameResultHeader ¶
func BuildGameResultHeader(rm *Room) []byte
func BuildHostStop ¶
func BuildHostStop() []byte
func BuildSetBuyMenu ¶
func BuildSetUserInventory ¶
BuildSetUserInventory 建立要发给主机的玩家装备信息,按理来说应该是所有玩家的装备,待定,L-Leite是发的主机的装备加普通用户ID
func BuildSetUserLoadout ¶
func BuildSetUserLoadout(u *User) []byte
func GetGainExp ¶
func GetGainPoints ¶
func GetRandomBox ¶
func GetRandomBox() uint32
func OnChangingTeam ¶
func OnHostAssistPacket ¶
func OnHostBuyItem ¶
func OnHostDeathPacket ¶
func OnHostGameEnd ¶
func OnHostGameScorePacket ¶
func OnHostGameStart ¶
func OnHostItemUsing ¶
func OnHostKillPacket ¶
func OnHostRevivedPacket ¶
func OnHostSetUserBuyMenu ¶
func OnHostSetUserInventory ¶
OnHostSetUserInventory 用户发来请求将自己的装备信息发给指定user
func OnHostSetUserLoadout ¶
func OnHostWeaponPoint ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.