refactor: PVS-Studio warnings fixes
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user