Documentation ¶
Index ¶
- Variables
- type Account
- type Bolt
- func (b Bolt) CreateAccount(account *Account) (uint32, error)
- func (b Bolt) CreatePlayer(account *Account, position byte, player *block.Player) (uint32, error)
- func (b Bolt) GetAccountPlayers(account *Account) ([3]*block.Player, error)
- func (b Bolt) GetGroupInfo(id uint32) *block.GroupInfo
- func (b Bolt) GetLobbies(serverId uint32) []*block.Lobby
- func (b Bolt) GetPlayer(id uint32) (*block.Player, error)
- func (b Bolt) GetPlayerSettings(id uint32) *block.PlayerSettings
- func (b Bolt) GetRankUrls() []*block.RankUrl
- func (b Bolt) GetServerNews() []*block.News
- func (b Bolt) Login(account *Account) (*Account, error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPlayerSettings = []byte{}/* 1300 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type Bolt ¶
type Bolt struct {
// contains filtered or unexported fields
}
func (Bolt) CreatePlayer ¶
func (Bolt) GetAccountPlayers ¶
func (Bolt) GetPlayerSettings ¶
func (b Bolt) GetPlayerSettings(id uint32) *block.PlayerSettings
func (Bolt) GetRankUrls ¶
func (Bolt) GetServerNews ¶
type Storage ¶
type Storage interface { CreateAccount(account *Account) (uint32, error) Login(account *Account) (*Account, error) CreatePlayer(account *Account, position byte, player *block.Player) (uint32, error) GetServerNews() []*block.News GetRankUrls() []*block.RankUrl GetAccountPlayers(account *Account) ([3]*block.Player, error) GetGroupInfo(id uint32) *block.GroupInfo GetPlayerSettings(id uint32) *block.PlayerSettings GetPlayer(id uint32) (*block.Player, error) GetLobbies(serverId uint32) []*block.Lobby }
Click to show internal directories.
Click to hide internal directories.