aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-03-04 23:32:47 +0000
committerrodri <rgl@antares-labs.eu>2023-03-04 23:32:47 +0000
commit941d146cea7d0c2ce872e599622a5c9e01d37fe2 (patch)
tree0fe67a2d7f4f906b1e33acee2b1d70d2e03e1fa5 /dat.h
parent9712ec712cc6a57d416ef2b1e86d15ef161016df (diff)
downloadmusw-941d146cea7d0c2ce872e599622a5c9e01d37fe2.tar.gz
musw-941d146cea7d0c2ce872e599622a5c9e01d37fe2.tar.bz2
musw-941d146cea7d0c2ce872e599622a5c9e01d37fe2.zip
implemented client reconnection loop.
currently not working. there seems to be a problem with 9front's udp stack. needs investigation.
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/dat.h b/dat.h
index 9a27f17..67fcf3b 100644
--- a/dat.h
+++ b/dat.h
@@ -57,6 +57,8 @@ enum {
typedef struct VModel VModel;
typedef struct Sprite Sprite;
+typedef struct Keymap Keymap;
+typedef struct Scene Scene;
typedef struct Particle Particle;
typedef struct Bullet Bullet;
typedef struct Ship Ship;
@@ -99,6 +101,22 @@ struct Sprite
void (*draw)(Sprite*, Image*, Point);
};
+struct Keymap
+{
+ Rune key;
+ KeyOp op;
+};
+
+struct Scene
+{
+ char *title;
+ int state;
+
+ Scene *(*δ)(Scene*);
+ void (*step)(Scene*);
+ void (*draw)(Scene*);
+};
+
struct Particle
{
Point2 p, v;