-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.go
More file actions
27 lines (21 loc) · 759 Bytes
/
Copy pathoptions.go
File metadata and controls
27 lines (21 loc) · 759 Bytes
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
package dplay
// ServerOptions sets options, common to DirectPlay.
type ServerOptions struct {
// EnumResponseData returns application-specific data package
// for enum requests.
EnumResponseData func() []byte
// PlayerCount should return current player count for the server.
PlayerCount func() uint
// Name is this server's visible name.
Name string
// MaxPlayers imposes max upper limit on player count.
MaxPlayers uint
// IsPassworded is true if password is required to connect
// to the server.
IsPassworded bool
// ApplicationInstanceGUID is the instance GUID that
// identifies the game session. Refer to MS-DPDX 2.2.5.
ApplicationInstanceGUID []byte
// ApplicationGUID is the current application's GUID.
ApplicationGUID []byte
}