SML::CALLBACKSTRUCT Struct Reference
Structure passed to an SML callback.
More...
#include <sml/callbackstruct.h>
List of all members.
Detailed Description
Structure passed to an SML callback.
Possible reasons:
- MsmlCR_Modified Script has been modified
- MsmlCR_Filename Filename has changed
- MsmlCR_SymbolAdded A symbol has been added
- MsmlCR_End The script has finished running
- MsmlCR_DestroyBegin The context is about to be destoied
The following reasons can only be added by calling the static method SML::CONTEXT::CallbackAddGlobal() and will be called for every context which is created and destroied.
- MsmlCR_Create A context is being created
- MsmlCR_Destroy A context has been destroied (The context member of the SML::CALLBACKSTRUCT will be NULL, since it's already gone)
- MsmlCR_InstallFuncsSML Install any functions which should only be used in an SML context (as opposed to a query context)
- Note:
- The reasons are flags which may be OR'd together. It is possible to get one callback with multiple reasons set
- See also:
- SML::CONTEXT::CallbackAdd()
-
SML::CONTEXT::CallbackRemove()
-
SML::CONTEXT::CallbackAddGlobal()
-
SML::CONTEXT::CallbackRemoveGlobal()
Constructor & Destructor Documentation
| SML::CALLBACKSTRUCT::CALLBACKSTRUCT |
( |
|
) |
[inline] |
| SML::CALLBACKSTRUCT::CALLBACKSTRUCT |
( |
CONTEXT * |
pcontext, |
|
|
UINT32 |
preason | |
|
) |
| | [inline] |
Member Data Documentation
true if script modified since last save /load
Context of the SML script/query.
The documentation for this struct was generated from the following file: