| 123456789101112131415161718192021222324252627282930313233343536373839 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsScriptEnginePrerequisites.h"
- #include "BsScriptObject.h"
- namespace bs
- {
- /** @addtogroup ScriptInteropEngine
- * @{
- */
- /** Interop class between C++ & CLR for ManagedSerializableDictionary. */
- class BS_SCR_BE_EXPORT ScriptSerializableDictionary : public ScriptObject<ScriptSerializableDictionary>
- {
- public:
- SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "SerializableDictionary")
- /**
- * Creates a new serializable dictionary interop object from the data in the provided property. Caller must ensure
- * the property references a System.Collections.Generic.Dictionary.
- */
- static MonoObject* create(const ScriptSerializableProperty* native, MonoObject* managed);
- private:
- ScriptSerializableDictionary(MonoObject* instance, const SPtr<ManagedSerializableTypeInfoDictionary>& typeInfo);
- SPtr<ManagedSerializableTypeInfoDictionary> mTypeInfo;
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static MonoObject* internal_createKeyProperty(ScriptSerializableDictionary* nativeInstance);
- static MonoObject* internal_createValueProperty(ScriptSerializableDictionary* nativeInstance);
- };
- /** @} */
- }
|