mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 16:57:16 +01:00
56 lines
2.7 KiB
C++
56 lines
2.7 KiB
C++
#ifndef _MISC_RADIO_HPP_
|
|
#define _MISC_RADIO_HPP_
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
#include "Common.hpp"
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
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;
|
|
};
|
|
|
|
} // Namespace:: SqMod
|
|
|
|
#endif // _MISC_RADIO_HPP_
|