Remove internal server cuz we have it in the networking branch.

Minor refactoring (changed all Chunk* world or Chunk world[] to World world)
This commit is contained in:
milkwx3
2026-06-24 16:00:56 +03:00
parent cf53a42620
commit 3ad54bd59d
13 changed files with 137 additions and 522 deletions
+7 -3
View File
@@ -101,7 +101,7 @@
#define TPS 30.0
#define TPS_DIV 1.0 / TPS
//Rendering
#define RENDER_DISTANCE 16
#define RENDER_DISTANCE 128
#define RENDER_DISTANCE_SQUARED RENDER_DISTANCE*RENDER_DISTANCE
//Game stuff
@@ -179,7 +179,7 @@ struct Chunk {
uint16_t opaqueMask[CHUNK_DATA_SIZE/16];
uint16_t airMask[CHUNK_DATA_SIZE/16];
uint8_t highestBlock[CHUNK_SIZE*CHUNK_SIZE];
uint8_t lights[CHUNK_DATA_SIZE];
};
#ifndef SERVER
struct ChunkRenderData {
@@ -306,4 +306,8 @@ struct Particle {
Texture2D texture;
int lifetime;
int data[8];
};
};
struct World
{
Chunk chunks[MAX_WORLD_AREA];
};