| 1234567891011121314151617181920212223242526272829303132333435363738 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsScriptEditorPrerequisites.h"
- #include "BsScriptObject.h"
- namespace bs
- {
- /** @addtogroup ScriptInteropEditor
- * @{
- */
- /** Interop class between C++ & CLR for SerializedObject. */
- class BS_SCR_BED_EXPORT ScriptSerializedObject : public ScriptObject <ScriptSerializedObject>
- {
- public:
- SCRIPT_OBJ(EDITOR_ASSEMBLY, EDITOR_NS, "SerializedObject")
- /** Returns the serialized object wrapped by this object. */
- SPtr<IReflectable> getInternal() const { return mSerializedObject; }
- private:
- ScriptSerializedObject(MonoObject* instance, const SPtr<IReflectable>& obj);
- SPtr<IReflectable> mSerializedObject;
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static MonoObject* internal_CreateComponent(ScriptComponentBase* componentPtr);
- static MonoObject* internal_CreateResource(ScriptManagedResource* resourcePtr);
- static MonoObject* internal_CreateGeneric(MonoObject* obj);
- static MonoObject* internal_Deserialize(ScriptSerializedObject* thisPtr);
- };
- /** @} */
- }
|