public IMapData LoadMap(MapId id) => (IMapData)_modApplier.LoadAsset(id); // No caching for map data public ItemData LoadItem(ItemId id) { return((ItemData)_modApplier.LoadAssetCached(id)); /*var data = (IList<ItemData>)_modApplier.LoadAssetCached(ItemListId.Only.Id()); * if ((int)id >= data.Count) * return null; * * return data[(int)id]; */ }
public AlbionPalette LoadPalette(PaletteId id) { var palette = (AlbionPalette)_modApplier.LoadAsset(id); if (palette == null) { return(null); } var commonPalette = (AlbionPalette)_modApplier.LoadAssetCached(AssetId.From(Base.Palette.Common)); palette.SetCommonPalette(commonPalette); return(palette); }