1//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
2//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
3#pragma once
4
5#include "BsPrerequisites.h"
6#include "Importer/BsImportOptions.h"
7#include "Resources/BsScriptCode.h"
8
9namespace bs
10{
11 /** @addtogroup Resources-Engine
12 * @{
13 */
14
15 /** Contains import options you may use to control how is a file containing script source code importer. */
16 class BS_EXPORT BS_SCRIPT_EXPORT(m:Importer,api:bsf,api:bed) ScriptCodeImportOptions : public ImportOptions
17 {
18 public:
19 ScriptCodeImportOptions() = default;
20
21 /** Determines whether the script is editor-only or a normal game script. */
22 BS_SCRIPT_EXPORT()
23 bool editorScript = false;
24
25 /** Creates a new import options object that allows you to customize how is script code imported. */
26 BS_SCRIPT_EXPORT(ec:T)
27 static SPtr<ScriptCodeImportOptions> create();
28
29 /************************************************************************/
30 /* SERIALIZATION */
31 /************************************************************************/
32 public:
33 friend class ScriptCodeImportOptionsRTTI;
34 static RTTITypeBase* getRTTIStatic();
35 RTTITypeBase* getRTTI() const override;
36 };
37
38 /** @} */
39}