Adding modding folder with a hacked build.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package resource
|
||||
|
||||
// LocalizedResourcesList is a collection of localized resources.
|
||||
// it exists to provide a typical implementation of a Selector.
|
||||
type LocalizedResourcesList []LocalizedResources
|
||||
|
||||
// Filter returns all resources that match the given parameters.
|
||||
func (list LocalizedResourcesList) Filter(lang Language, id ID) List {
|
||||
var result List
|
||||
for _, localized := range list {
|
||||
if localized.Language.Includes(lang) {
|
||||
if res, err := localized.Viewer.View(id); err == nil {
|
||||
result = result.With(res)
|
||||
}
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user