blob: 4f00d643f52e85db249e4243fcee26ef1531fb9c (
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
|
#ifndef __ASURA_ENGINE_OBJECT_H__
#define __ASURA_ENGINE_OBJECT_H__
#include "Type.h"
///
/// 룬ʵҪüеļصĶluaɡObjectֻΪʹá
/// //ࡣΪ˱֤nativeͷŵʱᵼԼָ뱻ͷţҪһülua
/// //ͷʱǷͷnativenativeָ롣
/// //Object࣬ǴڶϵģӦͨObject::Releaseֶͷš
/// Objectָ뱾Ϊlight userdataΪweak tablekeyobjectsʹַһЩͳơ
///
class Object
{
public:
Object();
virtual ~Object();
static void Retain(Object* obj);
static void Release(Object* obj);
private:
int mRC; // ߳
};
#endif
|