Documentation
¶
Index ¶
- Constants
- func GetBytes(b PieceInternal) []byte
- type AccountPlayerInternal
- type AccountPlayers
- type AccountPlayersInternal
- type AccountingInit
- type AccountingInitInternal
- type Authentication
- type AuthenticationInternal
- type Block
- type Body
- type Byte
- type ByteInternal
- type ChatMessage
- type ChatMessageInternal
- type CreateRoom
- type CreateRoomInternal
- type GenericBody
- type GroupInfo
- type GroupInfoInternal
- type Header
- type JoinLobby
- type JoinLobbyInternal
- type JoinRoomRequest
- type JoinRoomResponse
- type JoinRoomResponseInternal
- type Link
- type Lobbies
- type LobbiesInternal
- type Lobby
- type LobbyInternal
- type MessageToGroup
- type News
- type NewsInternal
- type Piece
- type PieceInternal
- type Pieces
- type Player
- type PlayerCreate
- type PlayerCreateInternal
- type PlayerExtended
- type PlayerExtendedInternal
- type PlayerExtraSettings
- type PlayerExtraSettingsInternal
- type PlayerFriends
- type PlayerFriendsInternal
- type PlayerIdResponse
- type PlayerIdResponseInternal
- type PlayerInternal
- type PlayerLink
- type PlayerLinkInternal
- type PlayerParticipateResponse
- type PlayerParticipateResponseInternal
- type PlayerRoomData
- type PlayerSelected
- type PlayerSettings
- type PlayerSettingsHeader
- type PlayerSettingsHeaderInternal
- type PlayerSettingsInternal
- type RankUrl
- type RankUrlInternal
- type RankUrlsHeader
- type RankUrlsInternal
- type Room
- type RoomInternal
- type RoomParticipation
- type RoomParticipationInternal
- type RoomPlayerInternal
- type RoomPlayerLinkInternal
- type RoomPlayerLinks
- type RoomPlayerLinksInternal
- type RoomPlayerParticipationInternal
- type RoomTeam
- type Server
- type ServerInternal
- type ServerTime
- type ServerTimeInternal
- type Uint32
- type Uint32Internal
- type Void
- type VoidInternal
Constants ¶
View Source
const BadPassword = 0xfffffdda
View Source
const CouldNotEnterLobby = 0xfffffe09
View Source
const DoesntExist = 0x00000001
View Source
const GeneralError = 0xffffffff
View Source
const MAX_BLOCK_DATA_SIZE = 1024
View Source
const Ok = 0
View Source
const PlayerNameExists = 0xfffffefc
View Source
const RoomFull = 0xfffffe09
View Source
const VerificationError = 0xffffff10
Variables ¶
This section is empty.
Functions ¶
func GetBytes ¶
func GetBytes(b PieceInternal) []byte
Types ¶
type AccountPlayerInternal ¶
type AccountPlayers ¶
type AccountPlayers struct {
Players [3]*Player
}
type AccountPlayersInternal ¶
type AccountPlayersInternal struct { Zero uint32 AccountPlayersInternal [3]AccountPlayerInternal }
type AccountingInit ¶
type AccountingInit struct { }
type AccountingInitInternal ¶
type AccountingInitInternal struct {
Unknown [16]byte
}
type Authentication ¶
type Authentication struct { Key string PasswordHash []byte Password string Unknown []byte RosterHash []byte }
func NewAuthentication ¶
func NewAuthentication(b *Block) Authentication
func (Authentication) GetPasswordHash ¶
func (info Authentication) GetPasswordHash() []byte
type AuthenticationInternal ¶
type AuthenticationInternal struct {
Data [80]byte
}
type Block ¶
func GetBlocksFromPieces ¶
type ByteInternal ¶
type ByteInternal struct {
Value byte
}
type ChatMessage ¶
type ChatMessage struct { Place byte // lobby = 0, or room = 1 Channel byte // 1 = to lobby, 2, 3 = private, 4 = group, 5 = playing, 7 = in-game, 8 = room, 9 = team PlayerId uint32 PlayerName string Message string }
func NewChatMessage ¶
func NewChatMessage(b *Block, playerName string) *ChatMessage
type ChatMessageInternal ¶
type CreateRoom ¶
func NewCreateRoom ¶
func NewCreateRoom(b *Block) CreateRoom
type CreateRoomInternal ¶
type GenericBody ¶
type GenericBody struct {
Data []byte
}
func (GenericBody) GetBytes ¶
func (body GenericBody) GetBytes() []byte
type GroupInfoInternal ¶
type JoinLobby ¶
func NewJoinLobby ¶
type JoinLobbyInternal ¶
type JoinRoomRequest ¶
func NewJoinRoomRequest ¶
func NewJoinRoomRequest(b *Block) JoinRoomRequest
type JoinRoomResponse ¶
type LobbiesInternal ¶
type LobbiesInternal struct { NumLobbies uint16 LobbiesInternal []LobbyInternal }
type Lobby ¶
func (*Lobby) RemoveRoom ¶
type LobbyInternal ¶
type MessageToGroup ¶
type MessageToGroup struct {
// contains filtered or unexported fields
}
type NewsInternal ¶
type PieceInternal ¶
type PieceInternal interface { }
type Player ¶
type Player struct { Id uint32 Category uint16 Points uint32 MatchPoints uint32 MatchesPlayed uint16 Victories uint16 Defeats uint16 Draws uint16 WinningStreak uint16 BestStreak uint16 Disconnections uint16 Division byte Teams [5]uint16 GoalsScored uint32 GoalsReceived uint32 TimePlayed uint32 LastLogin uint32 Position uint32 OldCategory uint32 OldPoints uint32 Name string Comment string Lang uint16 Settings []byte LoggedIn bool Admin int RoomId uint32 GameStatus byte GroupId uint32 GroupName string GroupStatus byte RoomData *PlayerRoomData Link *Link }
func (*Player) ResetRoomData ¶
func (info *Player) ResetRoomData()
type PlayerCreate ¶
func NewPlayerCreate ¶
func NewPlayerCreate(b *Block) PlayerCreate
type PlayerCreateInternal ¶
type PlayerCreateInternal struct {
// contains filtered or unexported fields
}
type PlayerExtended ¶
type PlayerExtended struct {
*Player
}
type PlayerExtendedInternal ¶
type PlayerExtendedInternal struct { Zero uint32 Id uint32 Name [48]byte GroupId uint32 GroupName [48]byte GroupStatus byte Division byte Points uint32 Category uint16 MatchesPlayed uint16 Victories uint16 Defeats uint16 Draws uint16 WinningStreak uint16 BestStreak uint16 Disconnections uint16 GoalsScored uint32 GoalsReceived uint32 Comment [256]byte Position uint32 // uint16's could have to do with medals Unknown2 [12]byte Lang uint16 LastTeams [5]uint16 }
type PlayerExtraSettings ¶
type PlayerFriends ¶
type PlayerFriends struct { }
type PlayerFriendsInternal ¶
type PlayerFriendsInternal struct { }
type PlayerIdResponse ¶
type PlayerIdResponse struct { }
type PlayerInternal ¶
type PlayerInternal struct { Id uint32 Name [48]byte GroupId uint32 GroupName [48]byte GroupStatus byte Division byte RoomId uint32 // Not clear whether this could be the room id, we will fill it with ff's Points uint32 Category uint16 MatchesPlayed uint16 Victories uint16 Defeats uint16 Draws uint16 Lang uint16 GameStatus byte // 0 = idle, 1 = competition }
type PlayerLink ¶
type PlayerLink struct {
Player *Player
}
type PlayerLinkInternal ¶
type PlayerRoomData ¶
type PlayerSelected ¶
func NewPlayerSelected ¶
func NewPlayerSelected(b *Block) PlayerSelected
type PlayerSettings ¶
type PlayerSettings struct {
Settings []byte
}
type PlayerSettingsHeader ¶
type PlayerSettingsHeader struct {
PlayerId uint32
}
type PlayerSettingsInternal ¶
type PlayerSettingsInternal struct {
Settings [1300]byte
}
type RankUrlInternal ¶
type RankUrlsHeader ¶
type RankUrlsHeader struct { }
type RankUrlsInternal ¶
type RankUrlsInternal struct {
Unknown [8]byte
}
type Room ¶
type Room struct { Id uint32 Type byte Phase byte Name string Time byte Players []*Player Teams [2]RoomTeam HasPassword byte Password string MatchType byte ChatLevel byte }
func GetRoomsSlice ¶
func (*Room) GetNumPlayers ¶
func (*Room) HasPlayers ¶
func (*Room) RemovePlayer ¶
type RoomInternal ¶
type RoomParticipation ¶
type RoomParticipation Room
func NewRoomParticipation ¶
func NewRoomParticipation(room *Room) *RoomParticipation
type RoomParticipationInternal ¶
type RoomParticipationInternal struct {
Players [4]RoomPlayerParticipationInternal
}
type RoomPlayerInternal ¶
type RoomPlayerLinkInternal ¶
type RoomPlayerLinks ¶
type RoomPlayerLinks Room
func NewRoomPlayerLinks ¶
func NewRoomPlayerLinks(room *Room) *RoomPlayerLinks
type RoomPlayerLinksInternal ¶
type RoomPlayerLinksInternal struct {
Internals []RoomPlayerLinkInternal
}
type ServerInternal ¶
type ServerTime ¶
type ServerTimeInternal ¶
type ServerTimeInternal struct {
Time uint32
}
type Uint32Internal ¶
type Uint32Internal struct {
Value uint32
}
type VoidInternal ¶
type VoidInternal struct { }
Source Files
¶
- account.go
- accountingInit.go
- authentication.go
- block.go
- byte.go
- chatMessage.go
- constants.go
- createRoom.go
- groupInfo.go
- joinLobby.go
- joinRoom.go
- lobby.go
- messageToGroup.go
- news.go
- piece.go
- player.go
- playerCreate.go
- playerExtended.go
- playerExtraSettings.go
- playerFriends.go
- playerIdResponse.go
- playerLink.go
- playerParticipateResponse.go
- playerSelected.go
- playerSettings.go
- rankUrl.go
- rankUrlsHeader.go
- room.go
- server.go
- time.go
- uint32.go
- void.go
Click to show internal directories.
Click to hide internal directories.