diff options
author | chai <chaifix@163.com> | 2019-03-16 19:29:23 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-16 19:29:23 +0800 |
commit | d29f5f4aebd90b1e256967801b28a5990249b2e7 (patch) | |
tree | f4f1390b57a39e0493e0f74b40dd3996d88d04e5 /Source/Asura.Engine/scripting/portable.hpp | |
parent | 1ab2501db0f9e14f138292880e37120e7a6184de (diff) |
*luax
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 |