Add world.c and world.h

This commit is contained in:
2026-02-17 13:15:54 +01:00
parent 4bb81d0c68
commit ea9acc1e3d
2 changed files with 36 additions and 0 deletions

13
iris_c/world.c Normal file
View File

@@ -0,0 +1,13 @@
enum quadrant_type {
empty,
asteroid_field,
star_system,
nebula,
black_hole,
white_hole,
pulsar,
quasar,
supernova,
anomaly,
singularity
}

23
iris_c/world.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef WORLD_H
#define WORLD_H
#include <stdint.h>
#define WORLD_WIDTH = 256
#define WORLD_HEIGHT = 256
typedef enum {
Q_EMPTY,
Q_ASTEROID_FIELD,
Q_STAR_SYSTEM,
Q_NEBULA,
Q_BLACK_HOLE,
Q_WHITE_HOLE,
Q_PULSAR,
Q_QUASAR,
Q_SUPERNOVA,
Q_ANOMALY,
Q_SINGULARITY
} quadrant_type;
#endif