Assets and Localization
Intended scope
Section titled “Intended scope”Assets:
- File-transfer overview — server manifests files by hash; client
FileCachestores chunks keyed by hash. - Loading —
AnomalyResources.TryGetTexture(hash),TryLoadFromBundle<T>(bundleHash, assetName). - When to subscribe to
AssetEvents.Spawned/AssetEvents.OverrideApplied/AssetEvents.Reloaded. - How to ship optional per-server asset overrides without bloating the base install.
Localization:
- Per-mod
Tr.RegisterMod(ns, dir)pointing at a locale-file directory. - Translation key format and fallback to English.
- Pluralization, argument interpolation.
- How locale switching at runtime propagates to registered mods.
Sources
Section titled “Sources”Anomaly.Client.Api\Assets\AnomalyResources.cs.Anomaly.Client.Api\FileTransfer\FileCache.cs.E:\Projects\AnomalyLabs\Anomaly\Anomaly.Client.Api\Localization\LOCALIZATION.md.Anomaly.Client.Api\Localization\LocalizationService.cs.