Beispiel #1
0
        /// <inheritdoc/>
        protected override void LoadContentPack(IContentPack contentPack)
        {
            // categories
            if (contentPack.TryLoadAsset <List <FishCategory> >("categories.json", out var fishCategories))
            {
                Categories.StageItems(fishCategories);
            }

            // location areas
            if (contentPack.TryLoadAsset <List <LocationArea> >("locations.json", out var locations))
            {
                LocationAreas.StageItems(locations);
            }

            // bait
            if (contentPack.TryLoadAsset <List <Bait> >("bait.json", out var bait))
            {
                Bait.StageItems(bait);
            }
        }