Documentation
¶
Index ¶
- type Config
- type Match
- func (m *Match) AddPlayer(p *player.Player) error
- func (m *Match) Alive() []*player.Player
- func (m *Match) Done() <-chan struct{}
- func (m *Match) GameID() string
- func (m *Match) ID() string
- func (m *Match) Players() []*player.Player
- func (m *Match) Start()
- func (m *Match) State() framework.MatchState
- type SkyWars
- func (s *SkyWars) ChestFiller(chestType framework.ChestType) []map[string]int
- func (s *SkyWars) Config() *Config
- func (s *SkyWars) CreateMatch(id string, arena framework.Arena, players []*player.Player) framework.Match
- func (s *SkyWars) Description() string
- func (s *SkyWars) ID() string
- func (s *SkyWars) LoadConfig(data []byte) error
- func (s *SkyWars) MaxPlayers() int
- func (s *SkyWars) MinPlayers() int
- func (s *SkyWars) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ID string `yaml:"id"`
MinPlayers int `yaml:"min_players"`
MaxPlayers int `yaml:"max_players"`
CountdownSeconds int `yaml:"countdown_seconds"`
GameDurationSeconds int `yaml:"game_duration_seconds"`
GracePeriodSeconds int `yaml:"grace_period_seconds"`
InvincibilitySeconds int `yaml:"invincibility_seconds"`
AutoRefillChests bool `yaml:"auto_refill_chests"`
RefillInterval int `yaml:"refill_interval_seconds"`
DropLootOnDeath bool `yaml:"drop_loot_on_death"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
type Match ¶
type Match struct {
// contains filtered or unexported fields
}
func (*Match) State ¶
func (m *Match) State() framework.MatchState
type SkyWars ¶
type SkyWars struct {
// contains filtered or unexported fields
}
func (*SkyWars) ChestFiller ¶
func (*SkyWars) CreateMatch ¶
func (*SkyWars) Description ¶
func (*SkyWars) LoadConfig ¶
func (*SkyWars) MaxPlayers ¶
func (*SkyWars) MinPlayers ¶
Click to show internal directories.
Click to hide internal directories.