Added id_dandelion and id_rose

This commit is contained in:
CobaltXII
2019-01-02 10:04:13 -05:00
parent 2d4cb77484
commit 881b302e06
5 changed files with 23 additions and 6 deletions

View File

@@ -93,10 +93,7 @@ enum block_id
id_glass,
id_null
};
// Returns true if the block is not opaque. Otherwise, returns false.
id_rose,
inline bool is_transparent(block_id id)
{
@@ -107,6 +104,7 @@ inline bool is_transparent(block_id id)
id == id_oak_leaves ||
id == id_birch_leaves ||
id_dandelion,
id == id_water ||
@@ -120,6 +118,8 @@ inline bool is_transparent(block_id id)
return false;
}
id_null
};
// Conversion from block_id to std::string.
@@ -212,6 +212,10 @@ std::vector<std::string> block_id_to_string =
"black_wool",
"glass",
"rose",
"dandelion"
};
// Conversion from block_id to std::string (used for in-game text).
@@ -305,4 +309,9 @@ std::vector<std::string> block_id_to_block_name =
"Black Wool",
"Glass"
}; "Glass",
"Rose",
"Dandelion"
};

View File

@@ -154,6 +154,10 @@ void load_block_face_info_array()
make_face_info_all(block_name_to_layer.at("wool_colored_black")),
make_face_info_all(block_name_to_layer.at("glass"))
make_face_info_all(block_name_to_layer.at("glass")),
make_face_info_all(block_name_to_layer.at("rose")),
make_face_info_all(block_name_to_layer.at("dandelion"))
};
}

View File

@@ -23,6 +23,8 @@ std::vector<std::string> all_tex =
"cobblestone",
"dandelion",
"diamond_ore",
"dirt",
@@ -61,6 +63,8 @@ std::vector<std::string> all_tex =
"oak_planks",
"rose",
"sand",
"sandstone_bottom",

BIN
tex/dandelion.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

BIN
tex/rose.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB