summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/scripting/portable.hpp
blob: 450f4bbd556b4f07f1a0cb63fb6aefdc9225ca18 (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
#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