Documentation ¶
Index ¶
- func BuildAddChannelRoom(room *server.Room, needID bool, flag uint32) []byte
- func BuildChangTeam(id uint32, team uint8) []byte
- func BuildChannelMessage(name, message string) []byte
- func BuildCloseResultWindow() []byte
- func BuildConnectHost(ip uint32, port uint16) []byte
- func BuildCreateRoom(users []*user.UserInfo, caches []*user.UserCache, room *server.Room) []byte
- func BuildDeleteChannelRoom(roomID uint16) []byte
- func BuildHostItemUsing(userID uint32, itemID uint16, num uint8) []byte
- func BuildHostStop() []byte
- func BuildJoinHost(host uint32) []byte
- func BuildLeaveRoom(id uint32) []byte
- func BuildLobbyJoin(user *user.UserInfo) []byte
- func BuildLobbyLeave(userID uint32) []byte
- func BuildLobbyReply(users []user.UserInfo) []byte
- func BuildLoginReply() []byte
- func BuildNicknameReply() []byte
- func BuildPlayerJoin(u *user.UserCache, info *user.UserInfo) []byte
- func BuildRoomChannelInfo(room *server.Room, needID bool, flag uint32) []byte
- func BuildRoomList(rooms []server.Room) []byte
- func BuildRoomMessage(name, message string) []byte
- func BuildRoomResult(room *server.Room) []byte
- func BuildRoomSetting(room *server.Room, flags uint64) []byte
- func BuildServerList(servers []server.Server) []byte
- func BuildSetHost(id uint32, isHost uint8) []byte
- func BuildSetUserInventory(u *user.UserCache) []byte
- func BuildStartRoom(id uint32) []byte
- func BuildUDPHolepunch(index uint16) []byte
- func BuildUpdateChannelRoom(room *server.Room, needID bool, flag uint32) []byte
- func BuildUserBag(bags [3]user.UserLoadout) []byte
- func BuildUserBuymenu(buymenu *user.UserBuyMenu) []byte
- func BuildUserCosmetics(cosmetics [5]user.UserCosmetics) []byte
- func BuildUserInfo(info OUTUserInfo, needID bool, flags uint32) []byte
- func BuildUserInventory(inventory *user.Inventory) []byte
- func BuildUserNetInfo(u *user.UserCache) []byte
- func BuildUserOptions(user *user.UserInfo) []byte
- func BuildUserReadyStatus(id uint32, status uint8) []byte
- func BuildUserStart(id uint32, username, nickname []byte) []byte
- func OnSendMessage(seq uint8, client net.Conn, tp uint8, msg string)
- func UDPBuild(seq uint8, isHost uint8, userid uint32, ip uint32, port uint16) []byte
- type OUTUserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAddChannelRoom ¶
func BuildChangTeam ¶
func BuildChannelMessage ¶
func BuildCloseResultWindow ¶
func BuildCloseResultWindow() []byte
func BuildConnectHost ¶
func BuildCreateRoom ¶
func BuildDeleteChannelRoom ¶
func BuildHostStop ¶
func BuildHostStop() []byte
func BuildJoinHost ¶
func BuildLeaveRoom ¶
func BuildLobbyJoin ¶
func BuildLobbyLeave ¶
func BuildLobbyReply ¶
func BuildLoginReply ¶
func BuildLoginReply() []byte
func BuildNicknameReply ¶
func BuildNicknameReply() []byte
func BuildRoomChannelInfo ¶
func BuildRoomList ¶
func BuildRoomMessage ¶
func BuildRoomResult ¶
func BuildServerList ¶
func BuildSetHost ¶
func BuildSetUserInventory ¶
func BuildStartRoom ¶
func BuildUDPHolepunch ¶
func BuildUpdateChannelRoom ¶
func BuildUserBag ¶
func BuildUserBag(bags [3]user.UserLoadout) []byte
func BuildUserBuymenu ¶
func BuildUserBuymenu(buymenu *user.UserBuyMenu) []byte
func BuildUserCosmetics ¶
func BuildUserCosmetics(cosmetics [5]user.UserCosmetics) []byte
func BuildUserInfo ¶
func BuildUserInfo(info OUTUserInfo, needID bool, flags uint32) []byte
func BuildUserInventory ¶
func BuildUserNetInfo ¶
func BuildUserOptions ¶
func BuildUserReadyStatus ¶
func BuildUserStart ¶
Types ¶
type OUTUserInfo ¶
type OUTUserInfo struct { UserID uint32 //flags uint32 // should always be 0xFFFFFFFF for a full update Unk00 uint8 UserName string NickName string Unk01 uint8 Unk02 uint8 Unk03 uint8 Level uint8 Unk04 uint8 CurExp uint64 MaxExp uint64 Points uint64 PlayedMatches uint32 Wins uint32 Kills uint32 Deaths uint32 Headshots uint32 Unk05 uint32 Regionname string Unk06 uint16 Unk07 uint16 Unk08 uint16 NetCafeName string Unk09 uint32 Unk10 uint8 Unk11 uint32 Unk12 uint32 Unk13 string Unk14 uint8 Unk15 uint8 Unk16 uint8 Unk17 uint8 Rank uint32 Unk19 uint8 Campaign uint8 Unk21 uint16 Unk22 uint32 Unk23 uint16 Unk24 uint32 Unk25 [128]uint8 ChatTimes uint8 Unk28 uint32 }
发送出去的包结构,其中一些未知,知道后会加入user里去
func NewUserInfo ¶
func NewUserInfo(u *user.UserInfo) OUTUserInfo
Source Files ¶
- bag.go
- buymenu.go
- changeroomteam.go
- closeresult.go
- connecthost.go
- cosmetics.go
- createRoom.go
- hoststop.go
- inventory.go
- itemuse.go
- joinhost.go
- leaveroom.go
- lobby.go
- loginreply.go
- message.go
- netinfo.go
- newfriend.go
- option.go
- playjoin.go
- roomlist.go
- roomresult.go
- roomsetting.go
- serverlist.go
- sethost.go
- setinventory.go
- startgame.go
- udp.go
- userInfo.go
- userroomstatus.go
- userstart.go
Click to show internal directories.
Click to hide internal directories.