first commit

This commit is contained in:
murdle
2026-03-01 02:38:58 +02:00
commit 19250b9db4
19111 changed files with 4358159 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
class VillageSiege
{
private:
Level *level;
bool hasSetupSiege;
int siegeState;
int siegeCount;
int nextSpawnTime;
weak_ptr<Village> village;
int spawnX, spawnY, spawnZ;
static const int SIEGE_NOT_INITED = -1;
static const int SIEGE_CAN_ACTIVATE = 0;
static const int SIEGE_TONIGHT = 1;
static const int SIEGE_DONE = 2;
public:
VillageSiege(Level *level);
void tick();
private:
bool tryToSetupSiege();
bool trySpawn();
Vec3 *findRandomSpawnPos(int x, int y, int z);
};