aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2026-01-14 09:08:06 +0000
committernathan <nathansmith@disroot.org>2026-01-14 09:08:06 +0000
commitbbce25930d9910c715245f5d87a108ab1dac3426 (patch)
tree2820245b8c6714a3ba69981a34cc7aafdbf8b8fb /src/utils.h
parent2ab36473a20ec33e8d3cae810384b4f28505b4f9 (diff)
downloadFindThings-bbce25930d9910c715245f5d87a108ab1dac3426.tar.gz
FindThings-bbce25930d9910c715245f5d87a108ab1dac3426.tar.bz2
FindThings-bbce25930d9910c715245f5d87a108ab1dac3426.zip
Mad libs thingy working
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/utils.h b/src/utils.h
index 7947041..ffcc116 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -59,6 +59,8 @@
#define RANDOM_DIRECTION_UNITS 4096
+typedef int Seed;
+
// Typedef hackery.
typedef struct Game Game;
typedef struct World World;
@@ -68,8 +70,8 @@ typedef enum FTError {
FTSUCCESS = 0
} FTError;
-Vector2 randomDirection2(int seed, int* nextSeed);
-Vector3 randomDirection3(int seed, int* nextSeed);
+Vector2 randomDirection2(int seed, Seed* nextSeed);
+Vector3 randomDirection3(int seed, Seed* nextSeed);
Image colorsToImage(Color* colors, int width, int height);