feat: load block and item scripts after content load
This commit is contained in:
@@ -45,6 +45,8 @@ namespace scripting {
|
||||
|
||||
void initialize(Engine* engine);
|
||||
|
||||
void on_content_load(Content* content);
|
||||
|
||||
bool register_event(
|
||||
int env, const std::string& name, const std::string& id
|
||||
);
|
||||
@@ -128,7 +130,7 @@ namespace scripting {
|
||||
/// @param file item script file
|
||||
/// @param fileName script file path using the engine format
|
||||
/// @param funcsset block callbacks set
|
||||
void load_block_script(
|
||||
void load_content_script(
|
||||
const scriptenv& env,
|
||||
const std::string& prefix,
|
||||
const fs::path& file,
|
||||
@@ -142,7 +144,7 @@ namespace scripting {
|
||||
/// @param file item script file
|
||||
/// @param fileName script file path using the engine format
|
||||
/// @param funcsset item callbacks set
|
||||
void load_item_script(
|
||||
void load_content_script(
|
||||
const scriptenv& env,
|
||||
const std::string& prefix,
|
||||
const fs::path& file,
|
||||
|
||||
Reference in New Issue
Block a user