aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/LuaSL/LuaSL.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-13 13:15:42 +1000
committerDavid Walter Seikel2014-05-13 13:15:42 +1000
commitafd126e1d207c8fe7933562227f16684b00bfc7c (patch)
tree0f34168d20e485738fcfd1b5d67cf5e0d1bb8113 /src/LuaSL/LuaSL.h
parentDedicating my lifes work to my girl Boots. (diff)
downloadSledjHamr-afd126e1d207c8fe7933562227f16684b00bfc7c.zip
SledjHamr-afd126e1d207c8fe7933562227f16684b00bfc7c.tar.gz
SledjHamr-afd126e1d207c8fe7933562227f16684b00bfc7c.tar.bz2
SledjHamr-afd126e1d207c8fe7933562227f16684b00bfc7c.tar.xz
Finish separating out love.
Diffstat (limited to 'src/LuaSL/LuaSL.h')
-rw-r--r--src/LuaSL/LuaSL.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/LuaSL/LuaSL.h b/src/LuaSL/LuaSL.h
index d1f448e..175cebf 100644
--- a/src/LuaSL/LuaSL.h
+++ b/src/LuaSL/LuaSL.h
@@ -8,9 +8,7 @@
8#include <Eet.h> 8#include <Eet.h>
9#include <Ecore.h> 9#include <Ecore.h>
10#include <Ecore_Con.h> 10#include <Ecore_Con.h>
11#include <Ecore_Evas.h>
12#include <Ecore_File.h> 11#include <Ecore_File.h>
13#include <Edje.h>
14#include <stdio.h> 12#include <stdio.h>
15#include <ctype.h> 13#include <ctype.h>
16 14
@@ -26,26 +24,12 @@ typedef struct _gameGlobals gameGlobals; // Define this here, so LuaSL_threads.h
26#include "LumbrJack.h" 24#include "LumbrJack.h"
27 25
28 26
29#define WIDTH (512)
30#define HEIGHT (384)
31
32
33#define TABLE_WIDTH 7
34#define TABLE_HEIGHT 42
35
36
37struct _gameGlobals 27struct _gameGlobals
38{ 28{
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; 29 Ecore_Con_Server *server;
44 Eina_Hash *scripts, *names; 30 Eina_Hash *scripts, *names;
45 int logDom;
46 const char *address; 31 const char *address;
47 int port; 32 int port;
48 boolean ui; // Wether we actually start up the UI.
49}; 33};
50 34
51struct _script 35struct _script
@@ -56,9 +40,7 @@ struct _script
56 char fileName[PATH_MAX]; 40 char fileName[PATH_MAX];
57 lua_State *L; 41 lua_State *L;
58 struct timeval startTime; 42 struct timeval startTime;
59 float compileTime, timerTime; 43 float timerTime;
60 int bugs, warnings;
61 boolean running;
62 int status; 44 int status;
63 int args; 45 int args;
64 Eina_Clist messages; 46 Eina_Clist messages;
@@ -75,8 +57,5 @@ typedef struct
75 57
76 58
77void scriptSendBack(void * data); 59void scriptSendBack(void * data);
78void sendBack(gameGlobals *ourGlobals, Ecore_Con_Client *client, const char *SID, const char *message, ...);
79void sendForth(gameGlobals *ourGlobals, const char *SID, const char *message, ...);
80float timeDiff(struct timeval *now, struct timeval *then);
81 60
82#include "LuaSL_LSL_tree.h" 61#include "LuaSL_LSL_tree.h"