File: nebu_scripting.h

package info (click to toggle)
gltron 0.70final-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,992 kB
  • sloc: ansic: 19,172; sh: 3,004; cpp: 973; makefile: 209
file content (27 lines) | stat: -rw-r--r-- 899 bytes parent folder | download | duplicates (10)
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
#ifndef NEBU_SCRIPTING_H
#define NEBU_SCRIPTING_H

#include "lua.h"

extern void scripting_Init();
extern void scripting_Quit();
extern void Scripting_Idle();

extern int scripting_GetGlobal(const char *global, const char *s, ...);
extern int scripting_SetFloat(float f, const char *name, const char *global, const char *s, ...);

extern int scripting_IsNilResult();
extern int scripting_GetIntegerResult(int *i);
extern int scripting_GetFloatResult(float *f);
extern void scripting_GetFloatArrayResult(float *f, int n);
extern int scripting_GetStringResult(char **s);
extern int scripting_CopyStringResult(char *s, int len);


extern void scripting_RunFile(const char *name);
extern void scripting_Run(const char *command);
extern void scripting_RunFormat(const char *format, ...);
extern void scripting_RunGC();
extern void scripting_Register(const char *name, int(*func) (lua_State *L));

#endif