Working on scripts

This commit is contained in:
Vladislav Khorev committed 2026-05-17 14:39:02 +03:00
1 parent c086fe1ef0
commit 4044acefb2
35 files changed
+107190 -185

No files matched your search

+5 -13
View File
@@ -83,10 +83,13 @@ namespace ZL
std::vector<TriggerZone> triggerZones;
// Set by Game and kept in sync across location transitions.
// Read by draw functions and raycast — do not write from Location code.
bool isDarklands = false;
// Returns false if a transition is already in progress (guards against double-press).
bool startDarklandsTransition();
// Set by Game after setup(). Lua and onDeathAnimComplete call this to
// request the transition without coupling Location to Game directly.
std::function<bool()> requestDarklandsTransition;
// Navigation editor — toggle with 'N', save with 'B', right-click to finalize polygon
bool navigationEditorMode = false;
@@ -143,17 +146,6 @@ 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);