mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
736cd175d5
commit
bbf33e8e4d
202 changed files with 7389 additions and 5609 deletions
|
|
@ -24,7 +24,7 @@ std::unique_ptr<Content> ContentBuilder::build() {
|
|||
auto groups = std::make_unique<DrawGroups>();
|
||||
for (const std::string& name : blocks.names) {
|
||||
Block& def = *blocks.defs[name];
|
||||
|
||||
|
||||
// Generating runtime info
|
||||
def.rt.id = blockDefsIndices.size();
|
||||
def.rt.emissive = *reinterpret_cast<uint32_t*>(def.emission);
|
||||
|
|
@ -48,7 +48,7 @@ std::unique_ptr<Content> ContentBuilder::build() {
|
|||
std::vector<ItemDef*> itemDefsIndices;
|
||||
for (const std::string& name : items.names) {
|
||||
ItemDef& def = *items.defs[name];
|
||||
|
||||
|
||||
// Generating runtime info
|
||||
def.rt.id = itemDefsIndices.size();
|
||||
def.rt.emissive = *reinterpret_cast<uint32_t*>(def.emission);
|
||||
|
|
@ -66,11 +66,10 @@ std::unique_ptr<Content> ContentBuilder::build() {
|
|||
|
||||
auto content = std::make_unique<Content>(
|
||||
std::make_unique<ContentIndices>(
|
||||
blockDefsIndices,
|
||||
itemDefsIndices,
|
||||
entityDefsIndices),
|
||||
blockDefsIndices, itemDefsIndices, entityDefsIndices
|
||||
),
|
||||
std::move(groups),
|
||||
blocks.build(),
|
||||
blocks.build(),
|
||||
items.build(),
|
||||
entities.build(),
|
||||
std::move(packs),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue