out

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAddChannelRoom

func BuildAddChannelRoom(room *server.Room, needID bool, flag uint32) []byte

func BuildChangTeam

func BuildChangTeam(id uint32, team uint8) []byte

func BuildChannelMessage

func BuildChannelMessage(name, message string) []byte

func BuildCloseResultWindow

func BuildCloseResultWindow() []byte

func BuildConnectHost

func BuildConnectHost(ip uint32, port uint16) []byte

func BuildCreateRoom

func BuildCreateRoom(users []*user.UserInfo, caches []*user.UserCache, room *server.Room) []byte

func BuildDeleteChannelRoom

func BuildDeleteChannelRoom(roomID uint16) []byte

func BuildHostItemUsing

func BuildHostItemUsing(userID uint32, itemID uint16, num uint8) []byte

func BuildHostStop

func BuildHostStop() []byte

func BuildJoinHost

func BuildJoinHost(host uint32) []byte

func BuildLeaveRoom

func BuildLeaveRoom(id uint32) []byte

func BuildLobbyJoin

func BuildLobbyJoin(user *user.UserInfo) []byte

func BuildLobbyLeave

func BuildLobbyLeave(userID uint32) []byte

func BuildLobbyReply

func BuildLobbyReply(users []user.UserInfo) []byte

func BuildLoginReply

func BuildLoginReply() []byte

func BuildNicknameReply

func BuildNicknameReply() []byte

func BuildPlayerJoin

func BuildPlayerJoin(u *user.UserCache, info *user.UserInfo) []byte

func BuildRoomChannelInfo

func BuildRoomChannelInfo(room *server.Room, needID bool, flag uint32) []byte

func BuildRoomList

func BuildRoomList(rooms []server.Room) []byte

func BuildRoomMessage

func BuildRoomMessage(name, message string) []byte

func BuildRoomResult

func BuildRoomResult(room *server.Room) []byte

func BuildRoomSetting

func BuildRoomSetting(room *server.Room, flags uint64) []byte

func BuildServerList

func BuildServerList(servers []server.Server) []byte

func BuildSetHost

func BuildSetHost(id uint32, isHost uint8) []byte

func BuildSetUserInventory

func BuildSetUserInventory(u *user.UserCache) []byte

func BuildStartRoom

func BuildStartRoom(id uint32) []byte

func BuildUDPHolepunch

func BuildUDPHolepunch(index uint16) []byte

func BuildUpdateChannelRoom

func BuildUpdateChannelRoom(room *server.Room, needID bool, flag uint32) []byte

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 BuildUserInventory(inventory *user.Inventory) []byte

func BuildUserNetInfo

func BuildUserNetInfo(u *user.UserCache) []byte

func BuildUserOptions

func BuildUserOptions(user *user.UserInfo) []byte

func BuildUserReadyStatus

func BuildUserReadyStatus(id uint32, status uint8) []byte

func BuildUserStart

func BuildUserStart(id uint32, username, nickname []byte) []byte

func OnSendMessage

func OnSendMessage(seq uint8, client net.Conn, tp uint8, msg string)

func UDPBuild

func UDPBuild(seq uint8, isHost uint8, userid uint32, ip uint32, port uint16) []byte

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

Jump to

Keyboard shortcuts

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