aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
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);