mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-29 21:47:12 +02:00
Discarded the noexcept specifier entirely.
This commit is contained in:
@ -22,87 +22,87 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Default constructor.
|
||||
*/
|
||||
CWeapon() noexcept;
|
||||
CWeapon();
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct an instance of this type and reference the model specified.
|
||||
*/
|
||||
CWeapon(SQInt32 id) noexcept;
|
||||
CWeapon(SQInt32 id);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct an instance of this type and reference the model specified.
|
||||
*/
|
||||
CWeapon(SQInt32 id, SQInt32 ammo) noexcept;
|
||||
CWeapon(SQInt32 id, SQInt32 ammo);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct an instance of this type and reference the model extracted from the specified name.
|
||||
*/
|
||||
CWeapon(const SQChar * name, SQInt32 id, SQInt32 ammo) noexcept;
|
||||
CWeapon(const SQChar * name, SQInt32 id, SQInt32 ammo);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Copy constructor.
|
||||
*/
|
||||
CWeapon(const CWeapon & w) noexcept;
|
||||
CWeapon(const CWeapon & w);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Move constructor.
|
||||
*/
|
||||
CWeapon(CWeapon && w) noexcept;
|
||||
CWeapon(CWeapon && w);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Destructor.
|
||||
*/
|
||||
~CWeapon() noexcept;
|
||||
~CWeapon();
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Copy assignment operator.
|
||||
*/
|
||||
CWeapon & operator = (const CWeapon & w) noexcept;
|
||||
CWeapon & operator = (const CWeapon & w);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Move assignment operator.
|
||||
*/
|
||||
CWeapon & operator = (CWeapon && w) noexcept;
|
||||
CWeapon & operator = (CWeapon && w);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Model identifier assignment operator.
|
||||
*/
|
||||
CWeapon & operator = (SQInt32 id) noexcept;
|
||||
CWeapon & operator = (SQInt32 id);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Equality comparison operator.
|
||||
*/
|
||||
bool operator == (const CWeapon & w) const noexcept;
|
||||
bool operator == (const CWeapon & w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Inequality comparison operator.
|
||||
*/
|
||||
bool operator != (const CWeapon & w) const noexcept;
|
||||
bool operator != (const CWeapon & w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Less than comparison operator.
|
||||
*/
|
||||
bool operator < (const CWeapon & w) const noexcept;
|
||||
bool operator < (const CWeapon & w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Greater than comparison operator.
|
||||
*/
|
||||
bool operator > (const CWeapon & w) const noexcept;
|
||||
bool operator > (const CWeapon & w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Less than or equal comparison operator.
|
||||
*/
|
||||
bool operator <= (const CWeapon & w) const noexcept;
|
||||
bool operator <= (const CWeapon & w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Greater than or equal comparison operator.
|
||||
*/
|
||||
bool operator >= (const CWeapon & w) const noexcept;
|
||||
bool operator >= (const CWeapon & w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Implicit conversion to weapon identifier.
|
||||
*/
|
||||
operator SQInt32 () const noexcept
|
||||
operator SQInt32 () const
|
||||
{
|
||||
return m_ID;
|
||||
}
|
||||
@ -110,7 +110,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Implicit conversion to weapon identifier.
|
||||
*/
|
||||
operator Int64 () const noexcept
|
||||
operator Int64 () const
|
||||
{
|
||||
return _SCI64(m_ID);
|
||||
}
|
||||
@ -118,7 +118,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Implicit conversion to boolean.
|
||||
*/
|
||||
operator bool () const noexcept
|
||||
operator bool () const
|
||||
{
|
||||
return IsWeaponValid(m_ID);
|
||||
}
|
||||
@ -126,7 +126,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Negation operator.
|
||||
*/
|
||||
bool operator ! () const noexcept
|
||||
bool operator ! () const
|
||||
{
|
||||
return !IsWeaponValid(m_ID);
|
||||
}
|
||||
@ -134,144 +134,144 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Used by the script to compare two instances of this type.
|
||||
*/
|
||||
SQInteger Cmp(const CWeapon & w) const noexcept;
|
||||
SQInteger Cmp(const CWeapon & w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Convert this type to a string.
|
||||
*/
|
||||
const SQChar * ToString() const noexcept;
|
||||
const SQChar * ToString() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the identifier referenced by this instance.
|
||||
*/
|
||||
SQInteger GetID() const noexcept;
|
||||
SQInteger GetID() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the identifier referenced by this instance.
|
||||
*/
|
||||
void SetID(SQInt32 id) noexcept;
|
||||
void SetID(SQInt32 id);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the identifier that this insance should reference and
|
||||
* get a reference to the instance to chain operations.
|
||||
*/
|
||||
CWeapon & SetnGet(SQInt32 id) noexcept;
|
||||
CWeapon & SetnGet(SQInt32 id);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the global tag.
|
||||
*/
|
||||
const SQChar * GetGlobalTag() const noexcept;
|
||||
const SQChar * GetGlobalTag() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the global tag.
|
||||
*/
|
||||
void SetGlobalTag(const SQChar * tag) const noexcept;
|
||||
void SetGlobalTag(const SQChar * tag) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the global data.
|
||||
*/
|
||||
SqObj & GetGlobalData() const noexcept;
|
||||
SqObj & GetGlobalData() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the global data.
|
||||
*/
|
||||
void SetGlobalData(SqObj & data) const noexcept;
|
||||
void SetGlobalData(SqObj & data) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the local tag.
|
||||
*/
|
||||
const SQChar * GetLocalTag() const noexcept;
|
||||
const SQChar * GetLocalTag() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the local tag.
|
||||
*/
|
||||
void SetLocalTag(const SQChar * tag) noexcept;
|
||||
void SetLocalTag(const SQChar * tag);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the local data.
|
||||
*/
|
||||
SqObj & GetLocalData() noexcept;
|
||||
SqObj & GetLocalData();
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the local data.
|
||||
*/
|
||||
void SetLocalData(SqObj & data) noexcept;
|
||||
void SetLocalData(SqObj & data);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced model identifier is valid.
|
||||
*/
|
||||
bool IsValid() const noexcept;
|
||||
bool IsValid() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the name of the referenced model.
|
||||
*/
|
||||
const SQChar * GetName() const noexcept;
|
||||
const SQChar * GetName() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the identifier of the referenced model.
|
||||
*/
|
||||
void SetName(const SQChar * name) noexcept;
|
||||
void SetName(const SQChar * name);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the ammount of ammo associated with this instance.
|
||||
*/
|
||||
SQInteger GetAmmo() const noexcept;
|
||||
SQInteger GetAmmo() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the ammount of ammo associated with this instance.
|
||||
*/
|
||||
void SetAmmo(SQInt32 amount) noexcept;
|
||||
void SetAmmo(SQInt32 amount);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced weapon identifier points to a weapon that may not be used by
|
||||
* another player to perform a kill. Such as a player fall, drown, explosion etc.
|
||||
*/
|
||||
bool IsNatural() const noexcept;
|
||||
bool IsNatural() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the value in the specified field from the weapon data.
|
||||
*/
|
||||
SQFloat GetDataValue(SQInt32 field) const noexcept;
|
||||
SQFloat GetDataValue(SQInt32 field) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the value in the specified field from the weapon data.
|
||||
*/
|
||||
void SetDataValue(SQInt32 field, SQFloat value) const noexcept;
|
||||
void SetDataValue(SQInt32 field, SQFloat value) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Reset the data for the referenced weapon identifier.
|
||||
*/
|
||||
void ResetData() const noexcept;
|
||||
void ResetData() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Reset the foe;d data data for the referenced weapon identifier.
|
||||
*/
|
||||
void ResetData(SQInt32 field) const noexcept;
|
||||
void ResetData(SQInt32 field) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the data at the specified field was modified.
|
||||
*/
|
||||
bool IsDataModified(SQInt32 field) const noexcept;
|
||||
bool IsDataModified(SQInt32 field) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the weapon of the specified player instance to the referenced weapon identifier.
|
||||
*/
|
||||
void SetOn(const Reference< CPlayer > & player) const noexcept;
|
||||
void SetOn(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Give the referenced weapon identifier to the specified player instance.
|
||||
*/
|
||||
void GiveTo(const Reference< CPlayer > & player) const noexcept;
|
||||
void GiveTo(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the weapon of the specified player instance to the referenced weapon identifier.
|
||||
*/
|
||||
void SetOn(const Reference< CPlayer > & player, SQInt32 ammo) const noexcept;
|
||||
void SetOn(const Reference< CPlayer > & player, SQInt32 ammo) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Give the referenced weapon identifier to the specified player instance.
|
||||
*/
|
||||
void GiveTo(const Reference< CPlayer > & player, SQInt32 ammo) const noexcept;
|
||||
void GiveTo(const Reference< CPlayer > & player, SQInt32 ammo) const;
|
||||
|
||||
private:
|
||||
|
||||
|
Reference in New Issue
Block a user