Represents a callback enabling to "augment" a loading or saving of a project. More...
Public Member Functions | |
ResourceDeclAugmentCallback () | |
virtual | ~ResourceDeclAugmentCallback () |
virtual void | onScript (Script *script, nkExport::Node *node) |
Represents a callback enabling to "augment" a loading or saving of a project.
By implementiong this class, and plugging it within a ProjectLoadQuery or ProjectSaveQuery, external code can add or retrieve more required information. For instance, good use case could be to import a project and register all Script in a client structure for later referencing.
nkScripts::ResourceDeclAugmentCallback::ResourceDeclAugmentCallback | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Callback used when a script is being processed.
script | The script currently being processed. |
node | The node from which the script has been imported / is being exported. |