Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
*gamepacket.ServerConn
// contains filtered or unexported fields
}
Conn holds the state for a connection to the server.
type Options ¶
type Options struct {
Logger zerolog.Logger
TopologyClient topologypbconnect.TopologyServiceClient
AccountsService *accounts.Service
PangyaIFF *iff.Archive
ServerID uint32
ChannelName string
ConfigProvider gameconfig.Provider
}
Options specify the options used to construct the game server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides an implementation of the PangYa game server.
type WeightedRand ¶ added in v0.0.3
type WeightedRand struct {
// contains filtered or unexported fields
}
func NewWeightedRand ¶ added in v0.0.3
func NewWeightedRand() *WeightedRand
func (*WeightedRand) Add ¶ added in v0.0.3
func (w *WeightedRand) Add(value uint32, weight int64) error
func (*WeightedRand) Choose ¶ added in v0.0.3
func (w *WeightedRand) Choose() uint32
Click to show internal directories.
Click to hide internal directories.