-
Notifications
You must be signed in to change notification settings - Fork 38
/
session.go
28 lines (24 loc) · 922 Bytes
/
session.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package events
import (
sprotocol "github.com/paralin/go-steam/protocol/gamecoordinator"
gcsdkm "github.com/paralin/go-dota2/protocol"
)
// GCConnectionStatusChanged is emitted when the client connection state is updated.
type GCConnectionStatusChanged struct {
// OldState contains the old connection status.
OldState gcsdkm.GCConnectionStatus
// NewState contains the new connection status.
NewState gcsdkm.GCConnectionStatus
// Update contains the message from the server that triggered this change, may be nil.
Update *gcsdkm.CMsgConnectionStatus
}
// ClientWelcomed is emitted when the client receives the GC welcome
type ClientWelcomed struct {
// Welcome is the welcome message from the GC.
Welcome *gcsdkm.CMsgClientWelcome
}
// UnhandledGCPacket is called when the client ignores an unhandled packet.
type UnhandledGCPacket struct {
// Packet is the unhandled packet.
Packet *sprotocol.GCPacket
}