diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-27 14:49:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 14:49:26 +0200 |
commit | 5d266ace648fcaf640ed50e4baf8cd4f90d64769 (patch) | |
tree | 22408706372df98a5efabc646ca4314ea6909afd /src/core/Ropes.h | |
parent | Fix/change some Windows define (diff) | |
parent | CHeli and CRopes done (diff) | |
download | re3-5d266ace648fcaf640ed50e4baf8cd4f90d64769.tar re3-5d266ace648fcaf640ed50e4baf8cd4f90d64769.tar.gz re3-5d266ace648fcaf640ed50e4baf8cd4f90d64769.tar.bz2 re3-5d266ace648fcaf640ed50e4baf8cd4f90d64769.tar.lz re3-5d266ace648fcaf640ed50e4baf8cd4f90d64769.tar.xz re3-5d266ace648fcaf640ed50e4baf8cd4f90d64769.tar.zst re3-5d266ace648fcaf640ed50e4baf8cd4f90d64769.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Ropes.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/Ropes.h b/src/core/Ropes.h new file mode 100644 index 00000000..7930fa98 --- /dev/null +++ b/src/core/Ropes.h @@ -0,0 +1,31 @@ +#pragma once + +class CRope +{ +public: + bool m_bActive; + bool m_bWasRegistered; + bool m_unk; + uintptr m_id; + uint32 m_updateTimer; + CVector m_pos[32]; + CVector m_speed[32]; + + void Update(void); + void Render(void); +}; + +class CRopes +{ + static CRope aRopes[8]; + +public: + + static void Init(void); + static void Update(void); + static void Render(void); + static bool RegisterRope(uintptr id, CVector pos, bool setUpdateTimer); + static void SetSpeedOfTopNode(uintptr id, CVector speed); + static bool FindCoorsAlongRope(uintptr id, float t, CVector *coors); + static bool CreateRopeWithSwatComingDown(CVector pos); +}; |