Adding modding folder with a hacked build.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user