mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
ItemDef/EntityDef/Block: Add method cloneTo to definition to other definition
ContentBuilder: Add method `get` to get definition or nullptr ContentLoader: Add functionality to clone from definition specified in `parent` field in json
This commit is contained in:
parent
8ef288c189
commit
5f6ae5daba
9 changed files with 123 additions and 13 deletions
|
|
@ -211,6 +211,8 @@ public:
|
|||
Block(const std::string& name);
|
||||
Block(std::string name, const std::string& texture);
|
||||
Block(const Block&) = delete;
|
||||
|
||||
void cloneTo(Block& dst);
|
||||
};
|
||||
|
||||
inline glm::ivec3 get_ground_direction(const Block& def, int rotation) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue