Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeppySolver ¶
type DeppySolver struct {
// contains filtered or unexported fields
}
DeppySolver is a simple solver implementation that takes an entity source group and a constraint aggregator to produce a Solution (or error if no solution can be found)
func NewDeppySolver ¶
func NewDeppySolver(entitySourceGroup *entitysource.Group, constraintAggregator *constraints.ConstraintAggregator) (*DeppySolver, error)
type Solution ¶
type Solution map[entitysource.EntityID]bool
Solution is returned by the Solver when a solution could be found it can be queried by EntityID to see if the entity was selected (true) or not (false) by the solver
Click to show internal directories.
Click to hide internal directories.