aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2021-07-21 19:31:36 +0000
committerrodri <rgl@antares-labs.eu>2021-07-21 19:31:36 +0000
commit10f8e5542686760b772abf40929a51fb63afad93 (patch)
treeca8bc50957ade5f4846f6b77dedfeb0c37cda4be /dat.h
parentd276cd9961e05c184d4fd653bb9e92a288a09ec3 (diff)
downloadmusw-10f8e5542686760b772abf40929a51fb63afad93.tar.gz
musw-10f8e5542686760b772abf40929a51fb63afad93.tar.bz2
musw-10f8e5542686760b772abf40929a51fb63afad93.zip
implemented very basic server broadcasting.
got rid of unnecessary (at least for now) code. brought some e-funcs.
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/dat.h b/dat.h
index c93b24e..97e0719 100644
--- a/dat.h
+++ b/dat.h
@@ -1,22 +1,11 @@
+#define FPS2MS(fps) (1000/(fps))
+
typedef struct GameState GameState;
typedef struct Derivative Derivative;
-typedef struct Stats Stats;
-typedef struct Sprite Sprite;
-
-struct Stats
-{
- double cur;
- double total;
- double min, avg, max;
- uvlong nupdates;
-
- void (*update)(Stats*, double);
-};
struct GameState
{
double x, v;
- Stats stats;
};
struct Derivative