func (c *ComponentChest) ConstantNames() []string {
	if !c.initialized {
		return nil
	}
	var result []string
	for name := range c.constants {
		result = append(result, name)
	}
	sort.Strings(result)
	return result
}
ConstantNames returns all of the names of constants in this chest that would
return something from Constant().
package boardgame
import (
	"errors"
	"sort"
	"github.com/jkomoros/boardgame/enum"
)
type ComponentChest struct {
	initialized bool
	deckNames   []string
	decks       map[string]*Deck
	constants   map[string]interface{}
	enums       *enum.Set
	manager *GameManager
}
func newComponentChest(enums *enum.Set) *ComponentChest {
	if enums == nil {
		enums = enum.NewSet()
	}
	enums.Finish()
	return &ComponentChest{
		enums: enums,
	}
}
func (c *ComponentChest) Enums() *enum.Set {
	return c.enums
}
func (c *ComponentChest) Manager() *GameManager {
	return c.manager
}
func (c *ComponentChest) DeckNames() []string {
	if !c.initialized {
		return nil
	}
	return c.deckNames
}
func (c *ComponentChest) Deck(name string) *Deck {
	if !c.initialized {
		return nil
	}
	return c.decks[name]
}