Skip to content

Commit

Permalink
Added some material images
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Feb 27, 2021
1 parent 4b32d44 commit 7fb83ea
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 0 deletions.
Binary file added assets/items/ingredients/crystal_chunk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/items/ingredients/white_iron_chunk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions lib/domain/assets.dart
Expand Up @@ -37,6 +37,7 @@ class Assets {
static String weaponPrimaryBasePath = '$itemsBasePath/weapon_primary';
static String currencyBasePath = '$itemsBasePath/currency';
static String othersBasePath = '$itemsBasePath/others';
static String ingredientsBasePath = '$itemsBasePath/ingredients';

static String getArtifactPath(String name) => '$artifactsBasePath/$name';
static String getCharacterPath(String name) => '$charactersBasePath/$name';
Expand All @@ -63,6 +64,7 @@ class Assets {
static String getWeaponPrimaryMaterialPath(String name) => '$weaponPrimaryBasePath/$name';
static String getCurrencyMaterialPath(String name) => '$currencyBasePath/$name';
static String getOtherMaterialPath(String name) => '$othersBasePath/$name';
static String getIngredientMaterialPath(String name) => '$ingredientsBasePath/$name';

static String getMaterialPath(String name, MaterialType type) {
switch (type) {
Expand All @@ -84,6 +86,8 @@ class Assets {
return getWeaponPrimaryMaterialPath(name);
case MaterialType.others:
return getOtherMaterialPath(name);
case MaterialType.ingredient:
return getIngredientMaterialPath(name);
default:
throw Exception('Invalid material type = $type');
}
Expand Down
1 change: 1 addition & 0 deletions lib/domain/enums/material_type.dart
Expand Up @@ -8,4 +8,5 @@ enum MaterialType {
weaponPrimary,
currency,
others,
ingredient,
}
1 change: 1 addition & 0 deletions pubspec.yaml
Expand Up @@ -86,6 +86,7 @@ flutter:
- assets/items/common/
- assets/items/currency/
- assets/items/elemental/
- assets/items/ingredients/
- assets/items/jewels/
- assets/items/local/
- assets/items/others/
Expand Down

0 comments on commit 7fb83ea

Please sign in to comment.