blob: 01af65439b60b8c94cb8e117139ea8985d5b090d (
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
|
#ifndef __ASURA_COROUTINE_H__
#define __ASURA_COROUTINE_H__
#include "../scripting/portable.hpp"
namespace AsuraEngine
{
namespace Threading
{
///
/// luaЭ̣һЩ
///
class Coroutine ASURA_FINAL
: public AEScripting::Portable<Coroutine>
{
public:
LUAX_DECL_FACTORY(Coroutine);
private:
///
/// ǰЭ̵state
///
lua_State* mThreadState;
LUAX_DECL_METHOD(_New);
LUAX_DECL_METHOD(_Run);
};
}
}
namespace AEThreading = AsuraEngine::Threading;
#endif
|