Add Level::ScriptsReloaded event
This commit is contained in:
@@ -577,6 +577,7 @@ public:
|
||||
// Reload scripting
|
||||
Level::ScriptsReload();
|
||||
Scripting::Reload();
|
||||
Level::ScriptsReloaded();
|
||||
|
||||
// Restore objects
|
||||
for (auto& e : ScriptsReloadObjects)
|
||||
|
||||
@@ -227,6 +227,11 @@ public:
|
||||
/// </summary>
|
||||
API_EVENT() static Action ScriptsReload;
|
||||
|
||||
/// <summary>
|
||||
/// Fired when scene reloaded scripts (new scripting is loaded). All user objects can be restored before scenes reloading.
|
||||
/// </summary>
|
||||
API_EVENT() static Action ScriptsReloaded;
|
||||
|
||||
/// <summary>
|
||||
/// Fired when scene ends reloading scripts.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user