Versions in this module Expand all Collapse all v0 v0.1.0 Nov 8, 2026 Changes in this version + const WinnerChosen + const WinnerLoadOrder + const WinnerNeither + const WinnerPerEntry + const WinnerTop + const WinnerUnclear + var FreeOSMemory = true + func AddAssetNames(assets map[string]bool, target string) + func AddSettingValue(values *[]string, value string) + func AssetBasenames(assets map[string]bool) []string + func ConfigHolds(conditions []Config, schema map[string]Schema, config map[string]string) bool + func ConfigValue(raw json.RawMessage) (string, bool) + func ContentReference(_, rel string) string + func CropPackImage(root, fromFile string, x, y, w, h int) (string, error) + func DropParts() + func DynamicWhenHolds(when When, tokens []TokenDefinition, present map[string]bool, ...) bool + func Equal(a, b ModID) bool + func FlushMapScans(mods []Mod) + func FlushPackDiskCache(mods []Mod) + func FlushParts() + func Forget() + func HoldPacks() func() + func IsContentPatcherPack(im Mod) bool + func IsSupportingPack(im Mod, skip bool) bool + func IsTilesheetPack(im Mod, skip bool) bool + func IsTilesheetTarget(target string) bool + func LoadFileBytes(hit packHit, load Patch, target string) ([]byte, bool) + func ModMapFiles(im Mod) (paths []string, complete bool) + func NormalizeAsset(value string) string + func NormalizeTarget(s string) string + func PackSig(im Mod, pack Pack, present map[string]bool) (sig string, stable bool) + func PartKey(skip bool, fields ...string) string + func PreloadPacks(mods []Mod, read func(Mod) Pack) + func PresentFor(pack Pack, present map[string]bool) map[string]bool + func PrintableRuns(raw []byte) []string + func ReadPackConfig(folder string) map[string]string + func RecordMapUses(im Mod, candidates []Mod, assetsByID map[string]map[string]bool, ...) bool + func ReleasePacks(gen int) + func Reset() + func ResolveLoadFile(file, target string, tokens []Patch, present map[string]bool, ...) (string, bool) + func ScalarValue(v json.RawMessage) (string, bool) + func SetCacheRoot(dir string) + func SettingValueMatches(current string, condition Config) bool + func SplitTargets(s string) []string + func SupportingPackKeys(mods []Mod, skip bool) []string + func TmxImageSources(raw []byte) []string + type AssetMapPage struct + All int + Offset int + Shared int + Targets []AssetTarget + Total int + func AssetMapOf(index []AssetTarget, filter string, shared bool, offset int) AssetMapPage + type AssetTarget struct + Key string + Mods []AssetTouch + Target string + Winner ModID + func BuildAssetIndex(mods []Mod, order func([]Mod) []string) []AssetTarget + type AssetTouch struct + Action string + CanWin bool + DataKey string + Index int + LoadOrder int + ModID ModID + ModKey string + ModName string + Priority string + Source string + Winner bool + type Config struct + AllowMultiple bool + Field string + Values []string + type Conflict struct + Cells []string + Cosmetic bool + Evidence []Evidence + Farms [][]string + Fixes []Fix + Keys []string + Kind string + Names []string + Note *Note + Overridden []string + PackIDs []ModID + Target string + WinnerID ModID + WinnerKind string + WinnerName string + type Dependency struct + Required bool + UniqueID ModID + type DynamicCondition struct + Contains string + Expected bool + Name string + Values []string + type Evidence struct + Action string + CropH int + CropW int + CropX int + CropY int + FromArea string + FromFile string + Index int + Keys []string + PackID ModID + PackName string + Priority string + Source string + Target string + ToArea string + When When + func ConflictEvidence(kind string, hits []packHit) []Evidence + type Extension struct + Hints []Hint + type FileStamp struct + ModTime int64 + Path string + Size int64 + type Findings struct + Bundled map[string]ModRef + Conflicts []Conflict + Hints []Hint + Mentioned []string + Shadowed []Shadowed + Supporting []string + Tilesheets []TilesheetUse + TilesheetsUnreadable bool + func Analyze(req Request) Findings + type Fix struct + Current string + Field string + ID ModID + Key string + Name string + Value string + type FlagCondition struct + Name string + Present bool + type Hint struct + BecausePack string + Current string + CurrentFor string + DeadTarget string + Description string + Field string + For []ModID + ForNames []string + ID ModID + Key string + Name string + Suggested []string + Variant bool + type MapFileList struct + Complete bool + Paths []string + Stamp string + type MapScan struct + Has map[string]bool + Keys []string + ModTime int64 + Runs []string + Size int64 + func MapScanFor(path string, entry os.DirEntry, ext string) (MapScan, error) + type Mod struct + Author string + ContentPackFor ModID + Dependencies []Dependency + Enabled bool + Folder string + Key string + LoadAfter []ModID + Name string + UniqueID ModID + Version string + type ModID string + func SMAPI(uniqueID string) ModID + func (id ModID) Fold() string + func (id ModID) Format() string + func (id ModID) Local() string + type ModRef struct + Key string + Name string + type Note struct + Kind string + Value string + type Pack struct + Farms map[string]string + Files []FileStamp + Fingerprint string + Mentions map[string]bool + Patches []Patch + Schema map[string]Schema + SkipImages bool + Skips int + Tokens []TokenDefinition + Values map[string]string + func ReadPack(im Mod, skip bool) Pack + func ReadPackForCleanup(im Mod, skip bool) Pack + type PartEntry struct + Check int + Conflict *Conflict + Files []FileStamp + Settings []Hint + type PartsRun struct + Fresh map[string]PartEntry + Used map[string]bool + func NewPartsRun() *PartsRun + func (r *PartsRun) Commit() + func (r *PartsRun) Part(key string, stable bool, compute func() PartEntry) PartEntry + type Patch struct + Action string + Extra bool + FromFile string + Image bool + ImageDigest string + ImageFromArea string + Index int + Kind string + PatchMode string + Places map[string][]string + Priority string + Shapes []Shape + Source string + Spouse string + Target string + ToArea string + TokenName string + TokenValue string + When When + type Request struct + All []Mod + CacheRoot string + Enabled []Mod + Extend func(run *PartsRun, all []Mod) Extension + Order func([]Mod) []string + SkipImageOverlap bool + type Schema struct + AllowBlank bool + AllowMultiple bool + AllowValues []string + DefaultValue string + Description string + Key string + func (s Schema) BooleanToggle() bool + func (s Schema) Toggle() bool + type Shadowed struct + Bundled bool + By []ModRef + ID ModID + Key string + Name string + type Shape struct + Cells string + H int + Key string + Kind byte + Layer string + Tiny bool + Value string + W int + X int + Y int + type TilesheetUse struct + Enabled bool + ID ModID + Key string + Name string + Names []string + func TilesheetPacks(mods []Mod, skip bool) (uses []TilesheetUse, unreadable bool) + type TokenDefinition struct + Name string + Value string + When map[string]json.RawMessage + type When struct + AnyOf [][]string + Assumed []string + Conditional bool + Config []Config + Dynamic []DynamicCondition + Flags []FlagCondition + NoneOf []string + Places map[string][]string + Spouse string + func (w When) Holds(present map[string]bool) bool + type WhoChangesPage struct + Query string + Targets []AssetTarget + func WhoChangesOf(index []AssetTarget, query string) WhoChangesPage