summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/scripting/portable.hpp
blob: df0b8781bf306d6c5511c894b77fd978441bfbd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef __ASURA_ENGINE_PORTABLE_H__
#define __ASURA_ENGINE_PORTABLE_H__

#include "Config.h"
#include "Luax.hpp"
#include "Type.h"

namespace AsuraEngine
{
	namespace Scripting
	{

		///
		/// luaעnative classҪ̳дࡣ
		///
		template<typename T> 
		class Portable : public Luax::LuaxNativeClass<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