2015-09-30 02:56:11 +02:00
|
|
|
#ifndef _MISC_WASTED_SETTINGS_HPP_
|
|
|
|
#define _MISC_WASTED_SETTINGS_HPP_
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
#include "Common.hpp"
|
|
|
|
#include "Base/Color3.hpp"
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
2015-10-29 21:59:35 +01:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
struct CWastedSettings
|
|
|
|
{
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
typedef SQUnsignedInteger32 U32;
|
|
|
|
typedef SQFloat F32;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
U32 DeathTimer, FadeTimer;
|
|
|
|
F32 FadeInSpeed, FadeOutSpeed;
|
|
|
|
Color3 FadeColor;
|
|
|
|
U32 CorpseFadeStart, CorpseFadeTime;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CWastedSettings() noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CWastedSettings(U32 dt, U32 ft, F32 fis, F32 fos, const Color3 & fc, U32 cfs, U32 cft) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CWastedSettings(const CWastedSettings & x) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CWastedSettings(CWastedSettings && x) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
~CWastedSettings();
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CWastedSettings & operator= (const CWastedSettings & x) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CWastedSettings & operator= (CWastedSettings && x) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CWastedSettings operator+ (const CWastedSettings & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CWastedSettings operator- (const CWastedSettings & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CWastedSettings operator* (const CWastedSettings & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CWastedSettings operator/ (const CWastedSettings & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
bool operator== (const CWastedSettings & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
bool operator!= (const CWastedSettings & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
SQInteger Cmp(const CWastedSettings & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
void Set() const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
void Get() const noexcept;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // Namespace:: SqMod
|
|
|
|
|
|
|
|
#endif // _MISC_WASTED_SETTINGS_HPP_
|