19 lines
422 B
Go
19 lines
422 B
Go
package world
|
|
|
|
import (
|
|
"github.com/inkyblackness/hacked/ss1/resource"
|
|
"github.com/inkyblackness/hacked/ss1/world/ids"
|
|
)
|
|
|
|
// ResourceViewStrategy returns a strategy that is typical for the game.
|
|
func ResourceViewStrategy() resource.ViewStrategy {
|
|
return defaultResources{}
|
|
}
|
|
|
|
type defaultResources struct{}
|
|
|
|
func (def defaultResources) IsCompoundList(id resource.ID) bool {
|
|
info, _ := ids.Info(id)
|
|
return info.List
|
|
}
|