| 12345678910111213141516171819202122232425262728 |
- #pragma once
- #include "BsScriptEnginePrerequisites.h"
- #include "BsScriptResource.h"
- #include "BsPrefab.h"
- namespace BansheeEngine
- {
- /**
- * @brief Interop class between C++ & CLR for Prefab.
- */
- class BS_SCR_BE_EXPORT ScriptPrefab : public TScriptResource<ScriptPrefab, Prefab>
- {
- public:
- SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "Prefab")
- private:
- friend class ScriptResourceManager;
- ScriptPrefab(MonoObject* instance, const HPrefab& prefab);
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static void internal_CreateInstance(MonoObject* instance, ScriptSceneObject* so);
- static MonoObject* internal_Instantiate(ScriptPrefab* instance);
- };
- }
|