Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -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
}