mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
refactor: PVS-Studio warnings fixes
This commit is contained in:
parent
7bc96affbb
commit
245b39be62
22 changed files with 311 additions and 302 deletions
|
|
@ -61,31 +61,31 @@ namespace scripting {
|
|||
void on_world_tick();
|
||||
void on_world_save();
|
||||
void on_world_quit();
|
||||
void on_blocks_tick(const Block* block, int tps);
|
||||
void update_block(const Block* block, int x, int y, int z);
|
||||
void random_update_block(const Block* block, int x, int y, int z);
|
||||
void on_blocks_tick(const Block& block, int tps);
|
||||
void update_block(const Block& block, int x, int y, int z);
|
||||
void random_update_block(const Block& block, int x, int y, int z);
|
||||
void on_block_placed(
|
||||
Player* player, const Block* block, int x, int y, int z
|
||||
Player* player, const Block& block, int x, int y, int z
|
||||
);
|
||||
void on_block_broken(
|
||||
Player* player, const Block* block, int x, int y, int z
|
||||
Player* player, const Block& block, int x, int y, int z
|
||||
);
|
||||
bool on_block_interact(Player* player, const Block* block, glm::ivec3 pos);
|
||||
bool on_block_interact(Player* player, const Block& block, glm::ivec3 pos);
|
||||
|
||||
/// @brief Called on RMB click with the item selected
|
||||
/// @return true if prevents default action
|
||||
bool on_item_use(Player* player, const ItemDef* item);
|
||||
bool on_item_use(Player* player, const ItemDef& item);
|
||||
|
||||
/// @brief Called on RMB click on block with the item selected
|
||||
/// @return true if prevents default action
|
||||
bool on_item_use_on_block(
|
||||
Player* player, const ItemDef* item, glm::ivec3 ipos, glm::ivec3 normal
|
||||
Player* player, const ItemDef& item, glm::ivec3 ipos, glm::ivec3 normal
|
||||
);
|
||||
|
||||
/// @brief Called on LMB click on block with the item selected
|
||||
/// @return true if prevents default action
|
||||
bool on_item_break_block(
|
||||
Player* player, const ItemDef* item, int x, int y, int z
|
||||
Player* player, const ItemDef& item, int x, int y, int z
|
||||
);
|
||||
|
||||
dynamic::Value get_component_value(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue