diff options
Diffstat (limited to 'Source/Asura.Engine/scripting/portable.hpp')
-rw-r--r-- | Source/Asura.Engine/scripting/portable.hpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Source/Asura.Engine/scripting/portable.hpp b/Source/Asura.Engine/scripting/portable.hpp new file mode 100644 index 0000000..773e7ad --- /dev/null +++ b/Source/Asura.Engine/scripting/portable.hpp @@ -0,0 +1,43 @@ +#ifndef __ASURA_ENGINE_PORTABLE_H__ +#define __ASURA_ENGINE_PORTABLE_H__ + +#include "Config.h" +#include "Luax.hpp" +#include "Type.h" + +namespace AsuraEngine +{ + namespace Scripting + { + + template<typename T> + class Portable : public Luax::LuaxClass<T> + { + public: + + Portable(); + virtual ~Portable(); + + void Retain(); + void Release(); + + private: + + /// + /// ̱߳luagc߳˴native objectdelete + /// + int mRefCount; + + /// + /// deleteգ̳portable࣬ʹdeleteֻʹRelease + /// + bool mSafer; + + }; + +#include "portable.inl" + + } +} + +#endif
\ No newline at end of file |