mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-08-05 15:41:47 +02:00
Discarded the noexcept specifier entirely.
This commit is contained in:
@@ -5,14 +5,14 @@
|
||||
namespace SqMod {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CBlip::CBlip(const Reference< CBlip > & o) noexcept
|
||||
CBlip::CBlip(const Reference< CBlip > & o)
|
||||
: Reference(o)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger CBlip::GetWorld() const noexcept
|
||||
SQInteger CBlip::GetWorld() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -26,7 +26,7 @@ SQInteger CBlip::GetWorld() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger CBlip::GetScale() const noexcept
|
||||
SQInteger CBlip::GetScale() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -40,7 +40,7 @@ SQInteger CBlip::GetScale() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CBlip::GetPosition() const noexcept
|
||||
const Vector3 & CBlip::GetPosition() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -55,7 +55,7 @@ const Vector3 & CBlip::GetPosition() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CBlip::GetPositionX() const noexcept
|
||||
SQFloat CBlip::GetPositionX() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -70,7 +70,7 @@ SQFloat CBlip::GetPositionX() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CBlip::GetPositionY() const noexcept
|
||||
SQFloat CBlip::GetPositionY() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -85,7 +85,7 @@ SQFloat CBlip::GetPositionY() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CBlip::GetPositionZ() const noexcept
|
||||
SQFloat CBlip::GetPositionZ() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -100,7 +100,7 @@ SQFloat CBlip::GetPositionZ() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Color4 & CBlip::GetColor() const noexcept
|
||||
const Color4 & CBlip::GetColor() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -115,7 +115,7 @@ const Color4 & CBlip::GetColor() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CBlip::GetSprID() const noexcept
|
||||
SQInt32 CBlip::GetSprID() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -134,7 +134,7 @@ Reference< CBlip > CreateBaseBlip_ES(SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 scale,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQInt32 sprid) noexcept
|
||||
SQInt32 sprid)
|
||||
{
|
||||
return _Core->NewBlip(SQMOD_UNKNOWN, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -145,7 +145,7 @@ Reference< CBlip > CreateBaseBlip_ES(SQInt32 world,
|
||||
SQInt32 scale,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQInt32 sprid,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewBlip(SQMOD_UNKNOWN, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
||||
header, payload);
|
||||
@@ -156,7 +156,7 @@ Reference< CBlip > CreateBaseBlip_EF(SQInt32 index, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 scale,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQInt32 sprid) noexcept
|
||||
SQInt32 sprid)
|
||||
{
|
||||
return _Core->NewBlip(index, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -167,7 +167,7 @@ Reference< CBlip > CreateBaseBlip_EF(SQInt32 index, SQInt32 world,
|
||||
SQInt32 scale,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQInt32 sprid,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewBlip(index, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
||||
header, payload);
|
||||
@@ -175,7 +175,7 @@ Reference< CBlip > CreateBaseBlip_EF(SQInt32 index, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CBlip > CreateBaseBlip_CS(SQInt32 world, const Vector3 & pos,
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid) noexcept
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid)
|
||||
{
|
||||
return _Core->NewBlip(SQMOD_UNKNOWN, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -183,7 +183,7 @@ Reference< CBlip > CreateBaseBlip_CS(SQInt32 world, const Vector3 & pos,
|
||||
|
||||
Reference< CBlip > CreateBaseBlip_CS(SQInt32 world, const Vector3 & pos,
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewBlip(SQMOD_UNKNOWN, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
||||
header, payload);
|
||||
@@ -191,7 +191,7 @@ Reference< CBlip > CreateBaseBlip_CS(SQInt32 world, const Vector3 & pos,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CBlip > CreateBaseBlip_CF(SQInt32 index, SQInt32 world, const Vector3 & pos,
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid) noexcept
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid)
|
||||
{
|
||||
return _Core->NewBlip(index, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -199,7 +199,7 @@ Reference< CBlip > CreateBaseBlip_CF(SQInt32 index, SQInt32 world, const Vector3
|
||||
|
||||
Reference< CBlip > CreateBaseBlip_CF(SQInt32 index, SQInt32 world, const Vector3 & pos,
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewBlip(index, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
||||
header, payload);
|
||||
@@ -210,7 +210,7 @@ CBlip CreateBlip_ES(SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 scale,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQInt32 sprid) noexcept
|
||||
SQInt32 sprid)
|
||||
{
|
||||
return _Core->NewBlip(SQMOD_UNKNOWN, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -221,7 +221,7 @@ CBlip CreateBlip_ES(SQInt32 world,
|
||||
SQInt32 scale,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQInt32 sprid,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewBlip(SQMOD_UNKNOWN, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
||||
header, payload);
|
||||
@@ -232,7 +232,7 @@ CBlip CreateBlip_EF(SQInt32 index, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 scale,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQInt32 sprid) noexcept
|
||||
SQInt32 sprid)
|
||||
{
|
||||
return _Core->NewBlip(index, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -243,7 +243,7 @@ CBlip CreateBlip_EF(SQInt32 index, SQInt32 world,
|
||||
SQInt32 scale,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQInt32 sprid,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewBlip(index, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
||||
header, payload);
|
||||
@@ -251,7 +251,7 @@ CBlip CreateBlip_EF(SQInt32 index, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CBlip CreateBlip_CS(SQInt32 world, const Vector3 & pos,
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid) noexcept
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid)
|
||||
{
|
||||
return _Core->NewBlip(SQMOD_UNKNOWN, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -259,7 +259,7 @@ CBlip CreateBlip_CS(SQInt32 world, const Vector3 & pos,
|
||||
|
||||
CBlip CreateBlip_CS(SQInt32 world, const Vector3 & pos,
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewBlip(SQMOD_UNKNOWN, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
||||
header, payload);
|
||||
@@ -267,7 +267,7 @@ CBlip CreateBlip_CS(SQInt32 world, const Vector3 & pos,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CBlip CreateBlip_CF(SQInt32 index, SQInt32 world, const Vector3 & pos,
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid) noexcept
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid)
|
||||
{
|
||||
return _Core->NewBlip(index, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -275,7 +275,7 @@ CBlip CreateBlip_CF(SQInt32 index, SQInt32 world, const Vector3 & pos,
|
||||
|
||||
CBlip CreateBlip_CF(SQInt32 index, SQInt32 world, const Vector3 & pos,
|
||||
SQInt32 scale, const Color4 & color, SQInt32 sprid,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewBlip(index, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
||||
header, payload);
|
||||
|
@@ -22,47 +22,47 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct a reference from a base reference.
|
||||
*/
|
||||
CBlip(const Reference< CBlip > & o) noexcept;
|
||||
CBlip(const Reference< CBlip > & o);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the world in which the referenced blip instance exists.
|
||||
*/
|
||||
SQInteger GetWorld() const noexcept;
|
||||
SQInteger GetWorld() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the scale of the referenced blip instance.
|
||||
*/
|
||||
SQInteger GetScale() const noexcept;
|
||||
SQInteger GetScale() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the position of the referenced blip instance.
|
||||
*/
|
||||
const Vector3 & GetPosition() const noexcept;
|
||||
const Vector3 & GetPosition() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the x axis position of the referenced blip instance.
|
||||
*/
|
||||
SQFloat GetPositionX() const noexcept;
|
||||
SQFloat GetPositionX() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the y axis position of the referenced blip instance.
|
||||
*/
|
||||
SQFloat GetPositionY() const noexcept;
|
||||
SQFloat GetPositionY() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the z axis position of the referenced blip instance.
|
||||
*/
|
||||
SQFloat GetPositionZ() const noexcept;
|
||||
SQFloat GetPositionZ() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the color of the referenced blip instance.
|
||||
*/
|
||||
const Color4 & GetColor() const noexcept;
|
||||
const Color4 & GetColor() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the sprite identifier of the referenced blip instance.
|
||||
*/
|
||||
SQInt32 GetSprID() const noexcept;
|
||||
SQInt32 GetSprID() const;
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
@@ -16,14 +16,14 @@ SQUint32 CCheckpoint::s_ColorB;
|
||||
SQUint32 CCheckpoint::s_ColorA;
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CCheckpoint::CCheckpoint(const Reference< CCheckpoint > & o) noexcept
|
||||
CCheckpoint::CCheckpoint(const Reference< CCheckpoint > & o)
|
||||
: Reference(o)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CCheckpoint::IsStreamedFor(const Reference< CPlayer > & player) const noexcept
|
||||
bool CCheckpoint::IsStreamedFor(const Reference< CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -42,7 +42,7 @@ bool CCheckpoint::IsStreamedFor(const Reference< CPlayer > & player) const noexc
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CCheckpoint::GetWorld() const noexcept
|
||||
SQInt32 CCheckpoint::GetWorld() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -57,7 +57,7 @@ SQInt32 CCheckpoint::GetWorld() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CCheckpoint::SetWorld(SQInt32 world) const noexcept
|
||||
void CCheckpoint::SetWorld(SQInt32 world) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -70,7 +70,7 @@ void CCheckpoint::SetWorld(SQInt32 world) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Color4 & CCheckpoint::GetColor() const noexcept
|
||||
const Color4 & CCheckpoint::GetColor() const
|
||||
{
|
||||
// Clear any previous color
|
||||
s_Color4.Clear();
|
||||
@@ -89,7 +89,7 @@ const Color4 & CCheckpoint::GetColor() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CCheckpoint::SetColor(const Color4 & col) const noexcept
|
||||
void CCheckpoint::SetColor(const Color4 & col) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -102,7 +102,7 @@ void CCheckpoint::SetColor(const Color4 & col) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CCheckpoint::SetColorEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept
|
||||
void CCheckpoint::SetColorEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -115,7 +115,7 @@ void CCheckpoint::SetColorEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CCheckpoint::GetPosition() const noexcept
|
||||
const Vector3 & CCheckpoint::GetPosition() const
|
||||
{
|
||||
// Clear any previous position
|
||||
s_Vector3.Clear();
|
||||
@@ -133,7 +133,7 @@ const Vector3 & CCheckpoint::GetPosition() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CCheckpoint::SetPosition(const Vector3 & pos) const noexcept
|
||||
void CCheckpoint::SetPosition(const Vector3 & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -146,7 +146,7 @@ void CCheckpoint::SetPosition(const Vector3 & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CCheckpoint::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CCheckpoint::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -159,7 +159,7 @@ void CCheckpoint::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CCheckpoint::GetRadius() const noexcept
|
||||
SQFloat CCheckpoint::GetRadius() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -174,7 +174,7 @@ SQFloat CCheckpoint::GetRadius() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CCheckpoint::SetRadius(SQFloat radius) const noexcept
|
||||
void CCheckpoint::SetRadius(SQFloat radius) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -187,7 +187,7 @@ void CCheckpoint::SetRadius(SQFloat radius) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CPlayer > CCheckpoint::GetOwner() const noexcept
|
||||
Reference< CPlayer > CCheckpoint::GetOwner() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -202,7 +202,7 @@ Reference< CPlayer > CCheckpoint::GetOwner() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CCheckpoint::GetOwnerID() const noexcept
|
||||
SQInt32 CCheckpoint::GetOwnerID() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -220,7 +220,7 @@ SQInt32 CCheckpoint::GetOwnerID() const noexcept
|
||||
Reference< CCheckpoint > CreateBaseCheckpoint_PEF(SQInt32 player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQFloat radius) noexcept
|
||||
SQFloat radius)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, x, y, z, r, g, b, a, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -230,7 +230,7 @@ Reference< CCheckpoint > CreateBaseCheckpoint_PEF(SQInt32 player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, x, y, z, r, g, b, a, radius,
|
||||
header, payload);
|
||||
@@ -238,7 +238,7 @@ Reference< CCheckpoint > CreateBaseCheckpoint_PEF(SQInt32 player, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CCheckpoint > CreateBaseCheckpoint_PCF(SQInt32 player, SQInt32 world,
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius) noexcept
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, color.a, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -246,7 +246,7 @@ Reference< CCheckpoint > CreateBaseCheckpoint_PCF(SQInt32 player, SQInt32 world,
|
||||
|
||||
Reference< CCheckpoint > CreateBaseCheckpoint_PCF(SQInt32 player, SQInt32 world,
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, color.a, radius,
|
||||
header, payload);
|
||||
@@ -256,7 +256,7 @@ Reference< CCheckpoint > CreateBaseCheckpoint_PCF(SQInt32 player, SQInt32 world,
|
||||
Reference< CCheckpoint > CreateBaseCheckpoint_EF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQFloat radius) noexcept
|
||||
SQFloat radius)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, x, y, z, r, g, b, a, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -266,7 +266,7 @@ Reference< CCheckpoint > CreateBaseCheckpoint_EF(const Reference< CPlayer > & pl
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, x, y, z, r, g, b, a, radius,
|
||||
header, payload);
|
||||
@@ -274,7 +274,7 @@ Reference< CCheckpoint > CreateBaseCheckpoint_EF(const Reference< CPlayer > & pl
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CCheckpoint > CreateBaseCheckpoint_CF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius) noexcept
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, color.a, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -282,7 +282,7 @@ Reference< CCheckpoint > CreateBaseCheckpoint_CF(const Reference< CPlayer > & pl
|
||||
|
||||
Reference< CCheckpoint > CreateBaseCheckpoint_CF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, color.a, radius,
|
||||
header, payload);
|
||||
@@ -292,7 +292,7 @@ Reference< CCheckpoint > CreateBaseCheckpoint_CF(const Reference< CPlayer > & pl
|
||||
CCheckpoint CreateCheckpoint_PEF(SQInt32 player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQFloat radius) noexcept
|
||||
SQFloat radius)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, x, y, z, r, g, b, a, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -302,7 +302,7 @@ CCheckpoint CreateCheckpoint_PEF(SQInt32 player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, x, y, z, r, g, b, a, radius,
|
||||
header, payload);
|
||||
@@ -310,7 +310,7 @@ CCheckpoint CreateCheckpoint_PEF(SQInt32 player, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CCheckpoint CreateCheckpoint_PCF(SQInt32 player, SQInt32 world,
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius) noexcept
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, color.a, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -318,7 +318,7 @@ CCheckpoint CreateCheckpoint_PCF(SQInt32 player, SQInt32 world,
|
||||
|
||||
CCheckpoint CreateCheckpoint_PCF(SQInt32 player, SQInt32 world,
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, color.a, radius,
|
||||
header, payload);
|
||||
@@ -328,7 +328,7 @@ CCheckpoint CreateCheckpoint_PCF(SQInt32 player, SQInt32 world,
|
||||
CCheckpoint CreateCheckpoint_EF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQFloat radius) noexcept
|
||||
SQFloat radius)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, x, y, z, r, g, b, a, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -338,7 +338,7 @@ CCheckpoint CreateCheckpoint_EF(const Reference< CPlayer > & player, SQInt32 wor
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, x, y, z, r, g, b, a, radius,
|
||||
header, payload);
|
||||
@@ -346,7 +346,7 @@ CCheckpoint CreateCheckpoint_EF(const Reference< CPlayer > & player, SQInt32 wor
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CCheckpoint CreateCheckpoint_CF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius) noexcept
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, color.a, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -354,7 +354,7 @@ CCheckpoint CreateCheckpoint_CF(const Reference< CPlayer > & player, SQInt32 wor
|
||||
|
||||
CCheckpoint CreateCheckpoint_CF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
const Vector3 & pos, const Color4 & color, SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewCheckpoint(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, color.a, radius,
|
||||
header, payload);
|
||||
|
@@ -29,72 +29,72 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct a reference from a base reference.
|
||||
*/
|
||||
CCheckpoint(const Reference< CCheckpoint > & o) noexcept;
|
||||
CCheckpoint(const Reference< CCheckpoint > & o);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See if the referenced checkpoint instance is streamed for the specified player.
|
||||
*/
|
||||
bool IsStreamedFor(const Reference< CPlayer > & player) const noexcept;
|
||||
bool IsStreamedFor(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the world in which the referenced checkpoint instance exists.
|
||||
*/
|
||||
SQInt32 GetWorld() const noexcept;
|
||||
SQInt32 GetWorld() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the world in which the referenced checkpoint instance exists.
|
||||
*/
|
||||
void SetWorld(SQInt32 world) const noexcept;
|
||||
void SetWorld(SQInt32 world) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the color of the referenced checkpoint instance.
|
||||
*/
|
||||
const Color4 & GetColor() const noexcept;
|
||||
const Color4 & GetColor() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the color of the referenced checkpoint instance.
|
||||
*/
|
||||
void SetColor(const Color4 & col) const noexcept;
|
||||
void SetColor(const Color4 & col) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the color of the referenced checkpoint instance.
|
||||
*/
|
||||
void SetColorEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept;
|
||||
void SetColorEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the position of the referenced checkpoint instance.
|
||||
*/
|
||||
const Vector3 & GetPosition() const noexcept;
|
||||
const Vector3 & GetPosition() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced checkpoint instance.
|
||||
*/
|
||||
void SetPosition(const Vector3 & pos) const noexcept;
|
||||
void SetPosition(const Vector3 & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced checkpoint instance.
|
||||
*/
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the radius of the referenced checkpoint instance.
|
||||
*/
|
||||
SQFloat GetRadius() const noexcept;
|
||||
SQFloat GetRadius() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the radius of the referenced checkpoint instance.
|
||||
*/
|
||||
void SetRadius(SQFloat radius) const noexcept;
|
||||
void SetRadius(SQFloat radius) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the owner of the referenced checkpoint instance.
|
||||
*/
|
||||
Reference< CPlayer > GetOwner() const noexcept;
|
||||
Reference< CPlayer > GetOwner() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the owner identifier of the referenced checkpoint instance.
|
||||
*/
|
||||
SQInt32 GetOwnerID() const noexcept;
|
||||
SQInt32 GetOwnerID() const;
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
@@ -6,14 +6,14 @@
|
||||
namespace SqMod {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CKeybind::CKeybind(const Reference< CKeybind > & o) noexcept
|
||||
CKeybind::CKeybind(const Reference< CKeybind > & o)
|
||||
: Reference(o)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CKeybind::GetPrimary() const noexcept
|
||||
SQInt32 CKeybind::GetPrimary() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -28,7 +28,7 @@ SQInt32 CKeybind::GetPrimary() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CKeybind::GetSecondary() const noexcept
|
||||
SQInt32 CKeybind::GetSecondary() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -43,7 +43,7 @@ SQInt32 CKeybind::GetSecondary() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CKeybind::GetAlternative() const noexcept
|
||||
SQInt32 CKeybind::GetAlternative() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -58,7 +58,7 @@ SQInt32 CKeybind::GetAlternative() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CKeybind::IsRelease() const noexcept
|
||||
bool CKeybind::IsRelease() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -74,7 +74,7 @@ bool CKeybind::IsRelease() const noexcept
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CKeybind > CreateBaseKeybind_ES(bool release,
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative) noexcept
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative)
|
||||
{
|
||||
return _Core->NewKeybind(SQMOD_UNKNOWN, release, primary, secondary, alternative,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -82,7 +82,7 @@ Reference< CKeybind > CreateBaseKeybind_ES(bool release,
|
||||
|
||||
Reference< CKeybind > CreateBaseKeybind_ES(bool release,
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewKeybind(SQMOD_UNKNOWN, release, primary, secondary, alternative,
|
||||
header, payload);
|
||||
@@ -90,7 +90,7 @@ Reference< CKeybind > CreateBaseKeybind_ES(bool release,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CKeybind > CreateBaseKeybind_EF(SQInt32 slot, bool release,
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative) noexcept
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative)
|
||||
{
|
||||
return _Core->NewKeybind(slot, release, primary, secondary, alternative,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -98,7 +98,7 @@ Reference< CKeybind > CreateBaseKeybind_EF(SQInt32 slot, bool release,
|
||||
|
||||
Reference< CKeybind > CreateBaseKeybind_EF(SQInt32 slot, bool release,
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewKeybind(slot, release, primary, secondary, alternative,
|
||||
header, payload);
|
||||
@@ -106,7 +106,7 @@ Reference< CKeybind > CreateBaseKeybind_EF(SQInt32 slot, bool release,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CKeybind CreateKeybind_ES(bool release,
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative) noexcept
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative)
|
||||
{
|
||||
return _Core->NewKeybind(SQMOD_UNKNOWN, release, primary, secondary, alternative,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -114,7 +114,7 @@ CKeybind CreateKeybind_ES(bool release,
|
||||
|
||||
CKeybind CreateKeybind_ES(bool release,
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewKeybind(SQMOD_UNKNOWN, release, primary, secondary, alternative,
|
||||
header, payload);
|
||||
@@ -122,7 +122,7 @@ CKeybind CreateKeybind_ES(bool release,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CKeybind CreateKeybind_EF(SQInt32 slot, bool release,
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative) noexcept
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative)
|
||||
{
|
||||
return _Core->NewKeybind(slot, release, primary, secondary, alternative,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -130,7 +130,7 @@ CKeybind CreateKeybind_EF(SQInt32 slot, bool release,
|
||||
|
||||
CKeybind CreateKeybind_EF(SQInt32 slot, bool release,
|
||||
SQInt32 primary, SQInt32 secondary, SQInt32 alternative,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewKeybind(slot, release, primary, secondary, alternative,
|
||||
header, payload);
|
||||
|
@@ -22,27 +22,27 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct a reference from a base reference.
|
||||
*/
|
||||
CKeybind(const Reference< CKeybind > & o) noexcept;
|
||||
CKeybind(const Reference< CKeybind > & o);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the primary key code of the referenced keybind instance.
|
||||
*/
|
||||
SQInt32 GetPrimary() const noexcept;
|
||||
SQInt32 GetPrimary() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the secondary key code of the referenced keybind instance.
|
||||
*/
|
||||
SQInt32 GetSecondary() const noexcept;
|
||||
SQInt32 GetSecondary() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the alternative key code of the referenced keybind instance.
|
||||
*/
|
||||
SQInt32 GetAlternative() const noexcept;
|
||||
SQInt32 GetAlternative() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced keybind instance reacts to key press events.
|
||||
*/
|
||||
bool IsRelease() const noexcept;
|
||||
bool IsRelease() const;
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
@@ -15,14 +15,14 @@ Vector3 CObject::s_Vector3;
|
||||
Quaternion CObject::s_Quaternion;
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CObject::CObject(const Reference< CObject > & o) noexcept
|
||||
CObject::CObject(const Reference< CObject > & o)
|
||||
: Reference(o)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CObject::IsStreamedFor(const Reference< CPlayer > & player) const noexcept
|
||||
bool CObject::IsStreamedFor(const Reference< CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -41,7 +41,7 @@ bool CObject::IsStreamedFor(const Reference< CPlayer > & player) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const CModel & CObject::GetModel() const noexcept
|
||||
const CModel & CObject::GetModel() const
|
||||
{
|
||||
// Clear any previous model
|
||||
s_Model.SetID(SQMOD_UNKNOWN);
|
||||
@@ -59,7 +59,7 @@ const CModel & CObject::GetModel() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CObject::GetModelID() const noexcept
|
||||
SQInt32 CObject::GetModelID() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -74,7 +74,7 @@ SQInt32 CObject::GetModelID() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CObject::GetWorld() const noexcept
|
||||
SQInt32 CObject::GetWorld() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -89,7 +89,7 @@ SQInt32 CObject::GetWorld() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::SetWorld(SQInt32 world) const noexcept
|
||||
void CObject::SetWorld(SQInt32 world) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -102,7 +102,7 @@ void CObject::SetWorld(SQInt32 world) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CObject::GetAlpha() const noexcept
|
||||
SQInt32 CObject::GetAlpha() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -117,7 +117,7 @@ SQInt32 CObject::GetAlpha() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::SetAlpha(SQInt32 alpha) const noexcept
|
||||
void CObject::SetAlpha(SQInt32 alpha) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -130,7 +130,7 @@ void CObject::SetAlpha(SQInt32 alpha) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::SetAlphaEx(SQInt32 alpha, SQInt32 time) const noexcept
|
||||
void CObject::SetAlphaEx(SQInt32 alpha, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -143,7 +143,7 @@ void CObject::SetAlphaEx(SQInt32 alpha, SQInt32 time) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::MoveToPr(const Vector3 & pos) const noexcept
|
||||
void CObject::MoveToPr(const Vector3 & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -156,7 +156,7 @@ void CObject::MoveToPr(const Vector3 & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::MoveTo(const Vector3 & pos, SQInt32 time) const noexcept
|
||||
void CObject::MoveTo(const Vector3 & pos, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -169,7 +169,7 @@ void CObject::MoveTo(const Vector3 & pos, SQInt32 time) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::MoveToEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CObject::MoveToEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -182,7 +182,7 @@ void CObject::MoveToEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::MoveToEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const noexcept
|
||||
void CObject::MoveToEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -195,7 +195,7 @@ void CObject::MoveToEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const noex
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::MoveByPr(const Vector3 & pos) const noexcept
|
||||
void CObject::MoveByPr(const Vector3 & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -208,7 +208,7 @@ void CObject::MoveByPr(const Vector3 & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::MoveBy(const Vector3 & pos, SQInt32 time) const noexcept
|
||||
void CObject::MoveBy(const Vector3 & pos, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -221,7 +221,7 @@ void CObject::MoveBy(const Vector3 & pos, SQInt32 time) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::MoveByEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CObject::MoveByEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -234,7 +234,7 @@ void CObject::MoveByEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::MoveByEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const noexcept
|
||||
void CObject::MoveByEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -247,7 +247,7 @@ void CObject::MoveByEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const noex
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CObject::GetPosition() noexcept
|
||||
const Vector3 & CObject::GetPosition()
|
||||
{
|
||||
// Clear any previous position
|
||||
s_Vector3.Clear();
|
||||
@@ -265,7 +265,7 @@ const Vector3 & CObject::GetPosition() noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::SetPosition(const Vector3 & pos) const noexcept
|
||||
void CObject::SetPosition(const Vector3 & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -278,7 +278,7 @@ void CObject::SetPosition(const Vector3 & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CObject::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -291,7 +291,7 @@ void CObject::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateToPr(const Quaternion & rot) const noexcept
|
||||
void CObject::RotateToPr(const Quaternion & rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -304,7 +304,7 @@ void CObject::RotateToPr(const Quaternion & rot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateTo(const Quaternion & rot, SQInt32 time) const noexcept
|
||||
void CObject::RotateTo(const Quaternion & rot, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -317,7 +317,7 @@ void CObject::RotateTo(const Quaternion & rot, SQInt32 time) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateToEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexcept
|
||||
void CObject::RotateToEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -330,7 +330,7 @@ void CObject::RotateToEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexc
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateToEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w, SQInt32 time) const noexcept
|
||||
void CObject::RotateToEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -343,7 +343,7 @@ void CObject::RotateToEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w, SQInt32 tim
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateToEulerPr(const Vector3 & rot) const noexcept
|
||||
void CObject::RotateToEulerPr(const Vector3 & rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -356,7 +356,7 @@ void CObject::RotateToEulerPr(const Vector3 & rot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateToEuler(const Vector3 & rot, SQInt32 time) const noexcept
|
||||
void CObject::RotateToEuler(const Vector3 & rot, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -369,7 +369,7 @@ void CObject::RotateToEuler(const Vector3 & rot, SQInt32 time) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateToEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CObject::RotateToEulerEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -382,7 +382,7 @@ void CObject::RotateToEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateToEulerEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const noexcept
|
||||
void CObject::RotateToEulerEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -395,7 +395,7 @@ void CObject::RotateToEulerEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) con
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateByPr(const Quaternion & rot) const noexcept
|
||||
void CObject::RotateByPr(const Quaternion & rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -408,7 +408,7 @@ void CObject::RotateByPr(const Quaternion & rot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateBy(const Quaternion & rot, SQInt32 time) const noexcept
|
||||
void CObject::RotateBy(const Quaternion & rot, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -421,7 +421,7 @@ void CObject::RotateBy(const Quaternion & rot, SQInt32 time) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateByEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexcept
|
||||
void CObject::RotateByEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -434,7 +434,7 @@ void CObject::RotateByEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexc
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateByEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w, SQInt32 time) const noexcept
|
||||
void CObject::RotateByEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -447,7 +447,7 @@ void CObject::RotateByEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w, SQInt32 tim
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateByEulerPr(const Vector3 & rot) const noexcept
|
||||
void CObject::RotateByEulerPr(const Vector3 & rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -460,7 +460,7 @@ void CObject::RotateByEulerPr(const Vector3 & rot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateByEuler(const Vector3 & rot, SQInt32 time) const noexcept
|
||||
void CObject::RotateByEuler(const Vector3 & rot, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -473,7 +473,7 @@ void CObject::RotateByEuler(const Vector3 & rot, SQInt32 time) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateByEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CObject::RotateByEulerEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -486,7 +486,7 @@ void CObject::RotateByEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::RotateByEulerEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const noexcept
|
||||
void CObject::RotateByEulerEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -499,7 +499,7 @@ void CObject::RotateByEulerEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) con
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Quaternion & CObject::GetRotation() noexcept
|
||||
const Quaternion & CObject::GetRotation()
|
||||
{
|
||||
// Clear any previous rotation
|
||||
s_Quaternion.Clear();
|
||||
@@ -517,7 +517,7 @@ const Quaternion & CObject::GetRotation() noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CObject::GetRotationEuler() noexcept
|
||||
const Vector3 & CObject::GetRotationEuler()
|
||||
{
|
||||
// Clear any previous rotation
|
||||
s_Vector3.Clear();
|
||||
@@ -535,7 +535,7 @@ const Vector3 & CObject::GetRotationEuler() noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CObject::GetShotReport() const noexcept
|
||||
bool CObject::GetShotReport() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -550,7 +550,7 @@ bool CObject::GetShotReport() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::SetShotReport(bool toggle) const noexcept
|
||||
void CObject::SetShotReport(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -563,7 +563,7 @@ void CObject::SetShotReport(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CObject::GetBumpReport() const noexcept
|
||||
bool CObject::GetBumpReport() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -578,7 +578,7 @@ bool CObject::GetBumpReport() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CObject::SetBumpReport(bool toggle) const noexcept
|
||||
void CObject::SetBumpReport(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -593,7 +593,7 @@ void CObject::SetBumpReport(bool toggle) const noexcept
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CObject > CreateBaseObject_PEF(SQInt32 model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha) noexcept
|
||||
SQInt32 alpha)
|
||||
{
|
||||
return _Core->NewObject(model, world, x, y, z, alpha,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -602,7 +602,7 @@ Reference< CObject > CreateBaseObject_PEF(SQInt32 model, SQInt32 world,
|
||||
Reference< CObject > CreateBaseObject_PEF(SQInt32 model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewObject(model, world, x, y, z, alpha,
|
||||
header, payload);
|
||||
@@ -610,7 +610,7 @@ Reference< CObject > CreateBaseObject_PEF(SQInt32 model, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CObject > CreateBaseObject_PCF(SQInt32 model, SQInt32 world,
|
||||
const Vector3 & pos, SQInt32 alpha) noexcept
|
||||
const Vector3 & pos, SQInt32 alpha)
|
||||
{
|
||||
return _Core->NewObject(model, world, pos.x, pos.y, pos.z, alpha,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -618,7 +618,7 @@ Reference< CObject > CreateBaseObject_PCF(SQInt32 model, SQInt32 world,
|
||||
|
||||
Reference< CObject > CreateBaseObject_PCF(SQInt32 model, SQInt32 world,
|
||||
const Vector3 & pos, SQInt32 alpha,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewObject(model, world, pos.x, pos.y, pos.z, alpha,
|
||||
header, payload);
|
||||
@@ -627,7 +627,7 @@ Reference< CObject > CreateBaseObject_PCF(SQInt32 model, SQInt32 world,
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CObject > CreateBaseObject_EF(const CModel & model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha) noexcept
|
||||
SQInt32 alpha)
|
||||
{
|
||||
return _Core->NewObject(model, world, x, y, z, alpha,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -636,7 +636,7 @@ Reference< CObject > CreateBaseObject_EF(const CModel & model, SQInt32 world,
|
||||
Reference< CObject > CreateBaseObject_EF(const CModel & model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewObject(model, world, x, y, z, alpha,
|
||||
header, payload);
|
||||
@@ -644,7 +644,7 @@ Reference< CObject > CreateBaseObject_EF(const CModel & model, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CObject > CreateBaseObject_CF(const CModel & model, SQInt32 world,
|
||||
const Vector3 & pos, SQInt32 alpha) noexcept
|
||||
const Vector3 & pos, SQInt32 alpha)
|
||||
{
|
||||
return _Core->NewObject(model, world, pos.x, pos.y, pos.z, alpha,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -652,7 +652,7 @@ Reference< CObject > CreateBaseObject_CF(const CModel & model, SQInt32 world,
|
||||
|
||||
Reference< CObject > CreateBaseObject_CF(const CModel & model, SQInt32 world,
|
||||
const Vector3 & pos, SQInt32 alpha,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewObject(model, world, pos.x, pos.y, pos.z, alpha,
|
||||
header, payload);
|
||||
@@ -661,7 +661,7 @@ Reference< CObject > CreateBaseObject_CF(const CModel & model, SQInt32 world,
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CObject CreateObject_PEF(SQInt32 model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha) noexcept
|
||||
SQInt32 alpha)
|
||||
{
|
||||
return _Core->NewObject(model, world, x, y, z, alpha,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -670,7 +670,7 @@ CObject CreateObject_PEF(SQInt32 model, SQInt32 world,
|
||||
CObject CreateObject_PEF(SQInt32 model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewObject(model, world, x, y, z, alpha,
|
||||
header, payload);
|
||||
@@ -678,7 +678,7 @@ CObject CreateObject_PEF(SQInt32 model, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CObject CreateObject_PCF(SQInt32 model, SQInt32 world,
|
||||
const Vector3 & pos, SQInt32 alpha) noexcept
|
||||
const Vector3 & pos, SQInt32 alpha)
|
||||
{
|
||||
return _Core->NewObject(model, world, pos.x, pos.y, pos.z, alpha,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -686,7 +686,7 @@ CObject CreateObject_PCF(SQInt32 model, SQInt32 world,
|
||||
|
||||
CObject CreateObject_PCF(SQInt32 model, SQInt32 world,
|
||||
const Vector3 & pos, SQInt32 alpha,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewObject(model, world, pos.x, pos.y, pos.z, alpha,
|
||||
header, payload);
|
||||
@@ -695,7 +695,7 @@ CObject CreateObject_PCF(SQInt32 model, SQInt32 world,
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CObject CreateObject_EF(const CModel & model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha) noexcept
|
||||
SQInt32 alpha)
|
||||
{
|
||||
return _Core->NewObject(model, world, x, y, z, alpha,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -704,7 +704,7 @@ CObject CreateObject_EF(const CModel & model, SQInt32 world,
|
||||
CObject CreateObject_EF(const CModel & model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewObject(model, world, x, y, z, alpha,
|
||||
header, payload);
|
||||
@@ -712,7 +712,7 @@ CObject CreateObject_EF(const CModel & model, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CObject CreateObject_CF(const CModel & model, SQInt32 world,
|
||||
const Vector3 & pos, SQInt32 alpha) noexcept
|
||||
const Vector3 & pos, SQInt32 alpha)
|
||||
{
|
||||
return _Core->NewObject(model, world, pos.x, pos.y, pos.z, alpha,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -720,7 +720,7 @@ CObject CreateObject_CF(const CModel & model, SQInt32 world,
|
||||
|
||||
CObject CreateObject_CF(const CModel & model, SQInt32 world,
|
||||
const Vector3 & pos, SQInt32 alpha,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewObject(model, world, pos.x, pos.y, pos.z, alpha,
|
||||
header, payload);
|
||||
|
@@ -29,212 +29,212 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct a reference from a base reference.
|
||||
*/
|
||||
CObject(const Reference< CObject > & o) noexcept;
|
||||
CObject(const Reference< CObject > & o);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See if the referenced object instance is streamed for the specified player.
|
||||
*/
|
||||
bool IsStreamedFor(const Reference< CPlayer > & player) const noexcept;
|
||||
bool IsStreamedFor(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the model of the referenced object instance.
|
||||
*/
|
||||
const CModel & GetModel() const noexcept;
|
||||
const CModel & GetModel() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the model identifier of the referenced object instance.
|
||||
*/
|
||||
SQInt32 GetModelID() const noexcept;
|
||||
SQInt32 GetModelID() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the world in which the referenced object instance exists.
|
||||
*/
|
||||
SQInt32 GetWorld() const noexcept;
|
||||
SQInt32 GetWorld() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the world in which the referenced object instance exists.
|
||||
*/
|
||||
void SetWorld(SQInt32 world) const noexcept;
|
||||
void SetWorld(SQInt32 world) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the alpha of the referenced object instance.
|
||||
*/
|
||||
SQInt32 GetAlpha() const noexcept;
|
||||
SQInt32 GetAlpha() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the alpha of the referenced object instance.
|
||||
*/
|
||||
void SetAlpha(SQInt32 alpha) const noexcept;
|
||||
void SetAlpha(SQInt32 alpha) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the alpha of the referenced object instance over the specified time.
|
||||
*/
|
||||
void SetAlphaEx(SQInt32 alpha, SQInt32 time) const noexcept;
|
||||
void SetAlphaEx(SQInt32 alpha, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Move the referenced object instance to the specified position instantly.
|
||||
*/
|
||||
void MoveToPr(const Vector3 & pos) const noexcept;
|
||||
void MoveToPr(const Vector3 & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Move the referenced object instance to the specified position over the specified time.
|
||||
*/
|
||||
void MoveTo(const Vector3 & pos, SQInt32 time) const noexcept;
|
||||
void MoveTo(const Vector3 & pos, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Move the referenced object instance to the specified position instantly.
|
||||
*/
|
||||
void MoveToEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void MoveToEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Move the referenced object instance to the specified position over the specified time.
|
||||
*/
|
||||
void MoveToEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const noexcept;
|
||||
void MoveToEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Move the referenced object instance by the specified position instantly.
|
||||
*/
|
||||
void MoveByPr(const Vector3 & pos) const noexcept;
|
||||
void MoveByPr(const Vector3 & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Move the referenced object instance by the specified position over the specified time.
|
||||
*/
|
||||
void MoveBy(const Vector3 & pos, SQInt32 time) const noexcept;
|
||||
void MoveBy(const Vector3 & pos, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Move the referenced object instance by the specified position instantly.
|
||||
*/
|
||||
void MoveByEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void MoveByEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Move the referenced object instance by the specified position over the specified time.
|
||||
*/
|
||||
void MoveByEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const noexcept;
|
||||
void MoveByEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the position of the referenced object instance.
|
||||
*/
|
||||
const Vector3 & GetPosition() noexcept;
|
||||
const Vector3 & GetPosition();
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced object instance.
|
||||
*/
|
||||
void SetPosition(const Vector3 & pos) const noexcept;
|
||||
void SetPosition(const Vector3 & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced object instance.
|
||||
*/
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance to the specified rotation instantly.
|
||||
*/
|
||||
void RotateToPr(const Quaternion & rot) const noexcept;
|
||||
void RotateToPr(const Quaternion & rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance to the specified rotation over the specified time.
|
||||
*/
|
||||
void RotateTo(const Quaternion & rot, SQInt32 time) const noexcept;
|
||||
void RotateTo(const Quaternion & rot, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance to the specified rotation instantly.
|
||||
*/
|
||||
void RotateToEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexcept;
|
||||
void RotateToEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance to the specified rotation over the specified time.
|
||||
*/
|
||||
void RotateToEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w, SQInt32 time) const noexcept;
|
||||
void RotateToEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance to the specified euler rotation instantly.
|
||||
*/
|
||||
void RotateToEulerPr(const Vector3 & rot) const noexcept;
|
||||
void RotateToEulerPr(const Vector3 & rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance to the specified euler rotation over the specified time.
|
||||
*/
|
||||
void RotateToEuler(const Vector3 & rot, SQInt32 time) const noexcept;
|
||||
void RotateToEuler(const Vector3 & rot, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance to the specified euler rotation instantly.
|
||||
*/
|
||||
void RotateToEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void RotateToEulerEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance to the specified euler rotation over the specified time.
|
||||
*/
|
||||
void RotateToEulerEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const noexcept;
|
||||
void RotateToEulerEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance by the specified rotation instantly.
|
||||
*/
|
||||
void RotateByPr(const Quaternion & rot) const noexcept;
|
||||
void RotateByPr(const Quaternion & rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance by the specified rotation over the specified time.
|
||||
*/
|
||||
void RotateBy(const Quaternion & rot, SQInt32 time) const noexcept;
|
||||
void RotateBy(const Quaternion & rot, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance by the specified rotation instantly.
|
||||
*/
|
||||
void RotateByEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexcept;
|
||||
void RotateByEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance by the specified rotation over the specified time.
|
||||
*/
|
||||
void RotateByEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w, SQInt32 time) const noexcept;
|
||||
void RotateByEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance by the specified euler rotation instantly.
|
||||
*/
|
||||
void RotateByEulerPr(const Vector3 & rot) const noexcept;
|
||||
void RotateByEulerPr(const Vector3 & rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance by the specified euler rotation over the specified time.
|
||||
*/
|
||||
void RotateByEuler(const Vector3 & rot, SQInt32 time) const noexcept;
|
||||
void RotateByEuler(const Vector3 & rot, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance by the specified euler rotation instantly.
|
||||
*/
|
||||
void RotateByEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void RotateByEulerEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Rotate the referenced object instance by the specified euler rotation over the specified time.
|
||||
*/
|
||||
void RotateByEulerEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const noexcept;
|
||||
void RotateByEulerEx(SQFloat x, SQFloat y, SQFloat z, SQInt32 time) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the rotation of the referenced object instance.
|
||||
*/
|
||||
const Quaternion & GetRotation() noexcept;
|
||||
const Quaternion & GetRotation();
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the euler rotation of the referenced object instance.
|
||||
*/
|
||||
const Vector3 & GetRotationEuler() noexcept;
|
||||
const Vector3 & GetRotationEuler();
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced object instance reports gunshots.
|
||||
*/
|
||||
bool GetShotReport() const noexcept;
|
||||
bool GetShotReport() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced object instance reports gunshots.
|
||||
*/
|
||||
void SetShotReport(bool toggle) const noexcept;
|
||||
void SetShotReport(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced object instance reports player bumps.
|
||||
*/
|
||||
bool GetBumpReport() const noexcept;
|
||||
bool GetBumpReport() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced object instance reports player bumps.
|
||||
*/
|
||||
void SetBumpReport(bool toggle) const noexcept;
|
||||
void SetBumpReport(bool toggle) const;
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
@@ -13,14 +13,14 @@ CModel CPickup::s_Model;
|
||||
Vector3 CPickup::s_Vector3;
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CPickup::CPickup(const Reference< CPickup > & o) noexcept
|
||||
CPickup::CPickup(const Reference< CPickup > & o)
|
||||
: Reference(o)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPickup::IsStreamedFor(const Reference< CPlayer > & player) const noexcept
|
||||
bool CPickup::IsStreamedFor(const Reference< CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -39,7 +39,7 @@ bool CPickup::IsStreamedFor(const Reference< CPlayer > & player) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const CModel & CPickup::GetModel() const noexcept
|
||||
const CModel & CPickup::GetModel() const
|
||||
{
|
||||
// Clear any previous model
|
||||
s_Model.SetID(SQMOD_UNKNOWN);
|
||||
@@ -57,7 +57,7 @@ const CModel & CPickup::GetModel() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPickup::GetModelID() const noexcept
|
||||
SQInt32 CPickup::GetModelID() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -72,7 +72,7 @@ SQInt32 CPickup::GetModelID() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPickup::GetWorld() const noexcept
|
||||
SQInt32 CPickup::GetWorld() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -87,7 +87,7 @@ SQInt32 CPickup::GetWorld() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPickup::SetWorld(SQInt32 world) const noexcept
|
||||
void CPickup::SetWorld(SQInt32 world) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -100,7 +100,7 @@ void CPickup::SetWorld(SQInt32 world) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPickup::GetAlpha() const noexcept
|
||||
SQInt32 CPickup::GetAlpha() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -115,7 +115,7 @@ SQInt32 CPickup::GetAlpha() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPickup::SetAlpha(SQInt32 alpha) const noexcept
|
||||
void CPickup::SetAlpha(SQInt32 alpha) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -128,7 +128,7 @@ void CPickup::SetAlpha(SQInt32 alpha) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPickup::GetAutomatic() const noexcept
|
||||
bool CPickup::GetAutomatic() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -143,7 +143,7 @@ bool CPickup::GetAutomatic() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPickup::SetAutomatic(bool toggle) const noexcept
|
||||
void CPickup::SetAutomatic(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -156,7 +156,7 @@ void CPickup::SetAutomatic(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPickup::GetAutoTimer() const noexcept
|
||||
SQInt32 CPickup::GetAutoTimer() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -171,7 +171,7 @@ SQInt32 CPickup::GetAutoTimer() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPickup::SetAutoTimer(SQInt32 timer) const noexcept
|
||||
void CPickup::SetAutoTimer(SQInt32 timer) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -184,7 +184,7 @@ void CPickup::SetAutoTimer(SQInt32 timer) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPickup::Refresh() const noexcept
|
||||
void CPickup::Refresh() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -197,7 +197,7 @@ void CPickup::Refresh() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CPickup::GetPosition() noexcept
|
||||
const Vector3 & CPickup::GetPosition()
|
||||
{
|
||||
// Clear any previous position
|
||||
s_Vector3.Clear();
|
||||
@@ -215,7 +215,7 @@ const Vector3 & CPickup::GetPosition() noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPickup::SetPosition(const Vector3 & pos) const noexcept
|
||||
void CPickup::SetPosition(const Vector3 & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -228,7 +228,7 @@ void CPickup::SetPosition(const Vector3 & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPickup::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CPickup::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -241,7 +241,7 @@ void CPickup::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPickup::GetQuantity() const noexcept
|
||||
SQInt32 CPickup::GetQuantity() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -258,7 +258,7 @@ SQInt32 CPickup::GetQuantity() const noexcept
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CPickup > CreateBasePickup_PEF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha, bool automatic) noexcept
|
||||
SQInt32 alpha, bool automatic)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, x, y, z, alpha, automatic,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -267,7 +267,7 @@ Reference< CPickup > CreateBasePickup_PEF(SQInt32 model, SQInt32 world, SQInt32
|
||||
Reference< CPickup > CreateBasePickup_PEF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha, bool automatic,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, x, y, z, alpha, automatic,
|
||||
header, payload);
|
||||
@@ -275,7 +275,7 @@ Reference< CPickup > CreateBasePickup_PEF(SQInt32 model, SQInt32 world, SQInt32
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CPickup > CreateBasePickup_PCF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic) noexcept
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, pos.x, pos.y, pos.z, alpha, automatic,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -283,7 +283,7 @@ Reference< CPickup > CreateBasePickup_PCF(SQInt32 model, SQInt32 world, SQInt32
|
||||
|
||||
Reference< CPickup > CreateBasePickup_PCF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, pos.x, pos.y, pos.z, alpha, automatic,
|
||||
header, payload);
|
||||
@@ -292,7 +292,7 @@ Reference< CPickup > CreateBasePickup_PCF(SQInt32 model, SQInt32 world, SQInt32
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CPickup > CreateBasePickup_EF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha, bool automatic) noexcept
|
||||
SQInt32 alpha, bool automatic)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, x, y, z, alpha, automatic,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -301,7 +301,7 @@ Reference< CPickup > CreateBasePickup_EF(const CModel & model, SQInt32 world, SQ
|
||||
Reference< CPickup > CreateBasePickup_EF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha, bool automatic,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, x, y, z, alpha, automatic,
|
||||
header, payload);
|
||||
@@ -309,7 +309,7 @@ Reference< CPickup > CreateBasePickup_EF(const CModel & model, SQInt32 world, SQ
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CPickup > CreateBasePickup_CF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic) noexcept
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, pos.x, pos.y, pos.z, alpha, automatic,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -317,7 +317,7 @@ Reference< CPickup > CreateBasePickup_CF(const CModel & model, SQInt32 world, SQ
|
||||
|
||||
Reference< CPickup > CreateBasePickup_CF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, pos.x, pos.y, pos.z, alpha, automatic,
|
||||
header, payload);
|
||||
@@ -326,7 +326,7 @@ Reference< CPickup > CreateBasePickup_CF(const CModel & model, SQInt32 world, SQ
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CPickup CreatePickup_PEF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha, bool automatic) noexcept
|
||||
SQInt32 alpha, bool automatic)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, x, y, z, alpha, automatic,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -335,7 +335,7 @@ CPickup CreatePickup_PEF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
CPickup CreatePickup_PEF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha, bool automatic,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, x, y, z, alpha, automatic,
|
||||
header, payload);
|
||||
@@ -343,7 +343,7 @@ CPickup CreatePickup_PEF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CPickup CreatePickup_PCF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic) noexcept
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, pos.x, pos.y, pos.z, alpha, automatic,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -351,7 +351,7 @@ CPickup CreatePickup_PCF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
|
||||
CPickup CreatePickup_PCF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, pos.x, pos.y, pos.z, alpha, automatic,
|
||||
header, payload);
|
||||
@@ -360,7 +360,7 @@ CPickup CreatePickup_PCF(SQInt32 model, SQInt32 world, SQInt32 quantity,
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CPickup CreatePickup_EF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha, bool automatic) noexcept
|
||||
SQInt32 alpha, bool automatic)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, x, y, z, alpha, automatic,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -369,7 +369,7 @@ CPickup CreatePickup_EF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
CPickup CreatePickup_EF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQInt32 alpha, bool automatic,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, x, y, z, alpha, automatic,
|
||||
header, payload);
|
||||
@@ -377,7 +377,7 @@ CPickup CreatePickup_EF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CPickup CreatePickup_CF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic) noexcept
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, pos.x, pos.y, pos.z, alpha, automatic,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -385,7 +385,7 @@ CPickup CreatePickup_CF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
|
||||
CPickup CreatePickup_CF(const CModel & model, SQInt32 world, SQInt32 quantity,
|
||||
const Vector3 & pos, SQInt32 alpha, bool automatic,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewPickup(model, world, quantity, pos.x, pos.y, pos.z, alpha, automatic,
|
||||
header, payload);
|
||||
|
@@ -28,87 +28,87 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct a reference from a base reference.
|
||||
*/
|
||||
CPickup(const Reference< CPickup > & o) noexcept;
|
||||
CPickup(const Reference< CPickup > & o);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See if the referenced pickup instance is streamed for the specified player.
|
||||
*/
|
||||
bool IsStreamedFor(const Reference< CPlayer > & player) const noexcept;
|
||||
bool IsStreamedFor(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the model of the referenced pickup instance.
|
||||
*/
|
||||
const CModel & GetModel() const noexcept;
|
||||
const CModel & GetModel() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the model identifier of the referenced pickup instance.
|
||||
*/
|
||||
SQInt32 GetModelID() const noexcept;
|
||||
SQInt32 GetModelID() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the world in which the referenced pickup instance exists.
|
||||
*/
|
||||
SQInt32 GetWorld() const noexcept;
|
||||
SQInt32 GetWorld() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the world in which the referenced pickup instance exists.
|
||||
*/
|
||||
void SetWorld(SQInt32 world) const noexcept;
|
||||
void SetWorld(SQInt32 world) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the alpha of the referenced pickup instance.
|
||||
*/
|
||||
SQInt32 GetAlpha() const noexcept;
|
||||
SQInt32 GetAlpha() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the alpha of the referenced pickup instance.
|
||||
*/
|
||||
void SetAlpha(SQInt32 alpha) const noexcept;
|
||||
void SetAlpha(SQInt32 alpha) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced pickup instance is automatic.
|
||||
*/
|
||||
bool GetAutomatic() const noexcept;
|
||||
bool GetAutomatic() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced pickup instance is automatic.
|
||||
*/
|
||||
void SetAutomatic(bool toggle) const noexcept;
|
||||
void SetAutomatic(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the automatic timer of the referenced pickup instance.
|
||||
*/
|
||||
SQInt32 GetAutoTimer() const noexcept;
|
||||
SQInt32 GetAutoTimer() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the automatic timer of the referenced pickup instance.
|
||||
*/
|
||||
void SetAutoTimer(SQInt32 timer) const noexcept;
|
||||
void SetAutoTimer(SQInt32 timer) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Refresh the referenced pickup instance.
|
||||
*/
|
||||
void Refresh() const noexcept;
|
||||
void Refresh() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the position of the referenced pickup instance.
|
||||
*/
|
||||
const Vector3 & GetPosition() noexcept;
|
||||
const Vector3 & GetPosition();
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced pickup instance.
|
||||
*/
|
||||
void SetPosition(const Vector3 & pos) const noexcept;
|
||||
void SetPosition(const Vector3 & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced pickup instance.
|
||||
*/
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the quantity of the referenced pickup instance.
|
||||
*/
|
||||
SQInt32 GetQuantity() const noexcept;
|
||||
SQInt32 GetQuantity() const;
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
@@ -19,14 +19,14 @@ Vector3 CPlayer::s_Vector3;
|
||||
SQChar CPlayer::s_Buffer[128];
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CPlayer::CPlayer(const Reference< CPlayer > & o) noexcept
|
||||
CPlayer::CPlayer(const Reference< CPlayer > & o)
|
||||
: Reference(o)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::IsStreamedFor(const Reference < CPlayer > & player) const noexcept
|
||||
bool CPlayer::IsStreamedFor(const Reference < CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -45,7 +45,7 @@ bool CPlayer::IsStreamedFor(const Reference < CPlayer > & player) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetClass() const noexcept
|
||||
SQInt32 CPlayer::GetClass() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -60,7 +60,7 @@ SQInt32 CPlayer::GetClass() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetAdmin() const noexcept
|
||||
bool CPlayer::GetAdmin() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -75,7 +75,7 @@ bool CPlayer::GetAdmin() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetAdmin(bool toggle) const noexcept
|
||||
void CPlayer::SetAdmin(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -88,7 +88,7 @@ void CPlayer::SetAdmin(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const SQChar * CPlayer::GetIP() const noexcept
|
||||
const SQChar * CPlayer::GetIP() const
|
||||
{
|
||||
// Clear any previous ip address
|
||||
s_Buffer[0] = '\0';
|
||||
@@ -107,7 +107,7 @@ const SQChar * CPlayer::GetIP() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::Kick() const noexcept
|
||||
void CPlayer::Kick() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -120,7 +120,7 @@ void CPlayer::Kick() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::Ban() const noexcept
|
||||
void CPlayer::Ban() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -133,7 +133,7 @@ void CPlayer::Ban() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::IsConnected() const noexcept
|
||||
bool CPlayer::IsConnected() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -148,7 +148,7 @@ bool CPlayer::IsConnected() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::IsSpawned() const noexcept
|
||||
bool CPlayer::IsSpawned() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -163,7 +163,7 @@ bool CPlayer::IsSpawned() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQUnsignedInteger CPlayer::GetKey() const noexcept
|
||||
SQUnsignedInteger CPlayer::GetKey() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -178,7 +178,7 @@ SQUnsignedInteger CPlayer::GetKey() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetWorld() const noexcept
|
||||
SQInt32 CPlayer::GetWorld() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -193,7 +193,7 @@ SQInt32 CPlayer::GetWorld() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetWorld(SQInt32 world) const noexcept
|
||||
void CPlayer::SetWorld(SQInt32 world) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -206,7 +206,7 @@ void CPlayer::SetWorld(SQInt32 world) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetSecWorld() const noexcept
|
||||
SQInt32 CPlayer::GetSecWorld() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -221,7 +221,7 @@ SQInt32 CPlayer::GetSecWorld() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetSecWorld(SQInt32 world) const noexcept
|
||||
void CPlayer::SetSecWorld(SQInt32 world) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -234,7 +234,7 @@ void CPlayer::SetSecWorld(SQInt32 world) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetUniqueWorld() const noexcept
|
||||
SQInt32 CPlayer::GetUniqueWorld() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -249,7 +249,7 @@ SQInt32 CPlayer::GetUniqueWorld() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::IsWorldCompatible(SQInt32 world) const noexcept
|
||||
bool CPlayer::IsWorldCompatible(SQInt32 world) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -264,7 +264,7 @@ bool CPlayer::IsWorldCompatible(SQInt32 world) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetState() const noexcept
|
||||
SQInt32 CPlayer::GetState() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -279,7 +279,7 @@ SQInt32 CPlayer::GetState() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const SQChar * CPlayer::GetName() const noexcept
|
||||
const SQChar * CPlayer::GetName() const
|
||||
{
|
||||
// Clear any previous ip address
|
||||
s_Buffer[0] = '\0';
|
||||
@@ -298,7 +298,7 @@ const SQChar * CPlayer::GetName() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetName(const SQChar * name) const noexcept
|
||||
void CPlayer::SetName(const SQChar * name) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -311,7 +311,7 @@ void CPlayer::SetName(const SQChar * name) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetTeam() const noexcept
|
||||
SQInt32 CPlayer::GetTeam() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -326,7 +326,7 @@ SQInt32 CPlayer::GetTeam() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetTeam(SQInt32 team) const noexcept
|
||||
void CPlayer::SetTeam(SQInt32 team) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -339,7 +339,7 @@ void CPlayer::SetTeam(SQInt32 team) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const CSkin & CPlayer::GetSkin() const noexcept
|
||||
const CSkin & CPlayer::GetSkin() const
|
||||
{
|
||||
// Clear any previous skin
|
||||
s_Skin.SetID(SQMOD_UNKNOWN);
|
||||
@@ -357,7 +357,7 @@ const CSkin & CPlayer::GetSkin() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetSkin(const CSkin & skin) const noexcept
|
||||
void CPlayer::SetSkin(const CSkin & skin) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && skin)
|
||||
{
|
||||
@@ -374,7 +374,7 @@ void CPlayer::SetSkin(const CSkin & skin) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetSkinID() const noexcept
|
||||
SQInt32 CPlayer::GetSkinID() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -389,7 +389,7 @@ SQInt32 CPlayer::GetSkinID() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetSkinID(SQInt32 skin) const noexcept
|
||||
void CPlayer::SetSkinID(SQInt32 skin) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -402,7 +402,7 @@ void CPlayer::SetSkinID(SQInt32 skin) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Color3 & CPlayer::GetColor() const noexcept
|
||||
const Color3 & CPlayer::GetColor() const
|
||||
{
|
||||
// Clear any previous color
|
||||
s_Color3.Clear();
|
||||
@@ -420,7 +420,7 @@ const Color3 & CPlayer::GetColor() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetColor(const Color3 & color) const noexcept
|
||||
void CPlayer::SetColor(const Color3 & color) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -433,7 +433,7 @@ void CPlayer::SetColor(const Color3 & color) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetColorEx(Uint8 r, Uint8 g, Uint8 b) const noexcept
|
||||
void CPlayer::SetColorEx(Uint8 r, Uint8 g, Uint8 b) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -446,7 +446,7 @@ void CPlayer::SetColorEx(Uint8 r, Uint8 g, Uint8 b) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::ForceSpawn() const noexcept
|
||||
void CPlayer::ForceSpawn() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -459,7 +459,7 @@ void CPlayer::ForceSpawn() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::ForceSelect() const noexcept
|
||||
void CPlayer::ForceSelect() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -472,7 +472,7 @@ void CPlayer::ForceSelect() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetMoney() const noexcept
|
||||
SQInt32 CPlayer::GetMoney() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -487,7 +487,7 @@ SQInt32 CPlayer::GetMoney() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetMoney(SQInt32 amount) const noexcept
|
||||
void CPlayer::SetMoney(SQInt32 amount) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -500,7 +500,7 @@ void CPlayer::SetMoney(SQInt32 amount) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::GiveMoney(SQInt32 amount) const noexcept
|
||||
void CPlayer::GiveMoney(SQInt32 amount) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -513,7 +513,7 @@ void CPlayer::GiveMoney(SQInt32 amount) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetScore() const noexcept
|
||||
SQInt32 CPlayer::GetScore() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -528,7 +528,7 @@ SQInt32 CPlayer::GetScore() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetScore(SQInt32 score) const noexcept
|
||||
void CPlayer::SetScore(SQInt32 score) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -541,7 +541,7 @@ void CPlayer::SetScore(SQInt32 score) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetPing() const noexcept
|
||||
SQInt32 CPlayer::GetPing() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -556,7 +556,7 @@ SQInt32 CPlayer::GetPing() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CPlayer::GetFPS() const noexcept
|
||||
SQFloat CPlayer::GetFPS() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -571,7 +571,7 @@ SQFloat CPlayer::GetFPS() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::IsTyping() const noexcept
|
||||
bool CPlayer::IsTyping() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -586,7 +586,7 @@ bool CPlayer::IsTyping() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const SQChar * CPlayer::GetUID() const noexcept
|
||||
const SQChar * CPlayer::GetUID() const
|
||||
{
|
||||
// Clear any previous uid
|
||||
s_Buffer[0] = '\0';
|
||||
@@ -605,7 +605,7 @@ const SQChar * CPlayer::GetUID() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const SQChar * CPlayer::GetUID2() const noexcept
|
||||
const SQChar * CPlayer::GetUID2() const
|
||||
{
|
||||
// Clear any previous uid2
|
||||
s_Buffer[0] = '\0';
|
||||
@@ -624,7 +624,7 @@ const SQChar * CPlayer::GetUID2() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CPlayer::GetHealth() const noexcept
|
||||
SQFloat CPlayer::GetHealth() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -639,7 +639,7 @@ SQFloat CPlayer::GetHealth() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetHealth(SQFloat amount) const noexcept
|
||||
void CPlayer::SetHealth(SQFloat amount) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -652,7 +652,7 @@ void CPlayer::SetHealth(SQFloat amount) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CPlayer::GetArmour() const noexcept
|
||||
SQFloat CPlayer::GetArmour() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -667,7 +667,7 @@ SQFloat CPlayer::GetArmour() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetArmour(SQFloat amount) const noexcept
|
||||
void CPlayer::SetArmour(SQFloat amount) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -680,7 +680,7 @@ void CPlayer::SetArmour(SQFloat amount) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetImmunity() const noexcept
|
||||
SQInt32 CPlayer::GetImmunity() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -695,7 +695,7 @@ SQInt32 CPlayer::GetImmunity() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetImmunity(SQInt32 flags) const noexcept
|
||||
void CPlayer::SetImmunity(SQInt32 flags) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -708,7 +708,7 @@ void CPlayer::SetImmunity(SQInt32 flags) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CPlayer::GetPosition() const noexcept
|
||||
const Vector3 & CPlayer::GetPosition() const
|
||||
{
|
||||
// Clear any previous position
|
||||
s_Vector3.Clear();
|
||||
@@ -726,7 +726,7 @@ const Vector3 & CPlayer::GetPosition() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetPosition(const Vector3 & pos) const noexcept
|
||||
void CPlayer::SetPosition(const Vector3 & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -739,7 +739,7 @@ void CPlayer::SetPosition(const Vector3 & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CPlayer::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -752,7 +752,7 @@ void CPlayer::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CPlayer::GetSpeed() const noexcept
|
||||
const Vector3 & CPlayer::GetSpeed() const
|
||||
{
|
||||
// Clear any previous speed
|
||||
s_Vector3.Clear();
|
||||
@@ -770,7 +770,7 @@ const Vector3 & CPlayer::GetSpeed() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetSpeed(const Vector3 & vel) const noexcept
|
||||
void CPlayer::SetSpeed(const Vector3 & vel) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -783,7 +783,7 @@ void CPlayer::SetSpeed(const Vector3 & vel) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CPlayer::SetSpeedEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -796,7 +796,7 @@ void CPlayer::SetSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::AddSpeed(const Vector3 & vel) const noexcept
|
||||
void CPlayer::AddSpeed(const Vector3 & vel) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -809,7 +809,7 @@ void CPlayer::AddSpeed(const Vector3 & vel) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::AddSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CPlayer::AddSpeedEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -822,7 +822,7 @@ void CPlayer::AddSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CPlayer::GetHeading() const noexcept
|
||||
SQFloat CPlayer::GetHeading() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -836,7 +836,7 @@ SQFloat CPlayer::GetHeading() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetHeading(SQFloat angle) const noexcept
|
||||
void CPlayer::SetHeading(SQFloat angle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -849,7 +849,7 @@ void CPlayer::SetHeading(SQFloat angle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetAlpha() const noexcept
|
||||
SQInt32 CPlayer::GetAlpha() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -864,7 +864,7 @@ SQInt32 CPlayer::GetAlpha() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetAlpha(SQInt32 alpha, SQInt32 fade) const noexcept
|
||||
void CPlayer::SetAlpha(SQInt32 alpha, SQInt32 fade) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -877,7 +877,7 @@ void CPlayer::SetAlpha(SQInt32 alpha, SQInt32 fade) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetVehicleStatus() const noexcept
|
||||
SQInt32 CPlayer::GetVehicleStatus() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -892,7 +892,7 @@ SQInt32 CPlayer::GetVehicleStatus() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetOccupiedSlot() const noexcept
|
||||
SQInt32 CPlayer::GetOccupiedSlot() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -907,7 +907,7 @@ SQInt32 CPlayer::GetOccupiedSlot() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference < CVehicle > CPlayer::GetVehicle() const noexcept
|
||||
Reference < CVehicle > CPlayer::GetVehicle() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -922,7 +922,7 @@ Reference < CVehicle > CPlayer::GetVehicle() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetVehicleID() const noexcept
|
||||
SQInt32 CPlayer::GetVehicleID() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -937,7 +937,7 @@ SQInt32 CPlayer::GetVehicleID() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetControllable() const noexcept
|
||||
bool CPlayer::GetControllable() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -952,7 +952,7 @@ bool CPlayer::GetControllable() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetControllable(bool toggle) const noexcept
|
||||
void CPlayer::SetControllable(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -965,7 +965,7 @@ void CPlayer::SetControllable(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetDriveby() const noexcept
|
||||
bool CPlayer::GetDriveby() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -980,7 +980,7 @@ bool CPlayer::GetDriveby() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetDriveby(bool toggle) const noexcept
|
||||
void CPlayer::SetDriveby(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -993,7 +993,7 @@ void CPlayer::SetDriveby(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetWhiteScanlines() const noexcept
|
||||
bool CPlayer::GetWhiteScanlines() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1008,7 +1008,7 @@ bool CPlayer::GetWhiteScanlines() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetWhiteScanlines(bool toggle) const noexcept
|
||||
void CPlayer::SetWhiteScanlines(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1021,7 +1021,7 @@ void CPlayer::SetWhiteScanlines(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetGreenScanlines() const noexcept
|
||||
bool CPlayer::GetGreenScanlines() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1036,7 +1036,7 @@ bool CPlayer::GetGreenScanlines() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetGreenScanlines(bool toggle) const noexcept
|
||||
void CPlayer::SetGreenScanlines(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1049,7 +1049,7 @@ void CPlayer::SetGreenScanlines(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetWidescreen() const noexcept
|
||||
bool CPlayer::GetWidescreen() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1064,7 +1064,7 @@ bool CPlayer::GetWidescreen() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetWidescreen(bool toggle) const noexcept
|
||||
void CPlayer::SetWidescreen(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1077,7 +1077,7 @@ void CPlayer::SetWidescreen(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetShowMarkers() const noexcept
|
||||
bool CPlayer::GetShowMarkers() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1091,7 +1091,7 @@ bool CPlayer::GetShowMarkers() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetShowMarkers(bool toggle) const noexcept
|
||||
void CPlayer::SetShowMarkers(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1104,7 +1104,7 @@ void CPlayer::SetShowMarkers(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetAttackPriv() const noexcept
|
||||
bool CPlayer::GetAttackPriv() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1119,7 +1119,7 @@ bool CPlayer::GetAttackPriv() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetAttackPriv(bool toggle) const noexcept
|
||||
void CPlayer::SetAttackPriv(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1132,7 +1132,7 @@ void CPlayer::SetAttackPriv(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetHasMarker() const noexcept
|
||||
bool CPlayer::GetHasMarker() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1147,7 +1147,7 @@ bool CPlayer::GetHasMarker() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetHasMarker(bool toggle) const noexcept
|
||||
void CPlayer::SetHasMarker(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1160,7 +1160,7 @@ void CPlayer::SetHasMarker(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetChatTags() const noexcept
|
||||
bool CPlayer::GetChatTags() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1175,7 +1175,7 @@ bool CPlayer::GetChatTags() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetChatTags(bool toggle) const noexcept
|
||||
void CPlayer::SetChatTags(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1188,7 +1188,7 @@ void CPlayer::SetChatTags(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::GetDrunkEffects() const noexcept
|
||||
bool CPlayer::GetDrunkEffects() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1203,7 +1203,7 @@ bool CPlayer::GetDrunkEffects() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetDrunkEffects(bool toggle) const noexcept
|
||||
void CPlayer::SetDrunkEffects(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1216,7 +1216,7 @@ void CPlayer::SetDrunkEffects(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const CWeapon & CPlayer::GetWeapon() const noexcept
|
||||
const CWeapon & CPlayer::GetWeapon() const
|
||||
{
|
||||
// Clear any previous weapon
|
||||
s_Weapon.SetID(SQMOD_UNKNOWN);
|
||||
@@ -1234,7 +1234,7 @@ const CWeapon & CPlayer::GetWeapon() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetWeapon(const CWeapon & wep) const noexcept
|
||||
void CPlayer::SetWeapon(const CWeapon & wep) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && wep)
|
||||
{
|
||||
@@ -1251,7 +1251,7 @@ void CPlayer::SetWeapon(const CWeapon & wep) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetWeaponEx(const CWeapon & wep, SQInt32 ammo) const noexcept
|
||||
void CPlayer::SetWeaponEx(const CWeapon & wep, SQInt32 ammo) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && wep)
|
||||
{
|
||||
@@ -1268,7 +1268,7 @@ void CPlayer::SetWeaponEx(const CWeapon & wep, SQInt32 ammo) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetWeaponID() const noexcept
|
||||
SQInt32 CPlayer::GetWeaponID() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1282,7 +1282,7 @@ SQInt32 CPlayer::GetWeaponID() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetWeaponID(SQInt32 wep) const noexcept
|
||||
void CPlayer::SetWeaponID(SQInt32 wep) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && VALID_ENTITY(wep))
|
||||
{
|
||||
@@ -1299,7 +1299,7 @@ void CPlayer::SetWeaponID(SQInt32 wep) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetWeaponIDEx(SQInt32 wep, SQInt32 ammo) const noexcept
|
||||
void CPlayer::SetWeaponIDEx(SQInt32 wep, SQInt32 ammo) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && VALID_ENTITY(wep))
|
||||
{
|
||||
@@ -1316,7 +1316,7 @@ void CPlayer::SetWeaponIDEx(SQInt32 wep, SQInt32 ammo) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::GiveWeapon(const CWeapon & wep) const noexcept
|
||||
void CPlayer::GiveWeapon(const CWeapon & wep) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && wep)
|
||||
{
|
||||
@@ -1333,7 +1333,7 @@ void CPlayer::GiveWeapon(const CWeapon & wep) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::GiveWeaponEx(const CWeapon & wep, SQInt32 ammo) const noexcept
|
||||
void CPlayer::GiveWeaponEx(const CWeapon & wep, SQInt32 ammo) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && wep)
|
||||
{
|
||||
@@ -1350,7 +1350,7 @@ void CPlayer::GiveWeaponEx(const CWeapon & wep, SQInt32 ammo) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::GiveWeaponIDEx(SQInt32 wep, SQInt32 ammo) const noexcept
|
||||
void CPlayer::GiveWeaponIDEx(SQInt32 wep, SQInt32 ammo) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && VALID_ENTITY(wep))
|
||||
{
|
||||
@@ -1367,7 +1367,7 @@ void CPlayer::GiveWeaponIDEx(SQInt32 wep, SQInt32 ammo) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::StripWeapons() const noexcept
|
||||
void CPlayer::StripWeapons() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1380,7 +1380,7 @@ void CPlayer::StripWeapons() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetCameraPosition(const Vector3 & pos, const Vector3 & aim) const noexcept
|
||||
void CPlayer::SetCameraPosition(const Vector3 & pos, const Vector3 & aim) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1393,7 +1393,7 @@ void CPlayer::SetCameraPosition(const Vector3 & pos, const Vector3 & aim) const
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::RestoreCamera() const noexcept
|
||||
void CPlayer::RestoreCamera() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1406,7 +1406,7 @@ void CPlayer::RestoreCamera() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::IsCameraLocked() const noexcept
|
||||
bool CPlayer::IsCameraLocked() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1421,7 +1421,7 @@ bool CPlayer::IsCameraLocked() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetAnimation(SQInt32 group, SQInt32 anim) const noexcept
|
||||
void CPlayer::SetAnimation(SQInt32 group, SQInt32 anim) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1434,7 +1434,7 @@ void CPlayer::SetAnimation(SQInt32 group, SQInt32 anim) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetWantedLevel() const noexcept
|
||||
SQInt32 CPlayer::GetWantedLevel() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1449,7 +1449,7 @@ SQInt32 CPlayer::GetWantedLevel() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetWantedLevel(SQInt32 level) const noexcept
|
||||
void CPlayer::SetWantedLevel(SQInt32 level) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1462,7 +1462,7 @@ void CPlayer::SetWantedLevel(SQInt32 level) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference < CVehicle > CPlayer::StandingOnVehicle() const noexcept
|
||||
Reference < CVehicle > CPlayer::StandingOnVehicle() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1477,7 +1477,7 @@ Reference < CVehicle > CPlayer::StandingOnVehicle() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference < CObject > CPlayer::StandingOnObject() const noexcept
|
||||
Reference < CObject > CPlayer::StandingOnObject() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1492,7 +1492,7 @@ Reference < CObject > CPlayer::StandingOnObject() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::IsAway() const noexcept
|
||||
bool CPlayer::IsAway() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1507,7 +1507,7 @@ bool CPlayer::IsAway() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference < CPlayer > CPlayer::Spectating() const noexcept
|
||||
Reference < CPlayer > CPlayer::Spectating() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1522,7 +1522,7 @@ Reference < CPlayer > CPlayer::Spectating() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::Spectate(const Reference < CPlayer > & target) const noexcept
|
||||
void CPlayer::Spectate(const Reference < CPlayer > & target) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && target)
|
||||
{
|
||||
@@ -1539,7 +1539,7 @@ void CPlayer::Spectate(const Reference < CPlayer > & target) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::IsBurning() const noexcept
|
||||
bool CPlayer::IsBurning() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1554,7 +1554,7 @@ bool CPlayer::IsBurning() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::IsCrouched() const noexcept
|
||||
bool CPlayer::IsCrouched() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1569,7 +1569,7 @@ bool CPlayer::IsCrouched() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetAction() const noexcept
|
||||
SQInt32 CPlayer::GetAction() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1584,7 +1584,7 @@ SQInt32 CPlayer::GetAction() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CPlayer::GetGameKeys() const noexcept
|
||||
SQInt32 CPlayer::GetGameKeys() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1599,7 +1599,7 @@ SQInt32 CPlayer::GetGameKeys() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CPlayer::GetAimPos() const noexcept
|
||||
const Vector3 & CPlayer::GetAimPos() const
|
||||
{
|
||||
// Clear any previous aim position
|
||||
s_Vector3.Clear();
|
||||
@@ -1617,7 +1617,7 @@ const Vector3 & CPlayer::GetAimPos() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CPlayer::GetAimDir() const noexcept
|
||||
const Vector3 & CPlayer::GetAimDir() const
|
||||
{
|
||||
// Clear any previous aim direction
|
||||
s_Vector3.Clear();
|
||||
@@ -1635,7 +1635,7 @@ const Vector3 & CPlayer::GetAimDir() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::Embark(const Reference < CVehicle > & vehicle) const noexcept
|
||||
void CPlayer::Embark(const Reference < CVehicle > & vehicle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && vehicle)
|
||||
{
|
||||
@@ -1652,7 +1652,7 @@ void CPlayer::Embark(const Reference < CVehicle > & vehicle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::Embark(const Reference < CVehicle > & vehicle, SQInt32 slot, bool allocate, bool warp) const noexcept
|
||||
void CPlayer::Embark(const Reference < CVehicle > & vehicle, SQInt32 slot, bool allocate, bool warp) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && vehicle)
|
||||
{
|
||||
@@ -1669,7 +1669,7 @@ void CPlayer::Embark(const Reference < CVehicle > & vehicle, SQInt32 slot, bool
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::Disembark() const noexcept
|
||||
void CPlayer::Disembark() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1683,7 +1683,7 @@ void CPlayer::Disembark() const noexcept
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CPlayer::Redirect(const SQChar * ip, SQUnsignedInteger port, const SQChar * nick, \
|
||||
const SQChar * pass, const SQChar * user) noexcept
|
||||
const SQChar * pass, const SQChar * user)
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
|
@@ -33,573 +33,573 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct a reference from a base reference.
|
||||
*/
|
||||
CPlayer(const Reference< CPlayer > & o) noexcept;
|
||||
CPlayer(const Reference< CPlayer > & o);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See if the referenced player instance is streamed for the specified player.
|
||||
*/
|
||||
bool IsStreamedFor(const Reference < CPlayer > & player) const noexcept;
|
||||
bool IsStreamedFor(const Reference < CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the class of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetClass() const noexcept;
|
||||
SQInt32 GetClass() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance has administrator privileges.
|
||||
*/
|
||||
bool GetAdmin() const noexcept;
|
||||
bool GetAdmin() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance has administrator privileges.
|
||||
*/
|
||||
void SetAdmin(bool toggle) const noexcept;
|
||||
void SetAdmin(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the ip address of the referenced player instance.
|
||||
*/
|
||||
const SQChar * GetIP() const noexcept;
|
||||
const SQChar * GetIP() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Kick the referenced player instance from the server.
|
||||
*/
|
||||
void Kick() const noexcept;
|
||||
void Kick() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Ban the referenced player instance from the server.
|
||||
*/
|
||||
void Ban() const noexcept;
|
||||
void Ban() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance is connected.
|
||||
*/
|
||||
bool IsConnected() const noexcept;
|
||||
bool IsConnected() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance is spawned.
|
||||
*/
|
||||
bool IsSpawned() const noexcept;
|
||||
bool IsSpawned() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the key of the referenced player instance.
|
||||
*/
|
||||
SQUnsignedInteger GetKey() const noexcept;
|
||||
SQUnsignedInteger GetKey() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the world in which the referenced player instance exists.
|
||||
*/
|
||||
SQInt32 GetWorld() const noexcept;
|
||||
SQInt32 GetWorld() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the world in which the referenced player instance exists.
|
||||
*/
|
||||
void SetWorld(SQInt32 world) const noexcept;
|
||||
void SetWorld(SQInt32 world) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the secondary world of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetSecWorld() const noexcept;
|
||||
SQInt32 GetSecWorld() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the secondary world of the referenced player instance.
|
||||
*/
|
||||
void SetSecWorld(SQInt32 world) const noexcept;
|
||||
void SetSecWorld(SQInt32 world) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the unique world of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetUniqueWorld() const noexcept;
|
||||
SQInt32 GetUniqueWorld() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance is compatible with the specified world.
|
||||
*/
|
||||
bool IsWorldCompatible(SQInt32 world) const noexcept;
|
||||
bool IsWorldCompatible(SQInt32 world) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the current state of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetState() const noexcept;
|
||||
SQInt32 GetState() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the nick name of the referenced player instance.
|
||||
*/
|
||||
const SQChar * GetName() const noexcept;
|
||||
const SQChar * GetName() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the nick name of the referenced player instance.
|
||||
*/
|
||||
void SetName(const SQChar * name) const noexcept;
|
||||
void SetName(const SQChar * name) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the team of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetTeam() const noexcept;
|
||||
SQInt32 GetTeam() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the team of the referenced player instance.
|
||||
*/
|
||||
void SetTeam(SQInt32 team) const noexcept;
|
||||
void SetTeam(SQInt32 team) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the skin of the referenced player instance.
|
||||
*/
|
||||
const CSkin & GetSkin() const noexcept;
|
||||
const CSkin & GetSkin() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the skin of the referenced player instance.
|
||||
*/
|
||||
void SetSkin(const CSkin & skin) const noexcept;
|
||||
void SetSkin(const CSkin & skin) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the skin identifier of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetSkinID() const noexcept;
|
||||
SQInt32 GetSkinID() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the skin identifier of the referenced player instance.
|
||||
*/
|
||||
void SetSkinID(SQInt32 skin) const noexcept;
|
||||
void SetSkinID(SQInt32 skin) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the color of the referenced player instance.
|
||||
*/
|
||||
const Color3 & GetColor() const noexcept;
|
||||
const Color3 & GetColor() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the color of the referenced player instance.
|
||||
*/
|
||||
void SetColor(const Color3 & color) const noexcept;
|
||||
void SetColor(const Color3 & color) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the color of the referenced player instance.
|
||||
*/
|
||||
void SetColorEx(uint8 r, uint8 g, uint8 b) const noexcept;
|
||||
void SetColorEx(uint8 r, uint8 g, uint8 b) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Force the referenced player instance to spawn in the game.
|
||||
*/
|
||||
void ForceSpawn() const noexcept;
|
||||
void ForceSpawn() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Force the referenced player instance to select a class.
|
||||
*/
|
||||
void ForceSelect() const noexcept;
|
||||
void ForceSelect() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the money amount of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetMoney() const noexcept;
|
||||
SQInt32 GetMoney() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the money amount of the referenced player instance.
|
||||
*/
|
||||
void SetMoney(SQInt32 amount) const noexcept;
|
||||
void SetMoney(SQInt32 amount) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Give a certain amount of money to the referenced player instance.
|
||||
*/
|
||||
void GiveMoney(SQInt32 amount) const noexcept;
|
||||
void GiveMoney(SQInt32 amount) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the score of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetScore() const noexcept;
|
||||
SQInt32 GetScore() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the score of the referenced player instance.
|
||||
*/
|
||||
void SetScore(SQInt32 score) const noexcept;
|
||||
void SetScore(SQInt32 score) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the connection latency of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetPing() const noexcept;
|
||||
SQInt32 GetPing() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the frames per second of the referenced player instance.
|
||||
*/
|
||||
SQFloat GetFPS() const noexcept;
|
||||
SQFloat GetFPS() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance is typing.
|
||||
*/
|
||||
bool IsTyping() const noexcept;
|
||||
bool IsTyping() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the unique user identifier of the referenced player instance.
|
||||
*/
|
||||
const SQChar * GetUID() const noexcept;
|
||||
const SQChar * GetUID() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the unique user identifier version 2 of the referenced player instance.
|
||||
*/
|
||||
const SQChar * GetUID2() const noexcept;
|
||||
const SQChar * GetUID2() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the current health of the referenced player instance.
|
||||
*/
|
||||
SQFloat GetHealth() const noexcept;
|
||||
SQFloat GetHealth() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the health of the referenced player instance.
|
||||
*/
|
||||
void SetHealth(SQFloat amount) const noexcept;
|
||||
void SetHealth(SQFloat amount) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the current health of the referenced player instance.
|
||||
*/
|
||||
SQFloat GetArmour() const noexcept;
|
||||
SQFloat GetArmour() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the health of the referenced player instance.
|
||||
*/
|
||||
void SetArmour(SQFloat amount) const noexcept;
|
||||
void SetArmour(SQFloat amount) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the immunity flags of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetImmunity() const noexcept;
|
||||
SQInt32 GetImmunity() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the immunity flags of the referenced player instance.
|
||||
*/
|
||||
void SetImmunity(SQInt32 flags) const noexcept;
|
||||
void SetImmunity(SQInt32 flags) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the position of the referenced player instance.
|
||||
*/
|
||||
const Vector3 & GetPosition() const noexcept;
|
||||
const Vector3 & GetPosition() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced player instance.
|
||||
*/
|
||||
void SetPosition(const Vector3 & pos) const noexcept;
|
||||
void SetPosition(const Vector3 & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced player instance.
|
||||
*/
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the speed of the referenced player instance.
|
||||
*/
|
||||
const Vector3 & GetSpeed() const noexcept;
|
||||
const Vector3 & GetSpeed() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the speed of the referenced player instance.
|
||||
*/
|
||||
void SetSpeed(const Vector3 & vel) const noexcept;
|
||||
void SetSpeed(const Vector3 & vel) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the speed of the referenced player instance.
|
||||
*/
|
||||
void SetSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetSpeedEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the speed of the referenced player instance.
|
||||
*/
|
||||
void AddSpeed(const Vector3 & vel) const noexcept;
|
||||
void AddSpeed(const Vector3 & vel) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the speed of the referenced player instance.
|
||||
*/
|
||||
void AddSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void AddSpeedEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the heading angle of the referenced player instance.
|
||||
*/
|
||||
SQFloat GetHeading() const noexcept;
|
||||
SQFloat GetHeading() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the heading angle of the referenced player instance.
|
||||
*/
|
||||
void SetHeading(SQFloat angle) const noexcept;
|
||||
void SetHeading(SQFloat angle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the alpha of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetAlpha() const noexcept;
|
||||
SQInt32 GetAlpha() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the alpha of the referenced player instance.
|
||||
*/
|
||||
void SetAlpha(SQInt32 alpha, SQInt32 fade) const noexcept;
|
||||
void SetAlpha(SQInt32 alpha, SQInt32 fade) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the vehicle status of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetVehicleStatus() const noexcept;
|
||||
SQInt32 GetVehicleStatus() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the occupied vehicle slot by the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetOccupiedSlot() const noexcept;
|
||||
SQInt32 GetOccupiedSlot() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the vehicle in which the referenced player instance is embarked.
|
||||
*/
|
||||
Reference < CVehicle > GetVehicle() const noexcept;
|
||||
Reference < CVehicle > GetVehicle() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the vehicle identifier in which the referenced player instance is embarked.
|
||||
*/
|
||||
SQInt32 GetVehicleID() const noexcept;
|
||||
SQInt32 GetVehicleID() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance can be controlled.
|
||||
*/
|
||||
bool GetControllable() const noexcept;
|
||||
bool GetControllable() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance can be controlled.
|
||||
*/
|
||||
void SetControllable(bool toggle) const noexcept;
|
||||
void SetControllable(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance can driveby.
|
||||
*/
|
||||
bool GetDriveby() const noexcept;
|
||||
bool GetDriveby() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance can driveby.
|
||||
*/
|
||||
void SetDriveby(bool toggle) const noexcept;
|
||||
void SetDriveby(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance has white scanlines.
|
||||
*/
|
||||
bool GetWhiteScanlines() const noexcept;
|
||||
bool GetWhiteScanlines() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance has white scanlines.
|
||||
*/
|
||||
void SetWhiteScanlines(bool toggle) const noexcept;
|
||||
void SetWhiteScanlines(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance has green scanlines.
|
||||
*/
|
||||
bool GetGreenScanlines() const noexcept;
|
||||
bool GetGreenScanlines() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance has green scanlines.
|
||||
*/
|
||||
void SetGreenScanlines(bool toggle) const noexcept;
|
||||
void SetGreenScanlines(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance has widescreen.
|
||||
*/
|
||||
bool GetWidescreen() const noexcept;
|
||||
bool GetWidescreen() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance has widescreen.
|
||||
*/
|
||||
void SetWidescreen(bool toggle) const noexcept;
|
||||
void SetWidescreen(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance displays markers.
|
||||
*/
|
||||
bool GetShowMarkers() const noexcept;
|
||||
bool GetShowMarkers() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance displays markers.
|
||||
*/
|
||||
void SetShowMarkers(bool toggle) const noexcept;
|
||||
void SetShowMarkers(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance has attacking privileges.
|
||||
*/
|
||||
bool GetAttackPriv() const noexcept;
|
||||
bool GetAttackPriv() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance has attacking privileges.
|
||||
*/
|
||||
void SetAttackPriv(bool toggle) const noexcept;
|
||||
void SetAttackPriv(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance has markers.
|
||||
*/
|
||||
bool GetHasMarker() const noexcept;
|
||||
bool GetHasMarker() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance has markers.
|
||||
*/
|
||||
void SetHasMarker(bool toggle) const noexcept;
|
||||
void SetHasMarker(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance has chat tags.
|
||||
*/
|
||||
bool GetChatTags() const noexcept;
|
||||
bool GetChatTags() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance has chat tags.
|
||||
*/
|
||||
void SetChatTags(bool toggle) const noexcept;
|
||||
void SetChatTags(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance is under drunk effects.
|
||||
*/
|
||||
bool GetDrunkEffects() const noexcept;
|
||||
bool GetDrunkEffects() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced player instance is under drunk effects.
|
||||
*/
|
||||
void SetDrunkEffects(bool toggle) const noexcept;
|
||||
void SetDrunkEffects(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the weapon of the referenced player instance.
|
||||
*/
|
||||
const CWeapon & GetWeapon() const noexcept;
|
||||
const CWeapon & GetWeapon() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the weapon of the referenced player instance.
|
||||
*/
|
||||
void SetWeapon(const CWeapon & wep) const noexcept;
|
||||
void SetWeapon(const CWeapon & wep) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the weapon of the referenced player instance.
|
||||
*/
|
||||
void SetWeaponEx(const CWeapon & wep, SQInt32 ammo) const noexcept;
|
||||
void SetWeaponEx(const CWeapon & wep, SQInt32 ammo) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the weapon identifier of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetWeaponID() const noexcept;
|
||||
SQInt32 GetWeaponID() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the weapon of the referenced player instance.
|
||||
*/
|
||||
void SetWeaponID(SQInt32 wep) const noexcept;
|
||||
void SetWeaponID(SQInt32 wep) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the weapon of the referenced player instance.
|
||||
*/
|
||||
void SetWeaponIDEx(SQInt32 wep, SQInt32 ammo) const noexcept;
|
||||
void SetWeaponIDEx(SQInt32 wep, SQInt32 ammo) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Give a weapon of the referenced player instance.
|
||||
*/
|
||||
void GiveWeapon(const CWeapon & wep) const noexcept;
|
||||
void GiveWeapon(const CWeapon & wep) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Give a weapon of the referenced player instance.
|
||||
*/
|
||||
void GiveWeaponEx(const CWeapon & wep, SQInt32 ammo) const noexcept;
|
||||
void GiveWeaponEx(const CWeapon & wep, SQInt32 ammo) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Give a weapon of the referenced player instance.
|
||||
*/
|
||||
void GiveWeaponIDEx(SQInt32 wep, SQInt32 ammo) const noexcept;
|
||||
void GiveWeaponIDEx(SQInt32 wep, SQInt32 ammo) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Strip the referenced player instance of all weapons.
|
||||
*/
|
||||
void StripWeapons() const noexcept;
|
||||
void StripWeapons() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the camera position of the referenced player instance.
|
||||
*/
|
||||
void SetCameraPosition(const Vector3 & pos, const Vector3 & aim) const noexcept;
|
||||
void SetCameraPosition(const Vector3 & pos, const Vector3 & aim) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Restore the camera position of the referenced player instance.
|
||||
*/
|
||||
void RestoreCamera() const noexcept;
|
||||
void RestoreCamera() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance has camera locked.
|
||||
*/
|
||||
bool IsCameraLocked() const noexcept;
|
||||
bool IsCameraLocked() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the animation of the referenced player instance.
|
||||
*/
|
||||
void SetAnimation(SQInt32 group, SQInt32 anim) const noexcept;
|
||||
void SetAnimation(SQInt32 group, SQInt32 anim) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the wanted level of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetWantedLevel() const noexcept;
|
||||
SQInt32 GetWantedLevel() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the wanted level of the referenced player instance.
|
||||
*/
|
||||
void SetWantedLevel(SQInt32 level) const noexcept;
|
||||
void SetWantedLevel(SQInt32 level) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the vehicle that the referenced player instance is standing on.
|
||||
*/
|
||||
Reference < CVehicle > StandingOnVehicle() const noexcept;
|
||||
Reference < CVehicle > StandingOnVehicle() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the object that the referenced player instance is standing on.
|
||||
*/
|
||||
Reference < CObject > StandingOnObject() const noexcept;
|
||||
Reference < CObject > StandingOnObject() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance is away.
|
||||
*/
|
||||
bool IsAway() const noexcept;
|
||||
bool IsAway() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the player that the referenced player instance is spectating.
|
||||
*/
|
||||
Reference < CPlayer > Spectating() const noexcept;
|
||||
Reference < CPlayer > Spectating() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the referenced player instance to spectate the specified player instance.
|
||||
*/
|
||||
void Spectate(const Reference < CPlayer > & target) const noexcept;
|
||||
void Spectate(const Reference < CPlayer > & target) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance is burning.
|
||||
*/
|
||||
bool IsBurning() const noexcept;
|
||||
bool IsBurning() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced player instance is crouched.
|
||||
*/
|
||||
bool IsCrouched() const noexcept;
|
||||
bool IsCrouched() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the current action of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetAction() const noexcept;
|
||||
SQInt32 GetAction() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the game keys of the referenced player instance.
|
||||
*/
|
||||
SQInt32 GetGameKeys() const noexcept;
|
||||
SQInt32 GetGameKeys() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the aim position of the referenced player instance.
|
||||
*/
|
||||
const Vector3 & GetAimPos() const noexcept;
|
||||
const Vector3 & GetAimPos() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the aim direction of the referenced player instance.
|
||||
*/
|
||||
const Vector3 & GetAimDir() const noexcept;
|
||||
const Vector3 & GetAimDir() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Embark the referenced player instance into the specified vehicle instance.
|
||||
*/
|
||||
void Embark(const Reference < CVehicle > & vehicle) const noexcept;
|
||||
void Embark(const Reference < CVehicle > & vehicle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Embark the referenced player instance into the specified vehicle instance.
|
||||
*/
|
||||
void Embark(const Reference < CVehicle > & vehicle, SQInt32 slot, bool allocate, bool warp) const noexcept;
|
||||
void Embark(const Reference < CVehicle > & vehicle, SQInt32 slot, bool allocate, bool warp) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Disembark the referenced player instance from the currently embarked vehicle instance.
|
||||
*/
|
||||
void Disembark() const noexcept;
|
||||
void Disembark() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Redirect the referenced player instance to the specified server.
|
||||
*/
|
||||
bool Redirect(const SQChar * ip, SQUnsignedInteger port, const SQChar * nick, \
|
||||
const SQChar * pass, const SQChar * user) noexcept;
|
||||
const SQChar * pass, const SQChar * user);
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
@@ -16,14 +16,14 @@ SQUint32 CSphere::s_ColorG;
|
||||
SQUint32 CSphere::s_ColorB;
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CSphere::CSphere(const Reference< CSphere > & o) noexcept
|
||||
CSphere::CSphere(const Reference< CSphere > & o)
|
||||
: Reference(o)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CSphere::IsStreamedFor(const Reference< CPlayer > & player) const noexcept
|
||||
bool CSphere::IsStreamedFor(const Reference< CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -42,7 +42,7 @@ bool CSphere::IsStreamedFor(const Reference< CPlayer > & player) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CSphere::GetWorld() const noexcept
|
||||
SQInt32 CSphere::GetWorld() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -57,7 +57,7 @@ SQInt32 CSphere::GetWorld() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSphere::SetWorld(SQInt32 world) const noexcept
|
||||
void CSphere::SetWorld(SQInt32 world) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -70,7 +70,7 @@ void CSphere::SetWorld(SQInt32 world) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Color3 & CSphere::GetColor() const noexcept
|
||||
const Color3 & CSphere::GetColor() const
|
||||
{
|
||||
// Clear any previous color
|
||||
s_Color3.Clear();
|
||||
@@ -89,7 +89,7 @@ const Color3 & CSphere::GetColor() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSphere::SetColor(const Color3 & col) const noexcept
|
||||
void CSphere::SetColor(const Color3 & col) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -102,7 +102,7 @@ void CSphere::SetColor(const Color3 & col) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSphere::SetColorEx(Uint8 r, Uint8 g, Uint8 b) const noexcept
|
||||
void CSphere::SetColorEx(Uint8 r, Uint8 g, Uint8 b) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -115,7 +115,7 @@ void CSphere::SetColorEx(Uint8 r, Uint8 g, Uint8 b) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CSphere::GetPosition() const noexcept
|
||||
const Vector3 & CSphere::GetPosition() const
|
||||
{
|
||||
// Clear any previous position
|
||||
s_Vector3.Clear();
|
||||
@@ -133,7 +133,7 @@ const Vector3 & CSphere::GetPosition() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSphere::SetPosition(const Vector3 & pos) const noexcept
|
||||
void CSphere::SetPosition(const Vector3 & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -146,7 +146,7 @@ void CSphere::SetPosition(const Vector3 & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSphere::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CSphere::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -159,7 +159,7 @@ void CSphere::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CSphere::GetRadius() const noexcept
|
||||
SQFloat CSphere::GetRadius() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -174,7 +174,7 @@ SQFloat CSphere::GetRadius() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSphere::SetRadius(SQFloat radius) const noexcept
|
||||
void CSphere::SetRadius(SQFloat radius) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -187,7 +187,7 @@ void CSphere::SetRadius(SQFloat radius) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CPlayer > CSphere::GetOwner() const noexcept
|
||||
Reference< CPlayer > CSphere::GetOwner() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -202,7 +202,7 @@ Reference< CPlayer > CSphere::GetOwner() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CSphere::GetOwnerID() const noexcept
|
||||
SQInt32 CSphere::GetOwnerID() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -220,7 +220,7 @@ SQInt32 CSphere::GetOwnerID() const noexcept
|
||||
Reference< CSphere > CreateBaseSphere_PEF(SQInt32 player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b,
|
||||
SQFloat radius) noexcept
|
||||
SQFloat radius)
|
||||
{
|
||||
return _Core->NewSphere(player, world, x, y, z, r, g, b, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -230,7 +230,7 @@ Reference< CSphere > CreateBaseSphere_PEF(SQInt32 player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b,
|
||||
SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSphere(player, world, x, y, z, r, g, b, radius,
|
||||
header, payload);
|
||||
@@ -238,7 +238,7 @@ Reference< CSphere > CreateBaseSphere_PEF(SQInt32 player, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CSphere > CreateBaseSphere_PCF(SQInt32 player, SQInt32 world,
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius) noexcept
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius)
|
||||
{
|
||||
return _Core->NewSphere(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -246,7 +246,7 @@ Reference< CSphere > CreateBaseSphere_PCF(SQInt32 player, SQInt32 world,
|
||||
|
||||
Reference< CSphere > CreateBaseSphere_PCF(SQInt32 player, SQInt32 world,
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSphere(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, radius,
|
||||
header, payload);
|
||||
@@ -256,7 +256,7 @@ Reference< CSphere > CreateBaseSphere_PCF(SQInt32 player, SQInt32 world,
|
||||
Reference< CSphere > CreateBaseSphere_EF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b,
|
||||
SQFloat radius) noexcept
|
||||
SQFloat radius)
|
||||
{
|
||||
return _Core->NewSphere(player, world, x, y, z, r, g, b, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -266,7 +266,7 @@ Reference< CSphere > CreateBaseSphere_EF(const Reference< CPlayer > & player, SQ
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b,
|
||||
SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSphere(player, world, x, y, z, r, g, b, radius,
|
||||
header, payload);
|
||||
@@ -274,7 +274,7 @@ Reference< CSphere > CreateBaseSphere_EF(const Reference< CPlayer > & player, SQ
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CSphere > CreateBaseSphere_CF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius) noexcept
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius)
|
||||
{
|
||||
return _Core->NewSphere(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -282,7 +282,7 @@ Reference< CSphere > CreateBaseSphere_CF(const Reference< CPlayer > & player, SQ
|
||||
|
||||
Reference< CSphere > CreateBaseSphere_CF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSphere(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, radius,
|
||||
header, payload);
|
||||
@@ -292,7 +292,7 @@ Reference< CSphere > CreateBaseSphere_CF(const Reference< CPlayer > & player, SQ
|
||||
CSphere CreateSphere_PEF(SQInt32 player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b,
|
||||
SQFloat radius) noexcept
|
||||
SQFloat radius)
|
||||
{
|
||||
return _Core->NewSphere(player, world, x, y, z, r, g, b, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -302,7 +302,7 @@ CSphere CreateSphere_PEF(SQInt32 player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b,
|
||||
SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSphere(player, world, x, y, z, r, g, b, radius,
|
||||
header, payload);
|
||||
@@ -310,7 +310,7 @@ CSphere CreateSphere_PEF(SQInt32 player, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CSphere CreateSphere_PCF(SQInt32 player, SQInt32 world,
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius) noexcept
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius)
|
||||
{
|
||||
return _Core->NewSphere(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -318,7 +318,7 @@ CSphere CreateSphere_PCF(SQInt32 player, SQInt32 world,
|
||||
|
||||
CSphere CreateSphere_PCF(SQInt32 player, SQInt32 world,
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSphere(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, radius,
|
||||
header, payload);
|
||||
@@ -328,7 +328,7 @@ CSphere CreateSphere_PCF(SQInt32 player, SQInt32 world,
|
||||
CSphere CreateSphere_EF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b,
|
||||
SQFloat radius) noexcept
|
||||
SQFloat radius)
|
||||
{
|
||||
return _Core->NewSphere(player, world, x, y, z, r, g, b, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -338,7 +338,7 @@ CSphere CreateSphere_EF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
Uint8 r, Uint8 g, Uint8 b,
|
||||
SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSphere(player, world, x, y, z, r, g, b, radius,
|
||||
header, payload);
|
||||
@@ -346,7 +346,7 @@ CSphere CreateSphere_EF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CSphere CreateSphere_CF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius) noexcept
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius)
|
||||
{
|
||||
return _Core->NewSphere(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, radius,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -354,7 +354,7 @@ CSphere CreateSphere_CF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
|
||||
CSphere CreateSphere_CF(const Reference< CPlayer > & player, SQInt32 world,
|
||||
const Vector3 & pos, const Color3 & color, SQFloat radius,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSphere(player, world, pos.x, pos.y, pos.z, color.r, color.g, color.b, radius,
|
||||
header, payload);
|
||||
|
@@ -29,72 +29,72 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct a reference from a base reference.
|
||||
*/
|
||||
CSphere(const Reference< CSphere > & o) noexcept;
|
||||
CSphere(const Reference< CSphere > & o);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See if the referenced sphere instance is streamed for the specified player.
|
||||
*/
|
||||
bool IsStreamedFor(const Reference< CPlayer > & player) const noexcept;
|
||||
bool IsStreamedFor(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the world in which the referenced sphere instance exists.
|
||||
*/
|
||||
SQInt32 GetWorld() const noexcept;
|
||||
SQInt32 GetWorld() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the world in which the referenced sphere instance exists.
|
||||
*/
|
||||
void SetWorld(SQInt32 world) const noexcept;
|
||||
void SetWorld(SQInt32 world) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the color of the referenced sphere instance.
|
||||
*/
|
||||
const Color3 & GetColor() const noexcept;
|
||||
const Color3 & GetColor() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the color of the referenced sphere instance.
|
||||
*/
|
||||
void SetColor(const Color3 & col) const noexcept;
|
||||
void SetColor(const Color3 & col) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the color of the referenced sphere instance.
|
||||
*/
|
||||
void SetColorEx(Uint8 r, Uint8 g, Uint8 b) const noexcept;
|
||||
void SetColorEx(Uint8 r, Uint8 g, Uint8 b) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the position of the referenced sphere instance.
|
||||
*/
|
||||
const Vector3 & GetPosition() const noexcept;
|
||||
const Vector3 & GetPosition() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced sphere instance.
|
||||
*/
|
||||
void SetPosition(const Vector3 & pos) const noexcept;
|
||||
void SetPosition(const Vector3 & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced sphere instance.
|
||||
*/
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the radius of the referenced sphere instance.
|
||||
*/
|
||||
SQFloat GetRadius() const noexcept;
|
||||
SQFloat GetRadius() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the radius of the referenced sphere instance.
|
||||
*/
|
||||
void SetRadius(SQFloat radius) const noexcept;
|
||||
void SetRadius(SQFloat radius) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the owner of the referenced sphere instance.
|
||||
*/
|
||||
Reference< CPlayer > GetOwner() const noexcept;
|
||||
Reference< CPlayer > GetOwner() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the owner identifier of the referenced sphere instance.
|
||||
*/
|
||||
SQInt32 GetOwnerID() const noexcept;
|
||||
SQInt32 GetOwnerID() const;
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
@@ -7,14 +7,14 @@
|
||||
namespace SqMod {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CSprite::CSprite(const Reference< CSprite > & o) noexcept
|
||||
CSprite::CSprite(const Reference< CSprite > & o)
|
||||
: Reference(o)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::ShowAll() const noexcept
|
||||
void CSprite::ShowAll() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -27,7 +27,7 @@ void CSprite::ShowAll() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::ShowFor(const Reference< CPlayer > & player) const noexcept
|
||||
void CSprite::ShowFor(const Reference< CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -44,7 +44,7 @@ void CSprite::ShowFor(const Reference< CPlayer > & player) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::ShowRange(SQInt32 first, SQInt32 last) const noexcept
|
||||
void CSprite::ShowRange(SQInt32 first, SQInt32 last) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && (first <= last))
|
||||
{
|
||||
@@ -67,7 +67,7 @@ void CSprite::ShowRange(SQInt32 first, SQInt32 last) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::HideAll() const noexcept
|
||||
void CSprite::HideAll() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -80,7 +80,7 @@ void CSprite::HideAll() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::HideFor(const Reference< CPlayer > & player) const noexcept
|
||||
void CSprite::HideFor(const Reference< CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -97,7 +97,7 @@ void CSprite::HideFor(const Reference< CPlayer > & player) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::HideRange(SQInt32 first, SQInt32 last) const noexcept
|
||||
void CSprite::HideRange(SQInt32 first, SQInt32 last) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && (first <= last))
|
||||
{
|
||||
@@ -120,7 +120,7 @@ void CSprite::HideRange(SQInt32 first, SQInt32 last) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetPositionAll(const Vector2i & pos) const noexcept
|
||||
void CSprite::SetPositionAll(const Vector2i & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -133,7 +133,7 @@ void CSprite::SetPositionAll(const Vector2i & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetPositionAllEx(SQInt32 x, SQInt32 y) const noexcept
|
||||
void CSprite::SetPositionAllEx(SQInt32 x, SQInt32 y) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -146,7 +146,7 @@ void CSprite::SetPositionAllEx(SQInt32 x, SQInt32 y) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetPositionFor(const Reference< CPlayer > & player, const Vector2i & pos) const noexcept
|
||||
void CSprite::SetPositionFor(const Reference< CPlayer > & player, const Vector2i & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -164,7 +164,7 @@ void CSprite::SetPositionFor(const Reference< CPlayer > & player, const Vector2i
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const noexcept
|
||||
void CSprite::SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -181,7 +181,7 @@ void CSprite::SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, S
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const noexcept
|
||||
void CSprite::SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && (first <= last))
|
||||
{
|
||||
@@ -204,7 +204,7 @@ void CSprite::SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetCenterAll(const Vector2i & pos) const noexcept
|
||||
void CSprite::SetCenterAll(const Vector2i & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -217,7 +217,7 @@ void CSprite::SetCenterAll(const Vector2i & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetCenterAllEx(SQInt32 x, SQInt32 y) const noexcept
|
||||
void CSprite::SetCenterAllEx(SQInt32 x, SQInt32 y) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -230,7 +230,7 @@ void CSprite::SetCenterAllEx(SQInt32 x, SQInt32 y) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetCenterFor(const Reference< CPlayer > & player, const Vector2i & pos) const noexcept
|
||||
void CSprite::SetCenterFor(const Reference< CPlayer > & player, const Vector2i & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -247,7 +247,7 @@ void CSprite::SetCenterFor(const Reference< CPlayer > & player, const Vector2i &
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetCenterForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const noexcept
|
||||
void CSprite::SetCenterForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -264,7 +264,7 @@ void CSprite::SetCenterForEx(const Reference< CPlayer > & player, SQInt32 x, SQI
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetCenterRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const noexcept
|
||||
void CSprite::SetCenterRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && (first <= last))
|
||||
{
|
||||
@@ -287,7 +287,7 @@ void CSprite::SetCenterRange(SQInt32 first, SQInt32 last, const Vector2i & pos)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetRotationAll(SQFloat rot) const noexcept
|
||||
void CSprite::SetRotationAll(SQFloat rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -300,7 +300,7 @@ void CSprite::SetRotationAll(SQFloat rot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetRotationFor(const Reference< CPlayer > & player, SQFloat rot) const noexcept
|
||||
void CSprite::SetRotationFor(const Reference< CPlayer > & player, SQFloat rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -317,7 +317,7 @@ void CSprite::SetRotationFor(const Reference< CPlayer > & player, SQFloat rot) c
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetRotationRange(SQInt32 first, SQInt32 last, SQFloat rot) const noexcept
|
||||
void CSprite::SetRotationRange(SQInt32 first, SQInt32 last, SQFloat rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && (first <= last))
|
||||
{
|
||||
@@ -340,7 +340,7 @@ void CSprite::SetRotationRange(SQInt32 first, SQInt32 last, SQFloat rot) const n
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetAlphaAll(Uint8 alpha) const noexcept
|
||||
void CSprite::SetAlphaAll(Uint8 alpha) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -353,7 +353,7 @@ void CSprite::SetAlphaAll(Uint8 alpha) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetAlphaFor(const Reference< CPlayer > & player, Uint8 alpha) const noexcept
|
||||
void CSprite::SetAlphaFor(const Reference< CPlayer > & player, Uint8 alpha) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -370,7 +370,7 @@ void CSprite::SetAlphaFor(const Reference< CPlayer > & player, Uint8 alpha) cons
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CSprite::SetAlphaRange(SQInt32 first, SQInt32 last, Uint8 alpha) const noexcept
|
||||
void CSprite::SetAlphaRange(SQInt32 first, SQInt32 last, Uint8 alpha) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && (first <= last))
|
||||
{
|
||||
@@ -393,7 +393,7 @@ void CSprite::SetAlphaRange(SQInt32 first, SQInt32 last, Uint8 alpha) const noex
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const SQChar * CSprite::GetFilePath() const noexcept
|
||||
const SQChar * CSprite::GetFilePath() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -411,7 +411,7 @@ const SQChar * CSprite::GetFilePath() const noexcept
|
||||
Reference< CSprite > CreateBaseSprite_ES(const SQChar * file,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
SQInt32 xr, SQInt32 yr,
|
||||
SQFloat angle, SQInt32 alpha, bool rel) noexcept
|
||||
SQFloat angle, SQInt32 alpha, bool rel)
|
||||
{
|
||||
return _Core->NewSprite(SQMOD_UNKNOWN, file, xp, yp, xr, yr, angle, alpha, rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -421,7 +421,7 @@ Reference< CSprite > CreateBaseSprite_ES(const SQChar * file,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
SQInt32 xr, SQInt32 yr,
|
||||
SQFloat angle, SQInt32 alpha, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSprite(SQMOD_UNKNOWN, file, xp, yp, xr, yr, angle, alpha, rel,
|
||||
header, payload);
|
||||
@@ -431,7 +431,7 @@ Reference< CSprite > CreateBaseSprite_ES(const SQChar * file,
|
||||
Reference< CSprite > CreateBaseSprite_EF(SQInt32 index, const SQChar * file,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
SQInt32 xr, SQInt32 yr,
|
||||
SQFloat angle, SQInt32 alpha, bool rel) noexcept
|
||||
SQFloat angle, SQInt32 alpha, bool rel)
|
||||
{
|
||||
return _Core->NewSprite(index, file, xp, yp, xr, yr, angle, alpha, rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -441,7 +441,7 @@ Reference< CSprite > CreateBaseSprite_EF(SQInt32 index, const SQChar * file,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
SQInt32 xr, SQInt32 yr,
|
||||
SQFloat angle, SQInt32 alpha, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSprite(index, file, xp, yp, xr, yr, angle, alpha, rel,
|
||||
header, payload);
|
||||
@@ -450,7 +450,7 @@ Reference< CSprite > CreateBaseSprite_EF(SQInt32 index, const SQChar * file,
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CSprite > CreateBaseSprite_CS(const SQChar * file,
|
||||
const Vector2i & pos, const Vector2i & rot,
|
||||
SQFloat angle, SQInt32 alpha, bool rel) noexcept
|
||||
SQFloat angle, SQInt32 alpha, bool rel)
|
||||
{
|
||||
return _Core->NewSprite(SQMOD_UNKNOWN, file, pos.x, pos.y, rot.x, rot.y, angle, alpha, rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -459,7 +459,7 @@ Reference< CSprite > CreateBaseSprite_CS(const SQChar * file,
|
||||
Reference< CSprite > CreateBaseSprite_CS(const SQChar * file,
|
||||
const Vector2i & pos, const Vector2i & rot,
|
||||
SQFloat angle, SQInt32 alpha, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSprite(SQMOD_UNKNOWN, file, pos.x, pos.y, rot.x, rot.y, angle, alpha, rel,
|
||||
header, payload);
|
||||
@@ -468,7 +468,7 @@ Reference< CSprite > CreateBaseSprite_CS(const SQChar * file,
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CSprite > CreateBaseSprite_CF(SQInt32 index, const SQChar * file,
|
||||
const Vector2i & pos, const Vector2i & rot,
|
||||
SQFloat angle, SQInt32 alpha, bool rel) noexcept
|
||||
SQFloat angle, SQInt32 alpha, bool rel)
|
||||
{
|
||||
return _Core->NewSprite(index, file, pos.x, pos.y, rot.x, rot.y, angle, alpha, rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -477,7 +477,7 @@ Reference< CSprite > CreateBaseSprite_CF(SQInt32 index, const SQChar * file,
|
||||
Reference< CSprite > CreateBaseSprite_CF(SQInt32 index, const SQChar * file,
|
||||
const Vector2i & pos, const Vector2i & rot,
|
||||
SQFloat angle, SQInt32 alpha, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSprite(index, file, pos.x, pos.y, rot.x, rot.y, angle, alpha, rel,
|
||||
header, payload);
|
||||
@@ -487,7 +487,7 @@ Reference< CSprite > CreateBaseSprite_CF(SQInt32 index, const SQChar * file,
|
||||
CSprite CreateSprite_ES(const SQChar * file,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
SQInt32 xr, SQInt32 yr,
|
||||
SQFloat angle, SQInt32 alpha, bool rel) noexcept
|
||||
SQFloat angle, SQInt32 alpha, bool rel)
|
||||
{
|
||||
return _Core->NewSprite(SQMOD_UNKNOWN, file, xp, yp, xr, yr, angle, alpha, rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -497,7 +497,7 @@ CSprite CreateSprite_ES(const SQChar * file,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
SQInt32 xr, SQInt32 yr,
|
||||
SQFloat angle, SQInt32 alpha, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSprite(SQMOD_UNKNOWN, file, xp, yp, xr, yr, angle, alpha, rel,
|
||||
header, payload);
|
||||
@@ -507,7 +507,7 @@ CSprite CreateSprite_ES(const SQChar * file,
|
||||
CSprite CreateSprite_EF(SQInt32 index, const SQChar * file,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
SQInt32 xr, SQInt32 yr,
|
||||
SQFloat angle, SQInt32 alpha, bool rel) noexcept
|
||||
SQFloat angle, SQInt32 alpha, bool rel)
|
||||
{
|
||||
return _Core->NewSprite(index, file, xp, yp, xr, yr, angle, alpha, rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -517,7 +517,7 @@ CSprite CreateSprite_EF(SQInt32 index, const SQChar * file,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
SQInt32 xr, SQInt32 yr,
|
||||
SQFloat angle, SQInt32 alpha, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSprite(index, file, xp, yp, xr, yr, angle, alpha, rel,
|
||||
header, payload);
|
||||
@@ -526,7 +526,7 @@ CSprite CreateSprite_EF(SQInt32 index, const SQChar * file,
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CSprite CreateSprite_CS(const SQChar * file,
|
||||
const Vector2i & pos, const Vector2i & rot,
|
||||
SQFloat angle, SQInt32 alpha, bool rel) noexcept
|
||||
SQFloat angle, SQInt32 alpha, bool rel)
|
||||
{
|
||||
return _Core->NewSprite(SQMOD_UNKNOWN, file, pos.x, pos.y, rot.x, rot.y, angle, alpha, rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -535,7 +535,7 @@ CSprite CreateSprite_CS(const SQChar * file,
|
||||
CSprite CreateSprite_CS(const SQChar * file,
|
||||
const Vector2i & pos, const Vector2i & rot,
|
||||
SQFloat angle, SQInt32 alpha, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSprite(SQMOD_UNKNOWN, file, pos.x, pos.y, rot.x, rot.y, angle, alpha, rel,
|
||||
header, payload);
|
||||
@@ -544,7 +544,7 @@ CSprite CreateSprite_CS(const SQChar * file,
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CSprite CreateSprite_CF(SQInt32 index, const SQChar * file,
|
||||
const Vector2i & pos, const Vector2i & rot,
|
||||
SQFloat angle, SQInt32 alpha, bool rel) noexcept
|
||||
SQFloat angle, SQInt32 alpha, bool rel)
|
||||
{
|
||||
return _Core->NewSprite(index, file, pos.x, pos.y, rot.x, rot.y, angle, alpha, rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -553,7 +553,7 @@ CSprite CreateSprite_CF(SQInt32 index, const SQChar * file,
|
||||
CSprite CreateSprite_CF(SQInt32 index, const SQChar * file,
|
||||
const Vector2i & pos, const Vector2i & rot,
|
||||
SQFloat angle, SQInt32 alpha, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewSprite(index, file, pos.x, pos.y, rot.x, rot.y, angle, alpha, rel,
|
||||
header, payload);
|
||||
|
@@ -22,122 +22,122 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct a reference from a base reference.
|
||||
*/
|
||||
CSprite(const Reference< CSprite > & o) noexcept;
|
||||
CSprite(const Reference< CSprite > & o);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Show the referenced sprite instance to all players on the server.
|
||||
*/
|
||||
void ShowAll() const noexcept;
|
||||
void ShowAll() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Show the referenced sprite instance to the specified player instance.
|
||||
*/
|
||||
void ShowFor(const Reference< CPlayer > & player) const noexcept;
|
||||
void ShowFor(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Show the referenced sprite instance to all players in the specified range.
|
||||
*/
|
||||
void ShowRange(SQInt32 first, SQInt32 last) const noexcept;
|
||||
void ShowRange(SQInt32 first, SQInt32 last) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Hide the referenced sprite instance from all players on the server.
|
||||
*/
|
||||
void HideAll() const noexcept;
|
||||
void HideAll() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Hide the referenced sprite instance from the specified player instance.
|
||||
*/
|
||||
void HideFor(const Reference< CPlayer > & player) const noexcept;
|
||||
void HideFor(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Hide the referenced sprite instance from all players in the specified range.
|
||||
*/
|
||||
void HideRange(SQInt32 first, SQInt32 last) const noexcept;
|
||||
void HideRange(SQInt32 first, SQInt32 last) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the position of the referenced sprite instance for all players on the server.
|
||||
*/
|
||||
void SetPositionAll(const Vector2i & pos) const noexcept;
|
||||
void SetPositionAll(const Vector2i & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the position of the referenced sprite instance for all players on the server.
|
||||
*/
|
||||
void SetPositionAllEx(SQInt32 x, SQInt32 y) const noexcept;
|
||||
void SetPositionAllEx(SQInt32 x, SQInt32 y) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the position of the referenced sprite instance for the specified player instance.
|
||||
*/
|
||||
void SetPositionFor(const Reference< CPlayer > & player, const Vector2i & pos) const noexcept;
|
||||
void SetPositionFor(const Reference< CPlayer > & player, const Vector2i & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the position of the referenced sprite instance for the specified player instance.
|
||||
*/
|
||||
void SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const noexcept;
|
||||
void SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the position of the referenced sprite instance for all players in the specified range.
|
||||
*/
|
||||
void SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const noexcept;
|
||||
void SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the center of the referenced sprite instance for all players on the server.
|
||||
*/
|
||||
void SetCenterAll(const Vector2i & pos) const noexcept;
|
||||
void SetCenterAll(const Vector2i & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the center of the referenced sprite instance for all players on the server.
|
||||
*/
|
||||
void SetCenterAllEx(SQInt32 x, SQInt32 y) const noexcept;
|
||||
void SetCenterAllEx(SQInt32 x, SQInt32 y) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the center of the referenced sprite instance for the specified player instance.
|
||||
*/
|
||||
void SetCenterFor(const Reference< CPlayer > & player, const Vector2i & pos) const noexcept;
|
||||
void SetCenterFor(const Reference< CPlayer > & player, const Vector2i & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the center of the referenced sprite instance for the specified player instance.
|
||||
*/
|
||||
void SetCenterForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const noexcept;
|
||||
void SetCenterForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the center of the referenced sprite instance for all players in the specified range.
|
||||
*/
|
||||
void SetCenterRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const noexcept;
|
||||
void SetCenterRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the rotation of the referenced sprite instance for all players on the server.
|
||||
*/
|
||||
void SetRotationAll(SQFloat rot) const noexcept;
|
||||
void SetRotationAll(SQFloat rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the rotation of the referenced sprite instance for the specified player instance.
|
||||
*/
|
||||
void SetRotationFor(const Reference< CPlayer > & player, SQFloat rot) const noexcept;
|
||||
void SetRotationFor(const Reference< CPlayer > & player, SQFloat rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the rotation of the referenced sprite instance for all players in the specified range.
|
||||
*/
|
||||
void SetRotationRange(SQInt32 first, SQInt32 last, SQFloat rot) const noexcept;
|
||||
void SetRotationRange(SQInt32 first, SQInt32 last, SQFloat rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the rotation of the referenced sprite instance for all players on the server.
|
||||
*/
|
||||
void SetAlphaAll(Uint8 alpha) const noexcept;
|
||||
void SetAlphaAll(Uint8 alpha) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the rotation of the referenced sprite instance for the specified player instance.
|
||||
*/
|
||||
void SetAlphaFor(const Reference< CPlayer > & player, Uint8 alpha) const noexcept;
|
||||
void SetAlphaFor(const Reference< CPlayer > & player, Uint8 alpha) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the rotation of the referenced sprite instance for all players in the specified range.
|
||||
*/
|
||||
void SetAlphaRange(SQInt32 first, SQInt32 last, Uint8 alpha) const noexcept;
|
||||
void SetAlphaRange(SQInt32 first, SQInt32 last, Uint8 alpha) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the file path of the texture used by the referenced sprite instance.
|
||||
*/
|
||||
const SQChar * GetFilePath() const noexcept;
|
||||
const SQChar * GetFilePath() const;
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
@@ -7,14 +7,14 @@
|
||||
namespace SqMod {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CTextdraw::CTextdraw(const Reference< CTextdraw > & o) noexcept
|
||||
CTextdraw::CTextdraw(const Reference< CTextdraw > & o)
|
||||
: Reference(o)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::ShowAll() const noexcept
|
||||
void CTextdraw::ShowAll() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -27,7 +27,7 @@ void CTextdraw::ShowAll() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::ShowFor(const Reference< CPlayer > & player) const noexcept
|
||||
void CTextdraw::ShowFor(const Reference< CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -44,7 +44,7 @@ void CTextdraw::ShowFor(const Reference< CPlayer > & player) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::ShowRange(SQInt32 first, SQInt32 last) const noexcept
|
||||
void CTextdraw::ShowRange(SQInt32 first, SQInt32 last) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && (last >= first))
|
||||
{
|
||||
@@ -67,7 +67,7 @@ void CTextdraw::ShowRange(SQInt32 first, SQInt32 last) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::HideAll() const noexcept
|
||||
void CTextdraw::HideAll() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -80,7 +80,7 @@ void CTextdraw::HideAll() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::HideFor(const Reference< CPlayer > & player) const noexcept
|
||||
void CTextdraw::HideFor(const Reference< CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -97,7 +97,7 @@ void CTextdraw::HideFor(const Reference< CPlayer > & player) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::HideRange(SQInt32 first, SQInt32 last) const noexcept
|
||||
void CTextdraw::HideRange(SQInt32 first, SQInt32 last) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && (last >= first))
|
||||
{
|
||||
@@ -120,7 +120,7 @@ void CTextdraw::HideRange(SQInt32 first, SQInt32 last) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::SetPositionAll(const Vector2i & pos) const noexcept
|
||||
void CTextdraw::SetPositionAll(const Vector2i & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -133,7 +133,7 @@ void CTextdraw::SetPositionAll(const Vector2i & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::SetPositionAllEx(SQInt32 x, SQInt32 y) const noexcept
|
||||
void CTextdraw::SetPositionAllEx(SQInt32 x, SQInt32 y) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -146,7 +146,7 @@ void CTextdraw::SetPositionAllEx(SQInt32 x, SQInt32 y) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::SetPositionFor(const Reference< CPlayer > & player, const Vector2i & pos) const noexcept
|
||||
void CTextdraw::SetPositionFor(const Reference< CPlayer > & player, const Vector2i & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -163,7 +163,7 @@ void CTextdraw::SetPositionFor(const Reference< CPlayer > & player, const Vector
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const noexcept
|
||||
void CTextdraw::SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -180,7 +180,7 @@ void CTextdraw::SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x,
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const noexcept
|
||||
void CTextdraw::SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && (last >= first))
|
||||
{
|
||||
@@ -203,7 +203,7 @@ void CTextdraw::SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & p
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::SetColorAll(const Color4 & col) const noexcept
|
||||
void CTextdraw::SetColorAll(const Color4 & col) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -216,7 +216,7 @@ void CTextdraw::SetColorAll(const Color4 & col) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::SetColorAllEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept
|
||||
void CTextdraw::SetColorAllEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -229,7 +229,7 @@ void CTextdraw::SetColorAllEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::SetColorFor(const Reference< CPlayer > & player, const Color4 & col) const noexcept
|
||||
void CTextdraw::SetColorFor(const Reference< CPlayer > & player, const Color4 & col) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -246,7 +246,7 @@ void CTextdraw::SetColorFor(const Reference< CPlayer > & player, const Color4 &
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::SetColorForEx(const Reference< CPlayer > & player, Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept
|
||||
void CTextdraw::SetColorForEx(const Reference< CPlayer > & player, Uint8 r, Uint8 g, Uint8 b, Uint8 a) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -263,7 +263,7 @@ void CTextdraw::SetColorForEx(const Reference< CPlayer > & player, Uint8 r, Uint
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CTextdraw::SetColorRange(SQInt32 first, SQInt32 last, const Color4 & col) const noexcept
|
||||
void CTextdraw::SetColorRange(SQInt32 first, SQInt32 last, const Color4 & col) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && (last >= first))
|
||||
{
|
||||
@@ -286,7 +286,7 @@ void CTextdraw::SetColorRange(SQInt32 first, SQInt32 last, const Color4 & col) c
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const SQChar * CTextdraw::GetText() const noexcept
|
||||
const SQChar * CTextdraw::GetText() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -304,7 +304,7 @@ const SQChar * CTextdraw::GetText() const noexcept
|
||||
Reference< CTextdraw > CreateBaseTextdraw_ES(const SQChar * text,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
bool rel) noexcept
|
||||
bool rel)
|
||||
{
|
||||
return _Core->NewTextdraw(SQMOD_UNKNOWN, text, xp, yp, PACK_ARGB(a, r, g, b), rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -314,7 +314,7 @@ Reference< CTextdraw > CreateBaseTextdraw_ES(const SQChar * text,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewTextdraw(SQMOD_UNKNOWN, text, xp, yp, PACK_ARGB(a, r, g, b), rel,
|
||||
header, payload);
|
||||
@@ -324,7 +324,7 @@ Reference< CTextdraw > CreateBaseTextdraw_ES(const SQChar * text,
|
||||
Reference< CTextdraw > CreateBaseTextdraw_EF(SQInt32 index, const SQChar * text,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
bool rel) noexcept
|
||||
bool rel)
|
||||
{
|
||||
return _Core->NewTextdraw(index,text, xp, yp, PACK_ARGB(a, r, g, b), rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -334,7 +334,7 @@ Reference< CTextdraw > CreateBaseTextdraw_EF(SQInt32 index, const SQChar * text,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewTextdraw(index, text, xp, yp, PACK_ARGB(a, r, g, b), rel,
|
||||
header, payload);
|
||||
@@ -342,7 +342,7 @@ Reference< CTextdraw > CreateBaseTextdraw_EF(SQInt32 index, const SQChar * text,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CTextdraw > CreateBaseTextdraw_CS(const SQChar * text,
|
||||
const Vector2i & pos, const Color4 & color, bool rel) noexcept
|
||||
const Vector2i & pos, const Color4 & color, bool rel)
|
||||
{
|
||||
return _Core->NewTextdraw(SQMOD_UNKNOWN, text, pos.x, pos.y, color.GetARGB(), rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -350,7 +350,7 @@ Reference< CTextdraw > CreateBaseTextdraw_CS(const SQChar * text,
|
||||
|
||||
Reference< CTextdraw > CreateBaseTextdraw_CS(const SQChar * text,
|
||||
const Vector2i & pos, const Color4 & color, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewTextdraw(SQMOD_UNKNOWN, text, pos.x, pos.y, color.GetARGB(), rel,
|
||||
header, payload);
|
||||
@@ -358,7 +358,7 @@ Reference< CTextdraw > CreateBaseTextdraw_CS(const SQChar * text,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CTextdraw > CreateBaseTextdraw_CF(SQInt32 index, const SQChar * text,
|
||||
const Vector2i & pos, const Color4 & color, bool rel) noexcept
|
||||
const Vector2i & pos, const Color4 & color, bool rel)
|
||||
{
|
||||
return _Core->NewTextdraw(index, text, pos.x, pos.y, color.GetARGB(), rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -366,7 +366,7 @@ Reference< CTextdraw > CreateBaseTextdraw_CF(SQInt32 index, const SQChar * text,
|
||||
|
||||
Reference< CTextdraw > CreateBaseTextdraw_CF(SQInt32 index, const SQChar * text,
|
||||
const Vector2i & pos, const Color4 & color, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewTextdraw(index, text, pos.x, pos.y, color.GetARGB(), rel,
|
||||
header, payload);
|
||||
@@ -376,7 +376,7 @@ Reference< CTextdraw > CreateBaseTextdraw_CF(SQInt32 index, const SQChar * text,
|
||||
CTextdraw CreateTextdraw_ES(const SQChar * text,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
bool rel) noexcept
|
||||
bool rel)
|
||||
{
|
||||
return _Core->NewTextdraw(SQMOD_UNKNOWN, text, xp, yp, PACK_ARGB(a, r, g, b), rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -386,7 +386,7 @@ CTextdraw CreateTextdraw_ES(const SQChar * text,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewTextdraw(SQMOD_UNKNOWN, text, xp, yp, PACK_ARGB(a, r, g, b), rel,
|
||||
header, payload);
|
||||
@@ -396,7 +396,7 @@ CTextdraw CreateTextdraw_ES(const SQChar * text,
|
||||
CTextdraw CreateTextdraw_EF(SQInt32 index, const SQChar * text,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
bool rel) noexcept
|
||||
bool rel)
|
||||
{
|
||||
return _Core->NewTextdraw(index,text, xp, yp, PACK_ARGB(a, r, g, b), rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -406,7 +406,7 @@ CTextdraw CreateTextdraw_EF(SQInt32 index, const SQChar * text,
|
||||
SQInt32 xp, SQInt32 yp,
|
||||
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
||||
bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewTextdraw(index, text, xp, yp, PACK_ARGB(a, r, g, b), rel,
|
||||
header, payload);
|
||||
@@ -414,7 +414,7 @@ CTextdraw CreateTextdraw_EF(SQInt32 index, const SQChar * text,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CTextdraw CreateTextdraw_CS(const SQChar * text,
|
||||
const Vector2i & pos, const Color4 & color, bool rel) noexcept
|
||||
const Vector2i & pos, const Color4 & color, bool rel)
|
||||
{
|
||||
return _Core->NewTextdraw(SQMOD_UNKNOWN, text, pos.x, pos.y, color.GetARGB(), rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -422,7 +422,7 @@ CTextdraw CreateTextdraw_CS(const SQChar * text,
|
||||
|
||||
CTextdraw CreateTextdraw_CS(const SQChar * text,
|
||||
const Vector2i & pos, const Color4 & color, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewTextdraw(SQMOD_UNKNOWN, text, pos.x, pos.y, color.GetARGB(), rel,
|
||||
header, payload);
|
||||
@@ -430,7 +430,7 @@ CTextdraw CreateTextdraw_CS(const SQChar * text,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CTextdraw CreateTextdraw_CF(SQInt32 index, const SQChar * text,
|
||||
const Vector2i & pos, const Color4 & color, bool rel) noexcept
|
||||
const Vector2i & pos, const Color4 & color, bool rel)
|
||||
{
|
||||
return _Core->NewTextdraw(index, text, pos.x, pos.y, color.GetARGB(), rel,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -438,7 +438,7 @@ CTextdraw CreateTextdraw_CF(SQInt32 index, const SQChar * text,
|
||||
|
||||
CTextdraw CreateTextdraw_CF(SQInt32 index, const SQChar * text,
|
||||
const Vector2i & pos, const Color4 & color, bool rel,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewTextdraw(index, text, pos.x, pos.y, color.GetARGB(), rel,
|
||||
header, payload);
|
||||
|
@@ -22,92 +22,92 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct a reference from a base reference.
|
||||
*/
|
||||
CTextdraw(const Reference< CTextdraw > & o) noexcept;
|
||||
CTextdraw(const Reference< CTextdraw > & o);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Show the referenced textdraw instance to all players on the server.
|
||||
*/
|
||||
void ShowAll() const noexcept;
|
||||
void ShowAll() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Show the referenced textdraw instance to the specified player instance.
|
||||
*/
|
||||
void ShowFor(const Reference< CPlayer > & player) const noexcept;
|
||||
void ShowFor(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Show the referenced textdraw instance to all players in the specified range.
|
||||
*/
|
||||
void ShowRange(SQInt32 first, SQInt32 last) const noexcept;
|
||||
void ShowRange(SQInt32 first, SQInt32 last) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Hide the referenced textdraw instance from all players on the server.
|
||||
*/
|
||||
void HideAll() const noexcept;
|
||||
void HideAll() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Hide the referenced textdraw instance from the specified player instance.
|
||||
*/
|
||||
void HideFor(const Reference< CPlayer > & player) const noexcept;
|
||||
void HideFor(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Hide the referenced textdraw instance from all players in the specified range.
|
||||
*/
|
||||
void HideRange(SQInt32 first, SQInt32 last) const noexcept;
|
||||
void HideRange(SQInt32 first, SQInt32 last) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the position of the referenced textdraw instance for all players on the server.
|
||||
*/
|
||||
void SetPositionAll(const Vector2i & pos) const noexcept;
|
||||
void SetPositionAll(const Vector2i & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the position of the referenced textdraw instance for all players on the server.
|
||||
*/
|
||||
void SetPositionAllEx(SQInt32 x, SQInt32 y) const noexcept;
|
||||
void SetPositionAllEx(SQInt32 x, SQInt32 y) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the position of the referenced textdraw instance for the specified player instance.
|
||||
*/
|
||||
void SetPositionFor(const Reference< CPlayer > & player, const Vector2i & pos) const noexcept;
|
||||
void SetPositionFor(const Reference< CPlayer > & player, const Vector2i & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the position of the referenced textdraw instance for the specified player instance.
|
||||
*/
|
||||
void SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const noexcept;
|
||||
void SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the position of the referenced textdraw instance for all players in the specified range.
|
||||
*/
|
||||
void SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const noexcept;
|
||||
void SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the center of the referenced textdraw instance for all players on the server.
|
||||
*/
|
||||
void SetColorAll(const Color4 & col) const noexcept;
|
||||
void SetColorAll(const Color4 & col) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the color of the referenced textdraw instance for all players on the server.
|
||||
*/
|
||||
void SetColorAllEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept;
|
||||
void SetColorAllEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the color of the referenced textdraw instance for the specified player instance.
|
||||
*/
|
||||
void SetColorFor(const Reference< CPlayer > & player, const Color4 & col) const noexcept;
|
||||
void SetColorFor(const Reference< CPlayer > & player, const Color4 & col) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the color of the referenced textdraw instance for the specified player instance.
|
||||
*/
|
||||
void SetColorForEx(const Reference< CPlayer > & player, Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept;
|
||||
void SetColorForEx(const Reference< CPlayer > & player, Uint8 r, Uint8 g, Uint8 b, Uint8 a) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set the color of the referenced textdraw instance for all players in the specified range.
|
||||
*/
|
||||
void SetColorRange(SQInt32 first, SQInt32 last, const Color4 & col) const noexcept;
|
||||
void SetColorRange(SQInt32 first, SQInt32 last, const Color4 & col) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the text string used by the referenced textdraw instance.
|
||||
*/
|
||||
const SQChar * GetText() const noexcept;
|
||||
const SQChar * GetText() const;
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
@@ -17,14 +17,14 @@ Vector4 CVehicle::s_Vector4;
|
||||
Quaternion CVehicle::s_Quaternion;
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CVehicle::CVehicle(const Reference< CVehicle > & o) noexcept
|
||||
CVehicle::CVehicle(const Reference< CVehicle > & o)
|
||||
: Reference(o)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CVehicle::IsStreamedFor(const Reference< CPlayer > & player) const noexcept
|
||||
bool CVehicle::IsStreamedFor(const Reference< CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -43,7 +43,7 @@ bool CVehicle::IsStreamedFor(const Reference< CPlayer > & player) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetSyncSource() const noexcept
|
||||
SQInt32 CVehicle::GetSyncSource() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -58,7 +58,7 @@ SQInt32 CVehicle::GetSyncSource() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetSyncType() const noexcept
|
||||
SQInt32 CVehicle::GetSyncType() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -73,7 +73,7 @@ SQInt32 CVehicle::GetSyncType() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetWorld() const noexcept
|
||||
SQInt32 CVehicle::GetWorld() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -88,7 +88,7 @@ SQInt32 CVehicle::GetWorld() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetWorld(SQInt32 world) const noexcept
|
||||
void CVehicle::SetWorld(SQInt32 world) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -101,7 +101,7 @@ void CVehicle::SetWorld(SQInt32 world) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const CAutomobile & CVehicle::GetModel() const noexcept
|
||||
const CAutomobile & CVehicle::GetModel() const
|
||||
{
|
||||
// Clear any previous model
|
||||
s_Automobile.SetID(SQMOD_UNKNOWN);
|
||||
@@ -119,7 +119,7 @@ const CAutomobile & CVehicle::GetModel() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetModelID() const noexcept
|
||||
SQInt32 CVehicle::GetModelID() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -134,7 +134,7 @@ SQInt32 CVehicle::GetModelID() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CPlayer > CVehicle::GetOccupant(SQInt32 slot) const noexcept
|
||||
Reference< CPlayer > CVehicle::GetOccupant(SQInt32 slot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -149,7 +149,7 @@ Reference< CPlayer > CVehicle::GetOccupant(SQInt32 slot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetOccupantID(SQInt32 slot) const noexcept
|
||||
SQInt32 CVehicle::GetOccupantID(SQInt32 slot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -164,7 +164,7 @@ SQInt32 CVehicle::GetOccupantID(SQInt32 slot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::Respawn() const noexcept
|
||||
void CVehicle::Respawn() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -177,7 +177,7 @@ void CVehicle::Respawn() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetImmunity() const noexcept
|
||||
SQInt32 CVehicle::GetImmunity() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -192,7 +192,7 @@ SQInt32 CVehicle::GetImmunity() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetImmunity(SQInt32 flags) const noexcept
|
||||
void CVehicle::SetImmunity(SQInt32 flags) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -205,7 +205,7 @@ void CVehicle::SetImmunity(SQInt32 flags) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CVehicle::IsWrecked() const noexcept
|
||||
bool CVehicle::IsWrecked() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -220,7 +220,7 @@ bool CVehicle::IsWrecked() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CVehicle::GetPosition() const noexcept
|
||||
const Vector3 & CVehicle::GetPosition() const
|
||||
{
|
||||
// Clear any previous position
|
||||
s_Vector3.Clear();
|
||||
@@ -238,7 +238,7 @@ const Vector3 & CVehicle::GetPosition() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetPosition(const Vector3 & pos) const noexcept
|
||||
void CVehicle::SetPosition(const Vector3 & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -251,7 +251,7 @@ void CVehicle::SetPosition(const Vector3 & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetPositionEx(const Vector3 & pos, bool empty) const noexcept
|
||||
void CVehicle::SetPositionEx(const Vector3 & pos, bool empty) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -264,7 +264,7 @@ void CVehicle::SetPositionEx(const Vector3 & pos, bool empty) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -277,7 +277,7 @@ void CVehicle::SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetPositionEx(SQFloat x, SQFloat y, SQFloat z, bool empty) const noexcept
|
||||
void CVehicle::SetPositionEx(SQFloat x, SQFloat y, SQFloat z, bool empty) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -290,7 +290,7 @@ void CVehicle::SetPositionEx(SQFloat x, SQFloat y, SQFloat z, bool empty) const
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Quaternion & CVehicle::GetRotation() const noexcept
|
||||
const Quaternion & CVehicle::GetRotation() const
|
||||
{
|
||||
// Clear any previous rotation
|
||||
s_Quaternion.Clear();
|
||||
@@ -308,7 +308,7 @@ const Quaternion & CVehicle::GetRotation() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRotation(const Quaternion & rot) const noexcept
|
||||
void CVehicle::SetRotation(const Quaternion & rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -321,7 +321,7 @@ void CVehicle::SetRotation(const Quaternion & rot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRotationEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexcept
|
||||
void CVehicle::SetRotationEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -334,7 +334,7 @@ void CVehicle::SetRotationEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const n
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CVehicle::GetRotationEuler() const noexcept
|
||||
const Vector3 & CVehicle::GetRotationEuler() const
|
||||
{
|
||||
// Clear any previous rotation
|
||||
s_Vector3.Clear();
|
||||
@@ -352,7 +352,7 @@ const Vector3 & CVehicle::GetRotationEuler() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRotationEuler(const Vector3 & rot) const noexcept
|
||||
void CVehicle::SetRotationEuler(const Vector3 & rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -365,7 +365,7 @@ void CVehicle::SetRotationEuler(const Vector3 & rot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRotationEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::SetRotationEulerEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -378,7 +378,7 @@ void CVehicle::SetRotationEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcep
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CVehicle::GetSpeed() const noexcept
|
||||
const Vector3 & CVehicle::GetSpeed() const
|
||||
{
|
||||
// Clear any previous speed
|
||||
s_Vector3.Clear();
|
||||
@@ -396,7 +396,7 @@ const Vector3 & CVehicle::GetSpeed() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetSpeed(const Vector3 & vel) const noexcept
|
||||
void CVehicle::SetSpeed(const Vector3 & vel) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -409,7 +409,7 @@ void CVehicle::SetSpeed(const Vector3 & vel) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::SetSpeedEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -422,7 +422,7 @@ void CVehicle::SetSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::AddSpeed(const Vector3 & vel) const noexcept
|
||||
void CVehicle::AddSpeed(const Vector3 & vel) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -435,7 +435,7 @@ void CVehicle::AddSpeed(const Vector3 & vel) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::AddSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::AddSpeedEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -448,7 +448,7 @@ void CVehicle::AddSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CVehicle::GetRelSpeed() const noexcept
|
||||
const Vector3 & CVehicle::GetRelSpeed() const
|
||||
{
|
||||
// Clear any previous speed
|
||||
s_Vector3.Clear();
|
||||
@@ -466,7 +466,7 @@ const Vector3 & CVehicle::GetRelSpeed() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRelSpeed(const Vector3 & vel) const noexcept
|
||||
void CVehicle::SetRelSpeed(const Vector3 & vel) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -479,7 +479,7 @@ void CVehicle::SetRelSpeed(const Vector3 & vel) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRelSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::SetRelSpeedEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -492,7 +492,7 @@ void CVehicle::SetRelSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::AddRelSpeed(const Vector3 & vel) const noexcept
|
||||
void CVehicle::AddRelSpeed(const Vector3 & vel) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -505,7 +505,7 @@ void CVehicle::AddRelSpeed(const Vector3 & vel) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::AddRelSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::AddRelSpeedEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -518,7 +518,7 @@ void CVehicle::AddRelSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CVehicle::GetTurnSpeed() const noexcept
|
||||
const Vector3 & CVehicle::GetTurnSpeed() const
|
||||
{
|
||||
// Clear any previous speed
|
||||
s_Vector3.Clear();
|
||||
@@ -536,7 +536,7 @@ const Vector3 & CVehicle::GetTurnSpeed() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetTurnSpeed(const Vector3 & vel) const noexcept
|
||||
void CVehicle::SetTurnSpeed(const Vector3 & vel) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -549,7 +549,7 @@ void CVehicle::SetTurnSpeed(const Vector3 & vel) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::SetTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -562,7 +562,7 @@ void CVehicle::SetTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::AddTurnSpeed(const Vector3 & vel) const noexcept
|
||||
void CVehicle::AddTurnSpeed(const Vector3 & vel) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -575,7 +575,7 @@ void CVehicle::AddTurnSpeed(const Vector3 & vel) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::AddTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::AddTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -588,7 +588,7 @@ void CVehicle::AddTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CVehicle::GetRelTurnSpeed() const noexcept
|
||||
const Vector3 & CVehicle::GetRelTurnSpeed() const
|
||||
{
|
||||
// Clear any previous speed
|
||||
s_Vector3.Clear();
|
||||
@@ -606,7 +606,7 @@ const Vector3 & CVehicle::GetRelTurnSpeed() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRelTurnSpeed(const Vector3 & vel) const noexcept
|
||||
void CVehicle::SetRelTurnSpeed(const Vector3 & vel) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -619,7 +619,7 @@ void CVehicle::SetRelTurnSpeed(const Vector3 & vel) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRelTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::SetRelTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -632,7 +632,7 @@ void CVehicle::SetRelTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::AddRelTurnSpeed(const Vector3 & vel) const noexcept
|
||||
void CVehicle::AddRelTurnSpeed(const Vector3 & vel) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -645,7 +645,7 @@ void CVehicle::AddRelTurnSpeed(const Vector3 & vel) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::AddRelTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::AddRelTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -658,7 +658,7 @@ void CVehicle::AddRelTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector4 & CVehicle::GetSpawnPosition() const noexcept
|
||||
const Vector4 & CVehicle::GetSpawnPosition() const
|
||||
{
|
||||
// Clear any previous position
|
||||
s_Vector4.Clear();
|
||||
@@ -676,7 +676,7 @@ const Vector4 & CVehicle::GetSpawnPosition() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetSpawnPosition(const Vector4 & pos) const noexcept
|
||||
void CVehicle::SetSpawnPosition(const Vector4 & pos) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -689,7 +689,7 @@ void CVehicle::SetSpawnPosition(const Vector4 & pos) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetSpawnPositionEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexcept
|
||||
void CVehicle::SetSpawnPositionEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -702,7 +702,7 @@ void CVehicle::SetSpawnPositionEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) co
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Quaternion & CVehicle::GetSpawnRotation() const noexcept
|
||||
const Quaternion & CVehicle::GetSpawnRotation() const
|
||||
{
|
||||
// Clear any previous rotation
|
||||
s_Quaternion.Clear();
|
||||
@@ -720,7 +720,7 @@ const Quaternion & CVehicle::GetSpawnRotation() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetSpawnRotation(const Quaternion & rot) const noexcept
|
||||
void CVehicle::SetSpawnRotation(const Quaternion & rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -733,7 +733,7 @@ void CVehicle::SetSpawnRotation(const Quaternion & rot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetSpawnRotationEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexcept
|
||||
void CVehicle::SetSpawnRotationEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -746,7 +746,7 @@ void CVehicle::SetSpawnRotationEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) co
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector3 & CVehicle::GetSpawnRotationEuler() const noexcept
|
||||
const Vector3 & CVehicle::GetSpawnRotationEuler() const
|
||||
{
|
||||
// Clear any previous rotation
|
||||
s_Vector3.Clear();
|
||||
@@ -764,7 +764,7 @@ const Vector3 & CVehicle::GetSpawnRotationEuler() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetSpawnRotationEuler(const Vector3 & rot) const noexcept
|
||||
void CVehicle::SetSpawnRotationEuler(const Vector3 & rot) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -777,7 +777,7 @@ void CVehicle::SetSpawnRotationEuler(const Vector3 & rot) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetSpawnRotationEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcept
|
||||
void CVehicle::SetSpawnRotationEulerEx(SQFloat x, SQFloat y, SQFloat z) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -790,7 +790,7 @@ void CVehicle::SetSpawnRotationEulerEx(SQFloat x, SQFloat y, SQFloat z) const no
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQUint32 CVehicle::GetRespawnTimer() const noexcept
|
||||
SQUint32 CVehicle::GetRespawnTimer() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -805,7 +805,7 @@ SQUint32 CVehicle::GetRespawnTimer() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRespawnTimer(SQUint32 timer) const noexcept
|
||||
void CVehicle::SetRespawnTimer(SQUint32 timer) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -818,7 +818,7 @@ void CVehicle::SetRespawnTimer(SQUint32 timer) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CVehicle::GetHealth() const noexcept
|
||||
SQFloat CVehicle::GetHealth() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -833,7 +833,7 @@ SQFloat CVehicle::GetHealth() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetHealth(SQFloat amount) const noexcept
|
||||
void CVehicle::SetHealth(SQFloat amount) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -846,7 +846,7 @@ void CVehicle::SetHealth(SQFloat amount) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetPrimaryColor() const noexcept
|
||||
SQInt32 CVehicle::GetPrimaryColor() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -863,7 +863,7 @@ SQInt32 CVehicle::GetPrimaryColor() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetPrimaryColor(SQInt32 col) const noexcept
|
||||
void CVehicle::SetPrimaryColor(SQInt32 col) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && VALID_VEHCOL(col))
|
||||
{
|
||||
@@ -882,7 +882,7 @@ void CVehicle::SetPrimaryColor(SQInt32 col) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetSecondaryColor() const noexcept
|
||||
SQInt32 CVehicle::GetSecondaryColor() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -899,7 +899,7 @@ SQInt32 CVehicle::GetSecondaryColor() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetSecondaryColor(SQInt32 col) const noexcept
|
||||
void CVehicle::SetSecondaryColor(SQInt32 col) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && VALID_VEHCOL(col))
|
||||
{
|
||||
@@ -918,7 +918,7 @@ void CVehicle::SetSecondaryColor(SQInt32 col) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetColors(SQInt32 primary, SQInt32 secondary) const noexcept
|
||||
void CVehicle::SetColors(SQInt32 primary, SQInt32 secondary) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && VALID_VEHCOL(primary) && VALID_VEHCOL(secondary))
|
||||
{
|
||||
@@ -935,7 +935,7 @@ void CVehicle::SetColors(SQInt32 primary, SQInt32 secondary) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CVehicle::IsLocked() const noexcept
|
||||
bool CVehicle::IsLocked() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -950,7 +950,7 @@ bool CVehicle::IsLocked() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetLocked(bool toggle) const noexcept
|
||||
void CVehicle::SetLocked(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -963,7 +963,7 @@ void CVehicle::SetLocked(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetPartStatus(SQInt32 part) const noexcept
|
||||
SQInt32 CVehicle::GetPartStatus(SQInt32 part) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -978,7 +978,7 @@ SQInt32 CVehicle::GetPartStatus(SQInt32 part) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetPartStatus(SQInt32 part, SQInt32 status) const noexcept
|
||||
void CVehicle::SetPartStatus(SQInt32 part, SQInt32 status) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -991,7 +991,7 @@ void CVehicle::SetPartStatus(SQInt32 part, SQInt32 status) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetTyreStatus(SQInt32 tyre) const noexcept
|
||||
SQInt32 CVehicle::GetTyreStatus(SQInt32 tyre) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1006,7 +1006,7 @@ SQInt32 CVehicle::GetTyreStatus(SQInt32 tyre) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetTyreStatus(SQInt32 tyre, SQInt32 status) const noexcept
|
||||
void CVehicle::SetTyreStatus(SQInt32 tyre, SQInt32 status) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1019,7 +1019,7 @@ void CVehicle::SetTyreStatus(SQInt32 tyre, SQInt32 status) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQUint32 CVehicle::GetDamageData() const noexcept
|
||||
SQUint32 CVehicle::GetDamageData() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1034,7 +1034,7 @@ SQUint32 CVehicle::GetDamageData() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetDamageData(SQUint32 data) const noexcept
|
||||
void CVehicle::SetDamageData(SQUint32 data) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1047,7 +1047,7 @@ void CVehicle::SetDamageData(SQUint32 data) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CVehicle::HasAlarm() const noexcept
|
||||
bool CVehicle::HasAlarm() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1062,7 +1062,7 @@ bool CVehicle::HasAlarm() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetAlarm(bool toggle) const noexcept
|
||||
void CVehicle::SetAlarm(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1075,7 +1075,7 @@ void CVehicle::SetAlarm(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CVehicle::HasLights() const noexcept
|
||||
bool CVehicle::HasLights() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1090,7 +1090,7 @@ bool CVehicle::HasLights() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetLights(bool toggle) const noexcept
|
||||
void CVehicle::SetLights(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1103,7 +1103,7 @@ void CVehicle::SetLights(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInt32 CVehicle::GetRadio() const noexcept
|
||||
SQInt32 CVehicle::GetRadio() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1118,7 +1118,7 @@ SQInt32 CVehicle::GetRadio() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRadio(SQInt32 radio) const noexcept
|
||||
void CVehicle::SetRadio(SQInt32 radio) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && VALID_ENTITY(radio))
|
||||
{
|
||||
@@ -1135,7 +1135,7 @@ void CVehicle::SetRadio(SQInt32 radio) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CVehicle::IsRadioLocked() const noexcept
|
||||
bool CVehicle::IsRadioLocked() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1150,7 +1150,7 @@ bool CVehicle::IsRadioLocked() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetRadioLocked(bool toggle) const noexcept
|
||||
void CVehicle::SetRadioLocked(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1163,7 +1163,7 @@ void CVehicle::SetRadioLocked(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CVehicle::IsGhostState() const noexcept
|
||||
bool CVehicle::IsGhostState() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1178,7 +1178,7 @@ bool CVehicle::IsGhostState() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetGhostState(bool toggle) const noexcept
|
||||
void CVehicle::SetGhostState(bool toggle) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1191,7 +1191,7 @@ void CVehicle::SetGhostState(bool toggle) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::ResetHandling() const noexcept
|
||||
void CVehicle::ResetHandling() const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1204,7 +1204,7 @@ void CVehicle::ResetHandling() const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::ResetHandling(SQInt32 rule) const noexcept
|
||||
void CVehicle::ResetHandling(SQInt32 rule) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1217,7 +1217,7 @@ void CVehicle::ResetHandling(SQInt32 rule) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CVehicle::ExistsHandling(SQInt32 rule) const noexcept
|
||||
bool CVehicle::ExistsHandling(SQInt32 rule) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1232,7 +1232,7 @@ bool CVehicle::ExistsHandling(SQInt32 rule) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQFloat CVehicle::GetHandlingData(SQInt32 rule) const noexcept
|
||||
SQFloat CVehicle::GetHandlingData(SQInt32 rule) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1247,7 +1247,7 @@ SQFloat CVehicle::GetHandlingData(SQInt32 rule) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::SetHandlingData(SQInt32 rule, SQFloat data) const noexcept
|
||||
void CVehicle::SetHandlingData(SQInt32 rule, SQFloat data) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID))
|
||||
{
|
||||
@@ -1260,7 +1260,7 @@ void CVehicle::SetHandlingData(SQInt32 rule, SQFloat data) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::Embark(const Reference< CPlayer > & player) const noexcept
|
||||
void CVehicle::Embark(const Reference< CPlayer > & player) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -1277,7 +1277,7 @@ void CVehicle::Embark(const Reference< CPlayer > & player) const noexcept
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CVehicle::Embark(const Reference< CPlayer > & player, SQInt32 slot, bool allocate, bool warp) const noexcept
|
||||
void CVehicle::Embark(const Reference< CPlayer > & player, SQInt32 slot, bool allocate, bool warp) const
|
||||
{
|
||||
if (VALID_ENTITY(m_ID) && player)
|
||||
{
|
||||
@@ -1296,7 +1296,7 @@ void CVehicle::Embark(const Reference< CPlayer > & player, SQInt32 slot, bool al
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CVehicle > CreateBaseVehicle_PEF(SQInt32 model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary) noexcept
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, x, y, z, angle, primary, secondary,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -1305,7 +1305,7 @@ Reference< CVehicle > CreateBaseVehicle_PEF(SQInt32 model, SQInt32 world,
|
||||
Reference< CVehicle > CreateBaseVehicle_PEF(SQInt32 model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, x, y, z, angle, primary, secondary,
|
||||
header, payload);
|
||||
@@ -1313,7 +1313,7 @@ Reference< CVehicle > CreateBaseVehicle_PEF(SQInt32 model, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CVehicle > CreateBaseVehicle_PCF(SQInt32 model, SQInt32 world, const Vector3 & pos,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary) noexcept
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, pos.x, pos.y, pos.z, angle, primary, secondary,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -1321,7 +1321,7 @@ Reference< CVehicle > CreateBaseVehicle_PCF(SQInt32 model, SQInt32 world, const
|
||||
|
||||
Reference< CVehicle > CreateBaseVehicle_PCF(SQInt32 model, SQInt32 world, const Vector3 & pos,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, pos.x, pos.y, pos.z, angle, primary, secondary,
|
||||
header, payload);
|
||||
@@ -1330,7 +1330,7 @@ Reference< CVehicle > CreateBaseVehicle_PCF(SQInt32 model, SQInt32 world, const
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CVehicle > CreateBaseVehicle_EF(const CAutomobile & model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary) noexcept
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, x, y, z, angle, primary, secondary,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -1339,7 +1339,7 @@ Reference< CVehicle > CreateBaseVehicle_EF(const CAutomobile & model, SQInt32 wo
|
||||
Reference< CVehicle > CreateBaseVehicle_EF(const CAutomobile & model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, x, y, z, angle, primary, secondary,
|
||||
header, payload);
|
||||
@@ -1348,7 +1348,7 @@ Reference< CVehicle > CreateBaseVehicle_EF(const CAutomobile & model, SQInt32 wo
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Reference< CVehicle > CreateBaseVehicle_CF(const CAutomobile & model, SQInt32 world,
|
||||
const Vector3 & pos, SQFloat angle,
|
||||
SQInt32 primary, SQInt32 secondary) noexcept
|
||||
SQInt32 primary, SQInt32 secondary)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, pos.x, pos.y, pos.z, angle, primary, secondary,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -1356,7 +1356,7 @@ Reference< CVehicle > CreateBaseVehicle_CF(const CAutomobile & model, SQInt32 wo
|
||||
|
||||
Reference< CVehicle > CreateBaseVehicle_CF(const CAutomobile & model, SQInt32 world,
|
||||
const Vector3 & pos, SQFloat angle, SQInt32 primary, SQInt32 secondary,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, pos.x, pos.y, pos.z, angle, primary, secondary,
|
||||
header, payload);
|
||||
@@ -1365,7 +1365,7 @@ Reference< CVehicle > CreateBaseVehicle_CF(const CAutomobile & model, SQInt32 wo
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CVehicle CreateVehicle_PEF(SQInt32 model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary) noexcept
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, x, y, z, angle, primary, secondary,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -1374,7 +1374,7 @@ CVehicle CreateVehicle_PEF(SQInt32 model, SQInt32 world,
|
||||
CVehicle CreateVehicle_PEF(SQInt32 model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, x, y, z, angle, primary, secondary,
|
||||
header, payload);
|
||||
@@ -1382,7 +1382,7 @@ CVehicle CreateVehicle_PEF(SQInt32 model, SQInt32 world,
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CVehicle CreateVehicle_PCF(SQInt32 model, SQInt32 world, const Vector3 & pos,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary) noexcept
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, pos.x, pos.y, pos.z, angle, primary, secondary,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -1390,7 +1390,7 @@ CVehicle CreateVehicle_PCF(SQInt32 model, SQInt32 world, const Vector3 & pos,
|
||||
|
||||
CVehicle CreateVehicle_PCF(SQInt32 model, SQInt32 world, const Vector3 & pos,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, pos.x, pos.y, pos.z, angle, primary, secondary,
|
||||
header, payload);
|
||||
@@ -1399,7 +1399,7 @@ CVehicle CreateVehicle_PCF(SQInt32 model, SQInt32 world, const Vector3 & pos,
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CVehicle CreateVehicle_EF(const CAutomobile & model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary) noexcept
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, x, y, z, angle, primary, secondary,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -1408,7 +1408,7 @@ CVehicle CreateVehicle_EF(const CAutomobile & model, SQInt32 world,
|
||||
CVehicle CreateVehicle_EF(const CAutomobile & model, SQInt32 world,
|
||||
SQFloat x, SQFloat y, SQFloat z,
|
||||
SQFloat angle, SQInt32 primary, SQInt32 secondary,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, x, y, z, angle, primary, secondary,
|
||||
header, payload);
|
||||
@@ -1417,7 +1417,7 @@ CVehicle CreateVehicle_EF(const CAutomobile & model, SQInt32 world,
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CVehicle CreateVehicle_CF(const CAutomobile & model, SQInt32 world,
|
||||
const Vector3 & pos, SQFloat angle,
|
||||
SQInt32 primary, SQInt32 secondary) noexcept
|
||||
SQInt32 primary, SQInt32 secondary)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, pos.x, pos.y, pos.z, angle, primary, secondary,
|
||||
SQMOD_CREATE_DEFAULT, NullData());
|
||||
@@ -1425,7 +1425,7 @@ CVehicle CreateVehicle_CF(const CAutomobile & model, SQInt32 world,
|
||||
|
||||
CVehicle CreateVehicle_CF(const CAutomobile & model, SQInt32 world,
|
||||
const Vector3 & pos, SQFloat angle, SQInt32 primary, SQInt32 secondary,
|
||||
SQInt32 header, SqObj & payload) noexcept
|
||||
SQInt32 header, SqObj & payload)
|
||||
{
|
||||
return _Core->NewVehicle(model, world, pos.x, pos.y, pos.z, angle, primary, secondary,
|
||||
header, payload);
|
||||
|
@@ -30,442 +30,442 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Construct a reference from a base reference.
|
||||
*/
|
||||
CVehicle(const Reference< CVehicle > & o) noexcept;
|
||||
CVehicle(const Reference< CVehicle > & o);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See if the referenced vehicle instance is streamed for the specified player.
|
||||
*/
|
||||
bool IsStreamedFor(const Reference< CPlayer > & player) const noexcept;
|
||||
bool IsStreamedFor(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the synchronization source of the referenced vehicle instance.
|
||||
*/
|
||||
SQInt32 GetSyncSource() const noexcept;
|
||||
SQInt32 GetSyncSource() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the synchronization type of the referenced vehicle instance.
|
||||
*/
|
||||
SQInt32 GetSyncType() const noexcept;
|
||||
SQInt32 GetSyncType() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the world in which the referenced vehicle instance exists.
|
||||
*/
|
||||
SQInt32 GetWorld() const noexcept;
|
||||
SQInt32 GetWorld() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the world in which the referenced vehicle instance exists.
|
||||
*/
|
||||
void SetWorld(SQInt32 world) const noexcept;
|
||||
void SetWorld(SQInt32 world) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the vehicle model of the referenced vehicle instance.
|
||||
*/
|
||||
const CAutomobile & GetModel() const noexcept;
|
||||
const CAutomobile & GetModel() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the vehicle model id of the referenced vehicle instance.
|
||||
*/
|
||||
SQInt32 GetModelID() const noexcept;
|
||||
SQInt32 GetModelID() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the slot occupant from the referenced vehicle instance.
|
||||
*/
|
||||
Reference< CPlayer > GetOccupant(SQInt32 slot) const noexcept;
|
||||
Reference< CPlayer > GetOccupant(SQInt32 slot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the slot occupant identifier from the referenced vehicle instance.
|
||||
*/
|
||||
SQInt32 GetOccupantID(SQInt32 slot) const noexcept;
|
||||
SQInt32 GetOccupantID(SQInt32 slot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Respawn the referenced vehicle instance.
|
||||
*/
|
||||
void Respawn() const noexcept;
|
||||
void Respawn() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the immunity flags of the referenced vehicle instance.
|
||||
*/
|
||||
SQInt32 GetImmunity() const noexcept;
|
||||
SQInt32 GetImmunity() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the immunity flags of the referenced vehicle instance.
|
||||
*/
|
||||
void SetImmunity(SQInt32 flags) const noexcept;
|
||||
void SetImmunity(SQInt32 flags) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced vehicle instance is wrecked.
|
||||
*/
|
||||
bool IsWrecked() const noexcept;
|
||||
bool IsWrecked() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the position of the referenced vehicle instance.
|
||||
*/
|
||||
const Vector3 & GetPosition() const noexcept;
|
||||
const Vector3 & GetPosition() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced vehicle instance.
|
||||
*/
|
||||
void SetPosition(const Vector3 & pos) const noexcept;
|
||||
void SetPosition(const Vector3 & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced vehicle instance.
|
||||
*/
|
||||
void SetPositionEx(const Vector3 & pos, bool empty) const noexcept;
|
||||
void SetPositionEx(const Vector3 & pos, bool empty) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced vehicle instance.
|
||||
*/
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the position of the referenced vehicle instance.
|
||||
*/
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z, bool empty) const noexcept;
|
||||
void SetPositionEx(SQFloat x, SQFloat y, SQFloat z, bool empty) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the rotation of the referenced vehicle instance.
|
||||
*/
|
||||
const Quaternion & GetRotation() const noexcept;
|
||||
const Quaternion & GetRotation() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the rotation of the referenced vehicle instance.
|
||||
*/
|
||||
void SetRotation(const Quaternion & rot) const noexcept;
|
||||
void SetRotation(const Quaternion & rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the rotation of the referenced vehicle instance.
|
||||
*/
|
||||
void SetRotationEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexcept;
|
||||
void SetRotationEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the euler rotation of the referenced vehicle instance.
|
||||
*/
|
||||
const Vector3 & GetRotationEuler() const noexcept;
|
||||
const Vector3 & GetRotationEuler() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the euler rotation of the referenced vehicle instance.
|
||||
*/
|
||||
void SetRotationEuler(const Vector3 & rot) const noexcept;
|
||||
void SetRotationEuler(const Vector3 & rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the euler rotation of the referenced vehicle instance.
|
||||
*/
|
||||
void SetRotationEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetRotationEulerEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the speed of the referenced vehicle instance.
|
||||
*/
|
||||
const Vector3 & GetSpeed() const noexcept;
|
||||
const Vector3 & GetSpeed() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the speed of the referenced vehicle instance.
|
||||
*/
|
||||
void SetSpeed(const Vector3 & vel) const noexcept;
|
||||
void SetSpeed(const Vector3 & vel) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the speed of the referenced vehicle instance.
|
||||
*/
|
||||
void SetSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetSpeedEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the speed of the referenced vehicle instance.
|
||||
*/
|
||||
void AddSpeed(const Vector3 & vel) const noexcept;
|
||||
void AddSpeed(const Vector3 & vel) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the speed of the referenced vehicle instance.
|
||||
*/
|
||||
void AddSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void AddSpeedEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the relative speed of the referenced vehicle instance.
|
||||
*/
|
||||
const Vector3 & GetRelSpeed() const noexcept;
|
||||
const Vector3 & GetRelSpeed() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the relative speed of the referenced vehicle instance.
|
||||
*/
|
||||
void SetRelSpeed(const Vector3 & vel) const noexcept;
|
||||
void SetRelSpeed(const Vector3 & vel) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the relative speed of the referenced vehicle instance.
|
||||
*/
|
||||
void SetRelSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetRelSpeedEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the relative speed of the referenced vehicle instance.
|
||||
*/
|
||||
void AddRelSpeed(const Vector3 & vel) const noexcept;
|
||||
void AddRelSpeed(const Vector3 & vel) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the relative speed of the referenced vehicle instance.
|
||||
*/
|
||||
void AddRelSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void AddRelSpeedEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the turn speed of the referenced vehicle instance.
|
||||
*/
|
||||
const Vector3 & GetTurnSpeed() const noexcept;
|
||||
const Vector3 & GetTurnSpeed() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the turn speed of the referenced vehicle instance.
|
||||
*/
|
||||
void SetTurnSpeed(const Vector3 & vel) const noexcept;
|
||||
void SetTurnSpeed(const Vector3 & vel) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the turn speed of the referenced vehicle instance.
|
||||
*/
|
||||
void SetTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the turn speed of the referenced vehicle instance.
|
||||
*/
|
||||
void AddTurnSpeed(const Vector3 & vel) const noexcept;
|
||||
void AddTurnSpeed(const Vector3 & vel) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the turn speed of the referenced vehicle instance.
|
||||
*/
|
||||
void AddTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void AddTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the relative turn speed of the referenced vehicle instance.
|
||||
*/
|
||||
const Vector3 & GetRelTurnSpeed() const noexcept;
|
||||
const Vector3 & GetRelTurnSpeed() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the relative turn speed of the referenced vehicle instance.
|
||||
*/
|
||||
void SetRelTurnSpeed(const Vector3 & vel) const noexcept;
|
||||
void SetRelTurnSpeed(const Vector3 & vel) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the relative turn speed of the referenced vehicle instance.
|
||||
*/
|
||||
void SetRelTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetRelTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the relative turn speed of the referenced vehicle instance.
|
||||
*/
|
||||
void AddRelTurnSpeed(const Vector3 & vel) const noexcept;
|
||||
void AddRelTurnSpeed(const Vector3 & vel) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the relative turn speed of the referenced vehicle instance.
|
||||
*/
|
||||
void AddRelTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void AddRelTurnSpeedEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the spawn position of the referenced vehicle instance.
|
||||
*/
|
||||
const Vector4 & GetSpawnPosition() const noexcept;
|
||||
const Vector4 & GetSpawnPosition() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the spawn position of the referenced vehicle instance.
|
||||
*/
|
||||
void SetSpawnPosition(const Vector4 & pos) const noexcept;
|
||||
void SetSpawnPosition(const Vector4 & pos) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the spawn position of the referenced vehicle instance.
|
||||
*/
|
||||
void SetSpawnPositionEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexcept;
|
||||
void SetSpawnPositionEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the spawn rotation of the referenced vehicle instance.
|
||||
*/
|
||||
const Quaternion & GetSpawnRotation() const noexcept;
|
||||
const Quaternion & GetSpawnRotation() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the spawn rotation of the referenced vehicle instance.
|
||||
*/
|
||||
void SetSpawnRotation(const Quaternion & rot) const noexcept;
|
||||
void SetSpawnRotation(const Quaternion & rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the spawn rotation of the referenced vehicle instance.
|
||||
*/
|
||||
void SetSpawnRotationEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const noexcept;
|
||||
void SetSpawnRotationEx(SQFloat x, SQFloat y, SQFloat z, SQFloat w) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the euler spawn rotation of the referenced vehicle instance.
|
||||
*/
|
||||
const Vector3 & GetSpawnRotationEuler() const noexcept;
|
||||
const Vector3 & GetSpawnRotationEuler() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the euler spawn rotation of the referenced vehicle instance.
|
||||
*/
|
||||
void SetSpawnRotationEuler(const Vector3 & rot) const noexcept;
|
||||
void SetSpawnRotationEuler(const Vector3 & rot) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the euler spawn rotation of the referenced vehicle instance.
|
||||
*/
|
||||
void SetSpawnRotationEulerEx(SQFloat x, SQFloat y, SQFloat z) const noexcept;
|
||||
void SetSpawnRotationEulerEx(SQFloat x, SQFloat y, SQFloat z) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the respawn timer of the referenced vehicle instance.
|
||||
*/
|
||||
SQUint32 GetRespawnTimer() const noexcept;
|
||||
SQUint32 GetRespawnTimer() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the respawn timer of the referenced vehicle instance.
|
||||
*/
|
||||
void SetRespawnTimer(SQUint32 timer) const noexcept;
|
||||
void SetRespawnTimer(SQUint32 timer) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the health of the referenced vehicle instance.
|
||||
*/
|
||||
SQFloat GetHealth() const noexcept;
|
||||
SQFloat GetHealth() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the health of the referenced vehicle instance.
|
||||
*/
|
||||
void SetHealth(SQFloat amount) const noexcept;
|
||||
void SetHealth(SQFloat amount) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the primary color of the referenced vehicle instance.
|
||||
*/
|
||||
SQInt32 GetPrimaryColor() const noexcept;
|
||||
SQInt32 GetPrimaryColor() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the primary color of the referenced vehicle instance.
|
||||
*/
|
||||
void SetPrimaryColor(SQInt32 col) const noexcept;
|
||||
void SetPrimaryColor(SQInt32 col) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the secondary color of the referenced vehicle instance.
|
||||
*/
|
||||
SQInt32 GetSecondaryColor() const noexcept;
|
||||
SQInt32 GetSecondaryColor() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the secondary color of the referenced vehicle instance.
|
||||
*/
|
||||
void SetSecondaryColor(SQInt32 col) const noexcept;
|
||||
void SetSecondaryColor(SQInt32 col) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the primary and secondary colors of the referenced vehicle instance.
|
||||
*/
|
||||
void SetColors(SQInt32 primary, SQInt32 secondary) const noexcept;
|
||||
void SetColors(SQInt32 primary, SQInt32 secondary) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced vehicle instance is locked.
|
||||
*/
|
||||
bool IsLocked() const noexcept;
|
||||
bool IsLocked() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced vehicle instance is locked.
|
||||
*/
|
||||
void SetLocked(bool toggle) const noexcept;
|
||||
void SetLocked(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the part status of the referenced vehicle instance.
|
||||
*/
|
||||
SQInt32 GetPartStatus(SQInt32 part) const noexcept;
|
||||
SQInt32 GetPartStatus(SQInt32 part) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the part status of the referenced vehicle instance.
|
||||
*/
|
||||
void SetPartStatus(SQInt32 part, SQInt32 status) const noexcept;
|
||||
void SetPartStatus(SQInt32 part, SQInt32 status) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the tyre status of the referenced vehicle instance.
|
||||
*/
|
||||
SQInt32 GetTyreStatus(SQInt32 tyre) const noexcept;
|
||||
SQInt32 GetTyreStatus(SQInt32 tyre) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the tyre status of the referenced vehicle instance.
|
||||
*/
|
||||
void SetTyreStatus(SQInt32 tyre, SQInt32 status) const noexcept;
|
||||
void SetTyreStatus(SQInt32 tyre, SQInt32 status) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the damage data of the referenced vehicle instance.
|
||||
*/
|
||||
SQUint32 GetDamageData() const noexcept;
|
||||
SQUint32 GetDamageData() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the damage data of the referenced vehicle instance.
|
||||
*/
|
||||
void SetDamageData(SQUint32 data) const noexcept;
|
||||
void SetDamageData(SQUint32 data) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced vehicle instance has alarm.
|
||||
*/
|
||||
bool HasAlarm() const noexcept;
|
||||
bool HasAlarm() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced vehicle instance has alarm.
|
||||
*/
|
||||
void SetAlarm(bool toggle) const noexcept;
|
||||
void SetAlarm(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced vehicle instance has lights.
|
||||
*/
|
||||
bool HasLights() const noexcept;
|
||||
bool HasLights() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced vehicle instance has lights.
|
||||
*/
|
||||
void SetLights(bool toggle) const noexcept;
|
||||
void SetLights(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the radio of the referenced vehicle instance.
|
||||
*/
|
||||
SQInt32 GetRadio() const noexcept;
|
||||
SQInt32 GetRadio() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the radio of the referenced vehicle instance.
|
||||
*/
|
||||
void SetRadio(SQInt32 radio) const noexcept;
|
||||
void SetRadio(SQInt32 radio) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced vehicle instance has radio locked.
|
||||
*/
|
||||
bool IsRadioLocked() const noexcept;
|
||||
bool IsRadioLocked() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced vehicle instance has radio locked.
|
||||
*/
|
||||
void SetRadioLocked(bool toggle) const noexcept;
|
||||
void SetRadioLocked(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the referenced vehicle instance is in ghost state.
|
||||
*/
|
||||
bool IsGhostState() const noexcept;
|
||||
bool IsGhostState() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the referenced vehicle instance is in ghost state.
|
||||
*/
|
||||
void SetGhostState(bool toggle) const noexcept;
|
||||
void SetGhostState(bool toggle) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Reset all the handling rules for the referenced vehicle instance.
|
||||
*/
|
||||
void ResetHandling() const noexcept;
|
||||
void ResetHandling() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Reset the specified handling rule for the referenced vehicle instance.
|
||||
*/
|
||||
void ResetHandling(SQInt32 rule) const noexcept;
|
||||
void ResetHandling(SQInt32 rule) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the specified handling ruleexists in the referenced vehicle instance.
|
||||
*/
|
||||
bool ExistsHandling(SQInt32 rule) const noexcept;
|
||||
bool ExistsHandling(SQInt32 rule) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the handling data of the referenced vehicle instance.
|
||||
*/
|
||||
SQFloat GetHandlingData(SQInt32 rule) const noexcept;
|
||||
SQFloat GetHandlingData(SQInt32 rule) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Change the handling data of the referenced vehicle instance.
|
||||
*/
|
||||
void SetHandlingData(SQInt32 rule, SQFloat data) const noexcept;
|
||||
void SetHandlingData(SQInt32 rule, SQFloat data) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Embark the specified player instance into the referenced vehicle instance.
|
||||
*/
|
||||
void Embark(const Reference< CPlayer > & player) const noexcept;
|
||||
void Embark(const Reference< CPlayer > & player) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Embark the specified player instance into the referenced vehicle instance.
|
||||
*/
|
||||
void Embark(const Reference< CPlayer > & player, SQInt32 slot, bool allocate, bool warp) const noexcept;
|
||||
void Embark(const Reference< CPlayer > & player, SQInt32 slot, bool allocate, bool warp) const;
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
Reference in New Issue
Block a user