aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-22 23:46:56 +1000
committerDavid Walter Seikel2012-02-22 23:46:56 +1000
commitf93cf73e01e9cf4b0a6be43d61ebc24b9fa64b0d (patch)
treea291eb5bf596aad17791b37a2a2826d9271742f3 /LuaSL/src/LuaSL.h
parentImplement llGetScriptName(). (diff)
downloadSledjHamr-f93cf73e01e9cf4b0a6be43d61ebc24b9fa64b0d.zip
SledjHamr-f93cf73e01e9cf4b0a6be43d61ebc24b9fa64b0d.tar.gz
SledjHamr-f93cf73e01e9cf4b0a6be43d61ebc24b9fa64b0d.tar.bz2
SledjHamr-f93cf73e01e9cf4b0a6be43d61ebc24b9fa64b0d.tar.xz
Implement callAndReturn(), use it from callAndWait(). That's most of LuaSL's side of "use OpenSim to deal with in world stuff".
Diffstat (limited to 'LuaSL/src/LuaSL.h')
-rw-r--r--LuaSL/src/LuaSL.h29
1 files changed, 18 insertions, 11 deletions
diff --git a/LuaSL/src/LuaSL.h b/LuaSL/src/LuaSL.h
index f6a5fad..6d495fa 100644
--- a/LuaSL/src/LuaSL.h
+++ b/LuaSL/src/LuaSL.h
@@ -49,17 +49,6 @@ typedef enum
49 49
50typedef struct 50typedef struct
51{ 51{
52 char SID[PATH_MAX];
53 char fileName[PATH_MAX];
54 struct timeval startTime;
55 float compileTime;
56 int bugs, warnings;
57 boolean running;
58
59} script;
60
61typedef struct
62{
63 Ecore_Evas *ee; // Our window. 52 Ecore_Evas *ee; // Our window.
64 Evas *canvas; // The canvas for drawing directly onto. 53 Evas *canvas; // The canvas for drawing directly onto.
65 Evas_Object *bg; // Our background edje, also the game specific stuff. 54 Evas_Object *bg; // Our background edje, also the game specific stuff.
@@ -72,6 +61,24 @@ typedef struct
72 boolean ui; // Wether we actually start up the UI. 61 boolean ui; // Wether we actually start up the UI.
73} gameGlobals; 62} gameGlobals;
74 63
64typedef struct
65{
66 char SID[PATH_MAX];
67 char fileName[PATH_MAX];
68 struct timeval startTime;
69 float compileTime;
70 int bugs, warnings;
71 boolean running;
72 gameGlobals *game;
73 Ecore_Con_Client *client;
74} script;
75
76typedef struct
77{
78 script *script;
79 const char message[PATH_MAX];
80} scriptMessage;
81
75 82
76void loggingStartup(gameGlobals *game); 83void loggingStartup(gameGlobals *game);
77char *getDateTime(struct tm **nowOut, char *dateOut, time_t *tiemOut); 84char *getDateTime(struct tm **nowOut, char *dateOut, time_t *tiemOut);