aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/extantz/build.lua2
-rw-r--r--src/extantz/extantz.c6
-rw-r--r--src/extantz/extantz.h1
-rw-r--r--src/extantz/scenri.h2
4 files changed, 10 insertions, 1 deletions
diff --git a/src/extantz/build.lua b/src/extantz/build.lua
index 99362d1..618de3f 100755
--- a/src/extantz/build.lua
+++ b/src/extantz/build.lua
@@ -13,7 +13,7 @@ if 'nil' == type(dir) then
13 dir = workingDir 13 dir = workingDir
14end 14end
15 15
16CFLAGS = CFLAGS .. ' -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include -I../GuiLua' 16CFLAGS = CFLAGS .. ' -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include -I../GuiLua -I../love'
17LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux' 17LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux'
18libs = libs .. ' -lIrrlicht -lephysics -lGL -lbz2 -lGuiLua -lwinFang -lRunnr' 18libs = libs .. ' -lIrrlicht -lephysics -lGL -lbz2 -lGuiLua -lwinFang -lRunnr'
19 19
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c
index 2ccb97c..e611e4d 100644
--- a/src/extantz/extantz.c
+++ b/src/extantz/extantz.c
@@ -11,6 +11,8 @@ static void on_pixels(void *data, Evas_Object *obj);
11int logDom = -1; // Our logging domain. 11int logDom = -1; // Our logging domain.
12globals ourGlobals; 12globals ourGlobals;
13static Eina_Strbuf *serverStream; 13static Eina_Strbuf *serverStream;
14static char *myKey = "12345678-1234-4321-abcd-0123456789ab";
15//static char *myName = "onefang rejected";
14 16
15 17
16 18
@@ -20,6 +22,10 @@ static Eina_Bool _add(void *data, int type, Ecore_Con_Event_Server_Add *ev)
20 22
21 PI("Connected to love server."); 23 PI("Connected to love server.");
22 ourGlobals->server = ev->server; 24 ourGlobals->server = ev->server;
25
26 // Pretend we logged in.
27 strcpy(ourGlobals->uuid, myKey);
28
23 if (ourGlobals->LSLGuiMess) ourGlobals->LSLGuiMess->server = ourGlobals->server; 29 if (ourGlobals->LSLGuiMess) ourGlobals->LSLGuiMess->server = ourGlobals->server;
24 if (ourGlobals->purkle) ourGlobals->purkle->server = ourGlobals->server; 30 if (ourGlobals->purkle) ourGlobals->purkle->server = ourGlobals->server;
25 31
diff --git a/src/extantz/extantz.h b/src/extantz/extantz.h
index ca62bdc..1b49f45 100644
--- a/src/extantz/extantz.h
+++ b/src/extantz/extantz.h
@@ -235,6 +235,7 @@ typedef struct _globals
235 GuiLua *LSLGuiMess; 235 GuiLua *LSLGuiMess;
236 236
237 Ecore_Con_Server *server; 237 Ecore_Con_Server *server;
238 char uuid[42];
238 239
239} globals; 240} globals;
240 241
diff --git a/src/extantz/scenri.h b/src/extantz/scenri.h
index 7889d22..93b3f16 100644
--- a/src/extantz/scenri.h
+++ b/src/extantz/scenri.h
@@ -1,6 +1,8 @@
1#ifndef _SCENRI_H_ 1#ifndef _SCENRI_H_
2#define _SCENRI_H_ 2#define _SCENRI_H_
3 3
4#include "love.h"
5
4typedef struct _cameraMove 6typedef struct _cameraMove
5{ 7{
6 float x, y, z; 8 float x, y, z;