class ScriptCode

Inherits: Resource

Resource containing script source code.

Public

Methods

GetString

const WString &GetString() const

Gets the source code contained in the resource.

SetString

void SetString(const WString &data)

Sets the source code contained in the resource.

GetIsEditorScript

bool GetIsEditorScript() const

Gets a value that determines should the script code be compiled with editor assemblies.

SetIsEditorScript

void SetIsEditorScript(bool editorScript)

Sets a value that determines should the script code be compiled with editor assemblies.

staticCreate

static HScriptCode Create(const WString &data, bool editorScript = false)

Creates a new script code resource with the specified source code.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

virtual RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Internal

Methods

staticCreatePtrInternal

static SPtr<ScriptCode> CreatePtrInternal(const WString &data, bool editorScript = false)

Creates a new scriptcode resource with the specified source string.

Private

Constructors

ScriptCode

ScriptCode(const WString &data, bool editorScript)

Fields

mString

WString mString

mEditorScript

bool mEditorScript