| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsPrerequisites.h"
- #include "BsImportOptions.h"
- #include "BsScriptCode.h"
- namespace bs
- {
- /** @addtogroup Resources-Engine
- * @{
- */
- /** Contains import options you may use to control how is a file containing script source code importer. */
- class BS_EXPORT ScriptCodeImportOptions : public ImportOptions
- {
- public:
- ScriptCodeImportOptions();
- /** Sets whether the script is editor-only or a normal game script. */
- void setEditorScript(bool editorScript) { mEditorScript = editorScript; }
- /** Checks whether the script is editor-only or a normal game script. */
- bool isEditorScript() const { return mEditorScript; }
- /** Creates a new import options object that allows you to customize how is script code imported. */
- static SPtr<ScriptCodeImportOptions> create();
- /************************************************************************/
- /* SERIALIZATION */
- /************************************************************************/
- public:
- friend class ScriptCodeImportOptionsRTTI;
- static RTTITypeBase* getRTTIStatic();
- RTTITypeBase* getRTTI() const override;
- private:
- bool mEditorScript;
- };
- /** @} */
- }
|