Added id_dandelion and id_rose
This commit is contained in:
@@ -93,10 +93,7 @@ enum block_id
|
|||||||
|
|
||||||
id_glass,
|
id_glass,
|
||||||
|
|
||||||
id_null
|
id_rose,
|
||||||
};
|
|
||||||
|
|
||||||
// Returns true if the block is not opaque. Otherwise, returns false.
|
|
||||||
|
|
||||||
inline bool is_transparent(block_id id)
|
inline bool is_transparent(block_id id)
|
||||||
{
|
{
|
||||||
@@ -107,6 +104,7 @@ inline bool is_transparent(block_id id)
|
|||||||
id == id_oak_leaves ||
|
id == id_oak_leaves ||
|
||||||
|
|
||||||
id == id_birch_leaves ||
|
id == id_birch_leaves ||
|
||||||
|
id_dandelion,
|
||||||
|
|
||||||
id == id_water ||
|
id == id_water ||
|
||||||
|
|
||||||
@@ -120,6 +118,8 @@ inline bool is_transparent(block_id id)
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
id_null
|
||||||
|
};
|
||||||
|
|
||||||
// Conversion from block_id to std::string.
|
// Conversion from block_id to std::string.
|
||||||
|
|
||||||
@@ -212,6 +212,10 @@ std::vector<std::string> block_id_to_string =
|
|||||||
"black_wool",
|
"black_wool",
|
||||||
|
|
||||||
"glass",
|
"glass",
|
||||||
|
|
||||||
|
"rose",
|
||||||
|
|
||||||
|
"dandelion"
|
||||||
};
|
};
|
||||||
|
|
||||||
// Conversion from block_id to std::string (used for in-game text).
|
// 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",
|
"Black Wool",
|
||||||
|
|
||||||
"Glass"
|
"Glass"
|
||||||
};
|
}; "Glass",
|
||||||
|
|
||||||
|
"Rose",
|
||||||
|
|
||||||
|
"Dandelion"
|
||||||
|
};
|
||||||
|
|||||||
@@ -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("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"))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -23,6 +23,8 @@ std::vector<std::string> all_tex =
|
|||||||
|
|
||||||
"cobblestone",
|
"cobblestone",
|
||||||
|
|
||||||
|
"dandelion",
|
||||||
|
|
||||||
"diamond_ore",
|
"diamond_ore",
|
||||||
|
|
||||||
"dirt",
|
"dirt",
|
||||||
@@ -61,6 +63,8 @@ std::vector<std::string> all_tex =
|
|||||||
|
|
||||||
"oak_planks",
|
"oak_planks",
|
||||||
|
|
||||||
|
"rose",
|
||||||
|
|
||||||
"sand",
|
"sand",
|
||||||
|
|
||||||
"sandstone_bottom",
|
"sandstone_bottom",
|
||||||
|
|||||||
BIN
tex/dandelion.png
Executable file
BIN
tex/dandelion.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 145 B |
BIN
tex/rose.png
Normal file
BIN
tex/rose.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Reference in New Issue
Block a user