Added darklands

This commit is contained in:
Vladislav Khorev committed 2026-05-16 18:32:23 +03:00
1 parent 4e9eef1863
commit c086fe1ef0
16 files changed
+351 -4

No files matched your search

+17
View File
@@ -83,6 +83,11 @@ namespace ZL
std::vector<TriggerZone> triggerZones;
bool isDarklands = false;
// Returns false if a transition is already in progress (guards against double-press).
bool startDarklandsTransition();
// Navigation editor — toggle with 'N', save with 'B', right-click to finalize polygon
bool navigationEditorMode = false;
@@ -117,6 +122,7 @@ namespace ZL
void drawGame();
void drawShadowDepthPass();
void drawGameWithShadows();
void drawGameDarklands();
bool setNavigationAreaAvailable(const std::string& areaName, bool available);
@@ -137,6 +143,17 @@ namespace ZL
Inventory& inventory;
private:
// White-flash transition state for darklands toggle
float darklandsFlashAlpha = 0.0f;
bool darklandsFlashActive = false;
bool darklandsFlashFadingIn = true;
VertexRenderStruct darklandsFlashQuad;
float darklandsFlashQuadW = -1.0f;
float darklandsFlashQuadH = -1.0f;
void updateDarklandsFlash(int64_t deltaMs);
void drawDarklandsFlash();
void resolveCharacterCollisions();
void updateDynamicReplans(int64_t deltaMs);
void loadTeleportZones(const std::string& jsonPath, const char* zipFile);