- More work on scripting interface
[supertux.git] / src / scripting / wrapper_util.h
1 #ifndef __WRAPPERUTIL_HPP__
2 #define __WRAPPERUTIL_HPP__
3
4 #include <squirrel.h>
5
6 struct WrappedFunction {
7     const char* name;
8     SQFUNCTION f;
9 };
10 struct WrappedClass {
11     const char* name;
12     WrappedFunction* functions;
13 };
14
15 void register_functions(HSQUIRRELVM v, WrappedFunction* functions);
16 void register_classes(HSQUIRRELVM v, WrappedClass* classes);
17
18 void expose_object(HSQUIRRELVM v, void* object, const char* type,
19         const char* name);
20
21 #endif