Documentation ¶
Index ¶
- func Max(x, y uint32) uint32
- func Min(x, y uint32) uint32
- type IdManager
- func (manager *IdManager) IsAsteroidsId(id uint32) bool
- func (manager *IdManager) IsBotsId(id uint32) bool
- func (manager *IdManager) IsPlayerId(id uint32) bool
- func (manager *IdManager) NextAsteroidsId() uint32
- func (manager *IdManager) NextBotId() uint32
- func (manager *IdManager) NextPlayerId() uint32
- type UserNamesRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IdManager ¶
type IdManager struct {
// contains filtered or unexported fields
}
func NewIdManager ¶
func NewIdManager() *IdManager
func (*IdManager) IsAsteroidsId ¶
func (*IdManager) IsPlayerId ¶
func (*IdManager) NextAsteroidsId ¶
func (*IdManager) NextPlayerId ¶
type UserNamesRegistry ¶
type UserNamesRegistry struct {
// contains filtered or unexported fields
}
func NewUserNameRegistry ¶
func NewUserNameRegistry() *UserNamesRegistry
func (*UserNamesRegistry) AddUserName ¶
func (registry *UserNamesRegistry) AddUserName(id uint32, userName string)
func (*UserNamesRegistry) GetUserName ¶
func (registry *UserNamesRegistry) GetUserName(id uint32) string
Click to show internal directories.
Click to hide internal directories.