ScummVM API documentation
ltask.h
1
#ifndef GRIM_LTASK_H
2
#define GRIM_LTASK_H
3
4
#include "engines/grim/lua/lua.h"
5
#include "engines/grim/lua/lstate.h"
6
#include "engines/grim/lua/lbuiltin.h"
7
8
namespace
Grim
{
9
10
struct
lua_Task
{
11
lua_Task
*next;
12
struct
Stack
*S;
13
Closure
*cl;
14
TProtoFunc
*tf;
15
StkId base;
16
byte *pc;
17
TObject
*consts;
18
int32 aux;
19
bool
executed;
20
StkId initBase;
21
int32 initResults;
22
};
23
24
void
lua_taskinit(
lua_Task
*task,
lua_Task
*next, StkId tbase,
int
results);
25
void
lua_taskresume(
lua_Task
*task,
Closure
*closure,
TProtoFunc
*protofunc, StkId tbase);
26
StkId luaV_execute(
lua_Task
*task);
27
28
void
pause_script();
29
void
unpause_script();
30
31
void
runtasks(
LState
*
const
rootState);
32
33
}
// end of namespace Grim
34
35
#endif
Grim::TObject
Definition:
lobject.h:65
Grim::TProtoFunc
Definition:
lobject.h:93
Grim::LState
Definition:
lstate.h:89
Grim::lua_Task
Definition:
ltask.h:10
Grim
Definition:
actor.h:33
Grim::Closure
Definition:
lobject.h:122
Grim::Stack
Definition:
lstate.h:34
engines
grim
lua
ltask.h
Generated on Fri Nov 22 2024 09:15:49 for ScummVM API documentation by
1.8.13