mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
Items intruduced (WIP)
This commit is contained in:
parent
4f6ba8cca6
commit
4a57e71e81
12 changed files with 269 additions and 58 deletions
|
|
@ -9,6 +9,7 @@ class Level;
|
|||
class Block;
|
||||
class Player;
|
||||
struct block_funcs_set;
|
||||
struct item_funcs_set;
|
||||
|
||||
namespace scripting {
|
||||
extern const Content* content;
|
||||
|
|
@ -23,5 +24,6 @@ namespace scripting {
|
|||
void on_block_broken(Player* player, const Block* block, int x, int y, int z);
|
||||
void on_block_interact(Player* player, const Block* block, int x, int y, int z);
|
||||
void load_block_script(std::string prefix, fs::path file, block_funcs_set* funcsset);
|
||||
void load_item_script(std::string prefix, fs::path file, item_funcs_set* funcsset);
|
||||
void close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue