diff --git a/source/Misc/PlayerImmunity.hpp b/source/Misc/PlayerImmunity.hpp index 6662eb7b..203c9097 100644 --- a/source/Misc/PlayerImmunity.hpp +++ b/source/Misc/PlayerImmunity.hpp @@ -7,59 +7,176 @@ // ------------------------------------------------------------------------------------------------ namespace SqMod { -// ------------------------------------------------------------------------------------------------ +/* ------------------------------------------------------------------------------------------------ + * ... +*/ struct CPlayerImmunity { - // -------------------------------------------------------------------------------------------- + /* -------------------------------------------------------------------------------------------- + * ... + */ CPlayerImmunity() noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CPlayerImmunity(SQInt32 flags) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CPlayerImmunity(const CPlayerImmunity & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CPlayerImmunity(CPlayerImmunity && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ ~CPlayerImmunity(); - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CPlayerImmunity & operator = (const CPlayerImmunity & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CPlayerImmunity & operator = (CPlayerImmunity && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator == (const CPlayerImmunity & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator != (const CPlayerImmunity & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator < (const CPlayerImmunity & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator > (const CPlayerImmunity & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator <= (const CPlayerImmunity & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator >= (const CPlayerImmunity & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInteger Cmp(const CPlayerImmunity & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ operator SQInt32 () const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ operator bool () const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInt32 GetFlags() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void SetFlags(SQInt32 flags) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CPlayerImmunity & SetnGet(SQInt32 flags) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ void Apply(const CPlayer & player) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool GetBullet() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void SetBullet(bool toggle) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool GetFire() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void SetFire(bool toggle) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool GetExplosion() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void SetExplosion(bool toggle) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool GetCollision() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void SetCollision(bool toggle) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool GetMelee() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void SetMelee(bool toggle) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ void EnableAll() noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void DisableAll() noexcept; + protected: - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInt32 m_Flags; }; diff --git a/source/Misc/Radio.hpp b/source/Misc/Radio.hpp index 690bdcd5..57829c79 100644 --- a/source/Misc/Radio.hpp +++ b/source/Misc/Radio.hpp @@ -7,47 +7,138 @@ // ------------------------------------------------------------------------------------------------ namespace SqMod { -// ------------------------------------------------------------------------------------------------ +/* ------------------------------------------------------------------------------------------------ + * ... +*/ class CRadio { public: - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio() noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio(SQInt32 id) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio(const CRadio & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio(CRadio && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ ~CRadio(); - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio & operator= (const CRadio & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio & operator= (CRadio && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio operator+ (const CRadio & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio operator- (const CRadio & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio operator* (const CRadio & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio operator/ (const CRadio & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator == (const CRadio & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator != (const CRadio & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator < (const CRadio & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator > (const CRadio & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator <= (const CRadio & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator >= (const CRadio & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInteger Cmp(const CRadio & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ operator SQInt32 () const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ operator bool () const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInt32 GetID() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void SetID(SQInt32 id) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CRadio & SetnGet(SQInt32 id) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ void Apply(const CVehicle & vehicle) const noexcept; + protected: - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInt32 m_ID; }; diff --git a/source/Misc/Sound.hpp b/source/Misc/Sound.hpp index e1c649ce..15319e67 100644 --- a/source/Misc/Sound.hpp +++ b/source/Misc/Sound.hpp @@ -7,45 +7,133 @@ // ------------------------------------------------------------------------------------------------ namespace SqMod { -// ------------------------------------------------------------------------------------------------ +/* ------------------------------------------------------------------------------------------------ + * ... +*/ class CSound { public: - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CSound() noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CSound(SQInt32 id) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CSound(const CSound & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CSound(CSound && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ ~CSound(); - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CSound & operator= (const CSound & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CSound & operator= (CSound && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CSound operator+ (const CSound & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CSound operator- (const CSound & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CSound operator* (const CSound & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CSound operator/ (const CSound & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator == (const CSound & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator != (const CSound & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator < (const CSound & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator > (const CSound & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator <= (const CSound & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator >= (const CSound & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInteger Cmp(const CSound & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ operator SQInt32 () const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ operator bool () const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInt32 GetID() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void SetID(SQInt32 id) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ void Play() const noexcept; + protected: - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInt32 m_ID; }; diff --git a/source/Misc/VehicleImmunity.hpp b/source/Misc/VehicleImmunity.hpp index 15da0d58..4f44103c 100644 --- a/source/Misc/VehicleImmunity.hpp +++ b/source/Misc/VehicleImmunity.hpp @@ -7,44 +7,127 @@ // ------------------------------------------------------------------------------------------------ namespace SqMod { -// ------------------------------------------------------------------------------------------------ +/* ------------------------------------------------------------------------------------------------ + * ... +*/ struct CVehicleImmunity { - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CVehicleImmunity() noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CVehicleImmunity(SQInt32 flags) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CVehicleImmunity(const CVehicleImmunity & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CVehicleImmunity(CVehicleImmunity && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ ~CVehicleImmunity(); - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CVehicleImmunity & operator= (const CVehicleImmunity & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CVehicleImmunity & operator= (CVehicleImmunity && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator == (const CVehicleImmunity & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator != (const CVehicleImmunity & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator < (const CVehicleImmunity & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator > (const CVehicleImmunity & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator <= (const CVehicleImmunity & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator >= (const CVehicleImmunity & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInteger Cmp(const CVehicleImmunity & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ operator SQInt32 () const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ operator bool () const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInt32 GetFlags() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void SetFlags(SQInt32 flags) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CVehicleImmunity & SetnGet(SQInt32 flags) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ void Apply(const CVehicle & vehicle) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ void EnableAll() noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void DisableAll() noexcept; + protected: - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInt32 m_Flags; }; diff --git a/source/Misc/WastedSettings.hpp b/source/Misc/WastedSettings.hpp index 1da677d0..51243936 100644 --- a/source/Misc/WastedSettings.hpp +++ b/source/Misc/WastedSettings.hpp @@ -8,40 +8,104 @@ // ------------------------------------------------------------------------------------------------ namespace SqMod { -// ------------------------------------------------------------------------------------------------ +/* ------------------------------------------------------------------------------------------------ + * ... +*/ struct CWastedSettings { - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ typedef SQUnsignedInteger32 U32; typedef SQFloat F32; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ U32 DeathTimer, FadeTimer; F32 FadeInSpeed, FadeOutSpeed; Color3 FadeColor; U32 CorpseFadeStart, CorpseFadeTime; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWastedSettings() noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWastedSettings(U32 dt, U32 ft, F32 fis, F32 fos, const Color3 & fc, U32 cfs, U32 cft) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWastedSettings(const CWastedSettings & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWastedSettings(CWastedSettings && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ ~CWastedSettings(); - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWastedSettings & operator= (const CWastedSettings & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWastedSettings & operator= (CWastedSettings && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWastedSettings operator+ (const CWastedSettings & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWastedSettings operator- (const CWastedSettings & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWastedSettings operator* (const CWastedSettings & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWastedSettings operator/ (const CWastedSettings & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator== (const CWastedSettings & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator!= (const CWastedSettings & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInteger Cmp(const CWastedSettings & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ void Set() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void Get() const noexcept; }; diff --git a/source/Misc/WorldBounds.hpp b/source/Misc/WorldBounds.hpp index 6668dada..c6d95e50 100644 --- a/source/Misc/WorldBounds.hpp +++ b/source/Misc/WorldBounds.hpp @@ -8,35 +8,100 @@ // ------------------------------------------------------------------------------------------------ namespace SqMod { -// ------------------------------------------------------------------------------------------------ +/* ------------------------------------------------------------------------------------------------ + * ... +*/ struct CWorldBounds { - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ Vector2f min, max; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds() noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds(const Vector2f & vec) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds(const Vector2f & min, const Vector2f & max) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds(const CWorldBounds & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds(CWorldBounds && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ ~CWorldBounds(); - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds & operator= (const CWorldBounds & x) noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds & operator= (CWorldBounds && x) noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds operator+ (const CWorldBounds & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds operator- (const CWorldBounds & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds operator* (const CWorldBounds & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ CWorldBounds operator/ (const CWorldBounds & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator== (const CWorldBounds & x) const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ bool operator!= (const CWorldBounds & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ SQInteger Cmp(const CWorldBounds & x) const noexcept; - // -------------------------------------------------------------------------------------------- + + /* -------------------------------------------------------------------------------------------- + * ... + */ void Set() const noexcept; + + /* -------------------------------------------------------------------------------------------- + * ... + */ void Get() const noexcept; };