mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor InventoryView & add 'uses' item property (WIP)
This commit is contained in:
parent
a118016c8f
commit
231fc7e0d0
5 changed files with 152 additions and 73 deletions
|
|
@ -436,8 +436,8 @@ void ContentLoader::loadItem(
|
|||
root.at("script-name").get(def.scriptName);
|
||||
root.at("model-name").get(def.modelName);
|
||||
root.at("stack-size").get(def.stackSize);
|
||||
root.at("uses").get(def.uses);
|
||||
|
||||
// item light emission [r, g, b] where r,g,b in range [0..15]
|
||||
if (auto found = root.at("emission")) {
|
||||
const auto& emissionarr = *found;
|
||||
def.emission[0] = emissionarr[0].asNumber();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue