Sha256: 95a0960d13b4fd0c167f9806a068e16e08695748e55eb555dc2f45d21420bad5

Contents?: true

Size: 1.83 KB

Versions: 20

Compression:

Stored size: 1.83 KB

Contents

# frozen_string_literal: true

module GenshinData
  module Materials
    # Top level access class for all development materials
    module Development
      require_relative "development/elite_monster_drops_data"
      require_relative "development/gems_data"
      require_relative "development/general_data"
      require_relative "development/local_specialty_data"
      require_relative "development/monster_loot_drops_data"
      require_relative "development/talent_books_data"
      require_relative "development/weapon_material_data"
      require_relative "development/weapon_refinement_material_data"
      require_relative "development/weekly_boss_drops_data"
      require_relative "development/world_boss_drops_data"

      class << self
        def all
          [
            elite_monster_loot,
            gems,
            general,
            local_specialties,
            monster_loot,
            talent_books,
            weapon_materials,
            weapon_refinement,
            weekly_boss_drops,
            world_boss_drops
          ].flatten.sort { |x, y| x.name <=> y.name }
        end

        def elite_monster_loot
          EliteMonsterLootDropsData.all
        end

        def gems
          GemsData.all
        end

        def general
          GeneralData.all
        end

        def local_specialties
          LocalSpecialtyData.all
        end

        def monster_loot
          MonsterLootDropsData.all
        end

        def talent_books
          TalentBooksData.all
        end

        def weapon_materials
          WeaponMaterialData.all
        end

        def weapon_refinement
          WeaponRefinementMaterialData.all
        end

        def weekly_boss_drops
          WeeklyBossDropsData.all
        end

        def world_boss_drops
          WorldBossDropsData.all
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
teyvatdb-0.5.2.4 lib/genshin_data/materials/development.rb
teyvatdb-0.5.2.3 lib/genshin_data/materials/development.rb
teyvatdb-0.5.2.2 lib/genshin_data/materials/development.rb
teyvatdb-0.5.2.1 lib/genshin_data/materials/development.rb
teyvatdb-0.5.2 lib/genshin_data/materials/development.rb
teyvatdb-0.5.1.1 lib/genshin_data/materials/development.rb
teyvatdb-0.5.1 lib/genshin_data/materials/development.rb
teyvatdb-0.5.0 lib/genshin_data/materials/development.rb
teyvatdb-0.4.7.1 lib/genshin_data/materials/development.rb
teyvatdb-0.4.7 lib/genshin_data/materials/development.rb
teyvatdb-0.4.6.1 lib/genshin_data/materials/development.rb
teyvatdb-0.4.6 lib/genshin_data/materials/development.rb
teyvatdb-0.4.5.1 lib/genshin_data/materials/development.rb
teyvatdb-0.2.4 lib/genshin_data/materials/development.rb
teyvatdb-0.2.3 lib/genshin_data/materials/development.rb
teyvatdb-0.2.2.1 lib/genshin_data/materials/development.rb
teyvatdb-0.2.2 lib/genshin_data/materials/development.rb
teyvatdb-0.2.1.1 lib/genshin_data/materials/development.rb
teyvatdb-0.2.1 lib/genshin_data/materials/development.rb
teyvatdb-0.2.0 lib/genshin_data/materials/development.rb