Working on teleports

This commit is contained in:
Vladislav Khorev committed 2026-06-09 14:43:04 +03:00
1 parent b94f02bd77
commit 0ed7021e90
9 files changed
+60 -3

No files matched your search

+6
View File
@@ -20,6 +20,12 @@ struct TeleportZone {
std::shared_ptr<Texture> activeTexture;
std::shared_ptr<Texture> inactiveTexture;
bool automatic = false;
float automaticRadius = 0.0f;
// Runtime tracking — prevents re-firing immediately on arrival at destination.
bool automaticPlayerInside = false;
bool automaticInitialized = false;
void initSparks(std::shared_ptr<Texture> activeTex, std::shared_ptr<Texture> inactiveTex);
void setActive(bool isActive);
void update(float deltaMs);