func (p *PlayerColor) ValidConfiguration(example boardgame.State) error {
	if p.container == nil {
		return errors.New("ConnectBehavior hasn't been called. See the behaviors package doc for more on initializing Connectable behaviors")
	}
	return nil
}
ValidConfiguration returns an error if ConnectBehavior hasn't yet been called.
package behaviors
import (
	"errors"
	"github.com/jkomoros/boardgame"
	"github.com/jkomoros/boardgame/enum"
)
const colorPropertyName = "Color"
type PlayerColor struct {
	container boardgame.SubState
	Color     enum.Val `enum:"color"`
}
func (p *PlayerColor) ConnectBehavior(containgSubState boardgame.SubState) {
	p.container = containgSubState
}