mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +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
|
|
@ -1,22 +1,22 @@
|
|||
#ifndef CONTENT_ITEMS_ITEM_DEF_HPP_
|
||||
#define CONTENT_ITEMS_ITEM_DEF_HPP_
|
||||
|
||||
#include <string>
|
||||
#include <glm/glm.hpp>
|
||||
#include <string>
|
||||
|
||||
#include "../typedefs.hpp"
|
||||
|
||||
struct item_funcs_set {
|
||||
bool init: 1;
|
||||
bool on_use: 1;
|
||||
bool on_use_on_block: 1;
|
||||
bool on_block_break_by: 1;
|
||||
bool init : 1;
|
||||
bool on_use : 1;
|
||||
bool on_use_on_block : 1;
|
||||
bool on_block_break_by : 1;
|
||||
};
|
||||
|
||||
enum class item_icon_type {
|
||||
none, // invisible (core:empty) must not be rendered
|
||||
sprite, // textured quad: icon is `atlas_name:texture_name`
|
||||
block, // block preview: icon is string block id
|
||||
none, // invisible (core:empty) must not be rendered
|
||||
sprite, // textured quad: icon is `atlas_name:texture_name`
|
||||
block, // block preview: icon is string block id
|
||||
};
|
||||
|
||||
struct ItemDef {
|
||||
|
|
@ -34,7 +34,7 @@ struct ItemDef {
|
|||
std::string icon = "blocks:notfound";
|
||||
|
||||
std::string placingBlock = "core:air";
|
||||
std::string scriptName = name.substr(name.find(':')+1);
|
||||
std::string scriptName = name.substr(name.find(':') + 1);
|
||||
|
||||
struct {
|
||||
itemid_t id;
|
||||
|
|
@ -47,4 +47,4 @@ struct ItemDef {
|
|||
ItemDef(const ItemDef&) = delete;
|
||||
};
|
||||
|
||||
#endif //CONTENT_ITEMS_ITEM_DEF_HPP_
|
||||
#endif // CONTENT_ITEMS_ITEM_DEF_HPP_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue