Overte C++ Documentation
EntityScriptDetails Class Reference

Details about an entity script. More...

#include <ScriptManager.h>

Collaboration diagram for EntityScriptDetails:

Public Attributes

EntityScriptStatus status { EntityScriptStatus::PENDING }
 Current status.
 
QString errorInfo { "" }
 Error information. More...
 
QString scriptText { "" }
 The source code of the script.
 
ScriptValue scriptObject { ScriptValue() }
 The return value of the script.
 
int64_t lastModified { 0 }
 Last modified time of the underlying script file. More...
 
QUrl definingSandboxURL { QUrl("about:EntityScript") }
 URL under which the script is allowed to have access. More...
 

Detailed Description

Details about an entity script.

Member Data Documentation

◆ definingSandboxURL

QUrl EntityScriptDetails::definingSandboxURL { QUrl("about:EntityScript") }

URL under which the script is allowed to have access.

The script is allowed access below this URL (eg, sub-directories), but not to the parent context.

◆ errorInfo

QString EntityScriptDetails::errorInfo { "" }

Error information.

If status indicates an error, this contains a human-readable string giving more information about the error.

◆ lastModified

int64_t EntityScriptDetails::lastModified { 0 }

Last modified time of the underlying script file.

This is used to determine if the script needs reloading when it changes on disk.


The documentation for this class was generated from the following file: