diff options
Diffstat (limited to 'LuaSL/LuaSL.h')
-rw-r--r-- | LuaSL/LuaSL.h | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/LuaSL/LuaSL.h b/LuaSL/LuaSL.h deleted file mode 100644 index d1f448e..0000000 --- a/LuaSL/LuaSL.h +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | #include "config.h" | ||
3 | #else | ||
4 | //#define PACKAGE_EXAMPLES_DIR "." | ||
5 | #define __UNUSED__ | ||
6 | #endif | ||
7 | |||
8 | #include <Eet.h> | ||
9 | #include <Ecore.h> | ||
10 | #include <Ecore_Con.h> | ||
11 | #include <Ecore_Evas.h> | ||
12 | #include <Ecore_File.h> | ||
13 | #include <Edje.h> | ||
14 | #include <stdio.h> | ||
15 | #include <ctype.h> | ||
16 | |||
17 | #include <lua.h> | ||
18 | #include <luajit.h> | ||
19 | #include <lualib.h> | ||
20 | #include <lauxlib.h> | ||
21 | |||
22 | typedef struct _script script; // Define this here, so LuaSL_threads.h can use it. | ||
23 | typedef struct _gameGlobals gameGlobals; // Define this here, so LuaSL_threads.h can use it. | ||
24 | |||
25 | #include "LuaSL_threads.h" | ||
26 | #include "LumbrJack.h" | ||
27 | |||
28 | |||
29 | #define WIDTH (512) | ||
30 | #define HEIGHT (384) | ||
31 | |||
32 | |||
33 | #define TABLE_WIDTH 7 | ||
34 | #define TABLE_HEIGHT 42 | ||
35 | |||
36 | |||
37 | struct _gameGlobals | ||
38 | { | ||
39 | Ecore_Evas *ee; // Our window. | ||
40 | Evas *canvas; // The canvas for drawing directly onto. | ||
41 | Evas_Object *bg; // Our background edje, also the game specific stuff. | ||
42 | Evas_Object *edje; // The edje of the background. | ||
43 | Ecore_Con_Server *server; | ||
44 | Eina_Hash *scripts, *names; | ||
45 | int logDom; | ||
46 | const char *address; | ||
47 | int port; | ||
48 | boolean ui; // Wether we actually start up the UI. | ||
49 | }; | ||
50 | |||
51 | struct _script | ||
52 | { | ||
53 | Eina_Clist node; | ||
54 | gameGlobals *game; | ||
55 | char SID[PATH_MAX]; | ||
56 | char fileName[PATH_MAX]; | ||
57 | lua_State *L; | ||
58 | struct timeval startTime; | ||
59 | float compileTime, timerTime; | ||
60 | int bugs, warnings; | ||
61 | boolean running; | ||
62 | int status; | ||
63 | int args; | ||
64 | Eina_Clist messages; | ||
65 | Ecore_Con_Client *client; | ||
66 | Ecore_Timer *timer; | ||
67 | }; | ||
68 | |||
69 | typedef struct | ||
70 | { | ||
71 | Eina_Clist node; | ||
72 | script *script; | ||
73 | const char message[PATH_MAX]; | ||
74 | } scriptMessage; | ||
75 | |||
76 | |||
77 | void scriptSendBack(void * data); | ||
78 | void sendBack(gameGlobals *ourGlobals, Ecore_Con_Client *client, const char *SID, const char *message, ...); | ||
79 | void sendForth(gameGlobals *ourGlobals, const char *SID, const char *message, ...); | ||
80 | float timeDiff(struct timeval *now, struct timeval *then); | ||
81 | |||
82 | #include "LuaSL_LSL_tree.h" | ||