package
1.6.0
Repository: https://github.com/ancientice/gowarcraft3.git
Documentation: pkg.go.dev

# Functions

Deserialize reads exactly one packet from b and returns it in the proper (deserialized) packet type.
NewDecoder initialization.
NewEncoder initialization.
NewFactoryCache initializes CacheFactory.
Read exactly one packet from r and returns it in the proper (deserialized) packet type.
Serialize serializes p and returns its byte representation.
Write serializes p and writes it to w.

# Constants

AI difficulty.
AI difficulty.
AI difficulty.
CurrentGameVersion used by stable release.
Game flags.
Game flags.
Game flags.
Game flags.
Used for filtering game list.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Game flags.
Before Reforged, all team modes shared a ladder.
Game flags.
Slot layout.
Slot layout.
Slot layout.
Slot layout.
PlayerLeft reason.
PlayerLeft reason.
(?).
PlayerLeft reason.
PlayerLeft reason.
PlayerLeft reason.
PlayerLeft reason.
PlayerLeft reason.
Chat type.
Chat type.
Chat type.
Chat type.
Chat type.
Chat type.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
W3GS packet type identifiers.
PlayerExtra record type.
PlayerExtra record type.
PlayerExtra record type.
PlayerExtra record type.
ProtocolSig is the W3GS magic number used in the packet header.
Race preference.
Race preference.
Race preference.
Race preference.
Race preference.
Race preference.
Race preference.
Race preference.
Realms.
Realms.
Realms.
Realms.
RejectJoin reason.
RejectJoin reason.
RejectJoin reason.
RejectJoin reason.
Message scope.
Message scope.
Directed chat to player N = Scope - ChatDirected, if Scope >= ChatDirected.
Message scope.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Game setting flags.
Slot status.
Slot status.
Slot status.

# Variables

DefaultFactory maps packet ID to matching type.
Errors.
Errors.
Errors.
Errors.
Errors.
Demo.
ROC.
TFT.

# Structs

CacheFactory implements a PacketFactory that will only create a type once.
CountDownEnd implements the [0x0B] W3GS_COUNTDOWN_END packet (S -> C).
CountDownStart implements the [0x0A] W3GS_COUNTDOWN_START packet (S -> C).
CreateGame implements the [0x31] W3GS_CreateGame packet (S -> C).
Decoder keeps amortized allocs at 0 for repeated Packet.Deserialize calls.
DecreateGame implements the [0x33] W3GS_DecreateGame packet (S -> C).
Desync implements the [0x0D] W3GS_DESYNC packet (S -> C).
DropLaggers implements the [0x2F] W3GS_STOP_DROPREQ packet (C -> S).
Encoder keeps amortized allocs at 0 for repeated Packet.Serialize calls.
Encoding options for (de)serialization.
GameAction implements the [0x26] W3GS_OUTGOING_ACTION packet (C -> S).
GameInfo implements the [0x30] W3GS_GameInfo packet (S -> C).
GameLoaded implements the [0x23] W3GS_GAMELOADED_SELF packet (C -> S).
GameOver implements the [0x14] W3GS_GameOver packet (S -> C).
GameSettings stores the settings of a created game.
GameVersion stores the game version tuple.
Join implements the [0x1E] W3GS_ReqJoin packet (C -> S).
LagPlayer stores the data for a single lagging player.
Leave implements the [0x21] W3GS_LeaveReq packet (C -> S).
LeaveAck implements the [0x1B] W3GS_LeaveAck packet (S -> C).
MapCheck implements the [0x3D] W3GS_MapCheck packet (S -> C).
MapPart implements the [0x43] W3GS_MapPart packet (S -> C).
MapPartError implements the [0x45] W3GS_MapPartError packet (C -> S).
MapPartOK implements the [0x44] W3GS_MapPartOK packet (C -> S).
MapState implements the [0x42] W3GS_MapSize packet (C -> S).
Message implements the [0x28] W3GS_CHAT_TO_HOST packet (C -> S).
MessageRelay implements the [0x0F] W3GS_CHAT_FROM_HOST packet (S -> C).
PeerConnect implements the [0x37] W3GS_ClientInfo packet (C -> C).
PeerMessage implements the [0x34] W3GS_CHAT_FROM_OTHERS packet (C -> C).
PeerPing implements the [0x35] W3GS_PING_FROM_OTHERS packet (C -> C).
PeerPong implements the [0x36] W3GS_PONG_TO_OTHERS packet (C -> C).
PeerSet implements the [0x3B] W3GS_PEER_SET packet (C -> S).
Ping implements the [0x01] W3GS_PING_FROM_HOST packet (S -> C).
PlayerAction stores the data for a single game action.
PlayerData5 stores the info for a single battle.net player profile.
PlayerDataProfile stores the info for a single battle.net player profile.
PlayerDataSkin stores in-game skin info.
PlayerDataSkins stores the in-game skin usage for a single player.
PlayerExtra implements the [0x59] protobuf packet (C -> S, S -> C).
PlayerInfo implements the [0x06] W3GS_PlayerInfo packet (S -> C).
PlayerKicked implements the [0x1C] W3GS_PlayerKicked packet (S -> C).
PlayerLeft implements the [0x07] W3GS_PlayerLeft packet (S -> C).
PlayerLoaded implements the [0x08] W3GS_PlayerLoaded packet (S -> C).
Pong implements the [0x46] W3GS_PONG_TO_HOST packet (C -> S).
RefreshGame implements the [0x32] W3GS_RefreshGame packet (S -> C).
RejectJoin implements the [0x05] W3GS_RejectJoin packet (S -> C).
SearchGame implements the [0x2F] W3GS_SearchGame packet (C -> S).
SlotData stores the info for a single game slot.
SlotInfo implements the [0x09] W3GS_SlotInfo packet (S -> C).
SlotInfoJoin implements the [0x04] W3GS_SlotInfoJoin packet (S -> C).
StartDownload implements the [0x3F] W3GS_StartDownload packet (C -> S, S -> C).
StartLag implements the [0x10] W3GS_START_LAG packet (S -> C).
StopLag implements the [0x11] W3GS_STOP_LAG packet (S -> C).
TimeSlot implements the [0x0C] W3GS_INCOMING_ACTION packet (S -> C).
TimeSlotAck implements the [0x27] W3GS_OUTGOING_KEEPALIVE packet (C -> S).
UnknownPacket is used to store unknown packets.

# Interfaces

Packet interface.
PacketFactory returns a struct of the appropiate type for a packet ID.

# Type aliases

AI difficulty enum.
FactoryFunc creates new Packet.
GameFlags enum.
GameSettingFlags enum.
LeaveReason enum.
MapFactory implements PacketFactory using a map.
MessageScope enum.
MessageType enum.
PlayerExtraType enum.
ProfileRealm enum.
RacePref enum.
RejectReason enum.
SlotLayout enum.
SlotStatus enum.