2015-11-11 07:57:03 +01:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
2015-09-30 02:56:11 +02:00
|
|
|
#include "Entity/Blip.hpp"
|
2015-11-01 00:31:28 +01:00
|
|
|
#include "Core.hpp"
|
2015-09-30 02:56:11 +02:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
2015-11-01 00:31:28 +01:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
2015-11-01 04:48:01 +01:00
|
|
|
CBlip::CBlip(const Reference< CBlip > & o)
|
2015-11-01 00:31:28 +01:00
|
|
|
: Reference(o)
|
|
|
|
{
|
|
|
|
/* ... */
|
|
|
|
}
|
|
|
|
|
2015-09-30 02:56:11 +02:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInteger CBlip::GetWorld() const
|
2015-10-29 21:07:15 +01:00
|
|
|
{
|
|
|
|
if (VALID_ENTITY(m_ID))
|
|
|
|
{
|
|
|
|
RefType::Get(m_ID).World;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-11-11 07:57:03 +01:00
|
|
|
BadRef("@world", "get world");
|
2015-10-29 21:07:15 +01:00
|
|
|
}
|
2015-11-11 07:57:03 +01:00
|
|
|
|
2015-10-29 21:07:15 +01:00
|
|
|
return SQMOD_UNKNOWN;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInteger CBlip::GetScale() const
|
2015-10-29 21:07:15 +01:00
|
|
|
{
|
|
|
|
if (VALID_ENTITY(m_ID))
|
|
|
|
{
|
|
|
|
RefType::Get(m_ID).Scale;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-11-11 07:57:03 +01:00
|
|
|
BadRef("@scale", "get scale");
|
2015-10-29 21:07:15 +01:00
|
|
|
}
|
2015-11-11 07:57:03 +01:00
|
|
|
|
2015-10-29 21:07:15 +01:00
|
|
|
return SQMOD_UNKNOWN;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2015-11-01 04:48:01 +01:00
|
|
|
const Vector3 & CBlip::GetPosition() const
|
2015-10-29 21:07:15 +01:00
|
|
|
{
|
|
|
|
if (VALID_ENTITY(m_ID))
|
|
|
|
{
|
|
|
|
RefType::Get(m_ID).Position;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-11-11 07:57:03 +01:00
|
|
|
BadRef("@position", "get position");
|
2015-10-29 21:07:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return Vector3::NIL;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2015-11-01 04:48:01 +01:00
|
|
|
SQFloat CBlip::GetPositionX() const
|
2015-10-29 21:07:15 +01:00
|
|
|
{
|
|
|
|
if (VALID_ENTITY(m_ID))
|
|
|
|
{
|
|
|
|
RefType::Get(m_ID).Position.x;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-11-11 07:57:03 +01:00
|
|
|
BadRef("@pos_x", "get x axis");
|
2015-10-29 21:07:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2015-11-01 04:48:01 +01:00
|
|
|
SQFloat CBlip::GetPositionY() const
|
2015-10-29 21:07:15 +01:00
|
|
|
{
|
|
|
|
if (VALID_ENTITY(m_ID))
|
|
|
|
{
|
|
|
|
RefType::Get(m_ID).Position.y;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-11-11 07:57:03 +01:00
|
|
|
BadRef("@pos_y", "get y axis");
|
2015-10-29 21:07:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2015-11-01 04:48:01 +01:00
|
|
|
SQFloat CBlip::GetPositionZ() const
|
2015-10-29 21:07:15 +01:00
|
|
|
{
|
|
|
|
if (VALID_ENTITY(m_ID))
|
|
|
|
{
|
|
|
|
RefType::Get(m_ID).Position.z;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-11-11 07:57:03 +01:00
|
|
|
BadRef("@pos_z", "get z axis");
|
2015-10-29 21:07:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2015-11-01 04:48:01 +01:00
|
|
|
const Color4 & CBlip::GetColor() const
|
2015-10-29 21:07:15 +01:00
|
|
|
{
|
|
|
|
if (VALID_ENTITY(m_ID))
|
|
|
|
{
|
|
|
|
RefType::Get(m_ID).Color;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-11-11 07:57:03 +01:00
|
|
|
BadRef("@color", "get color");
|
2015-10-29 21:07:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return Color4::NIL;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 CBlip::GetSprID() const
|
2015-10-29 21:07:15 +01:00
|
|
|
{
|
|
|
|
if (VALID_ENTITY(m_ID))
|
|
|
|
{
|
|
|
|
RefType::Get(m_ID).SprID;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-11-11 07:57:03 +01:00
|
|
|
BadRef("@spr_id", "get sprite id");
|
2015-10-29 21:07:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return SQMOD_UNKNOWN;
|
|
|
|
}
|
|
|
|
|
2015-11-01 00:31:28 +01:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
Reference< CBlip > CreateBaseBlip_ES(SQInt32 world,
|
|
|
|
SQFloat x, SQFloat y, SQFloat z,
|
|
|
|
SQInt32 scale,
|
|
|
|
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 sprid)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(SQMOD_UNKNOWN, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
|
|
|
SQMOD_CREATE_DEFAULT, NullData());
|
|
|
|
}
|
|
|
|
|
|
|
|
Reference< CBlip > CreateBaseBlip_ES(SQInt32 world,
|
|
|
|
SQFloat x, SQFloat y, SQFloat z,
|
|
|
|
SQInt32 scale,
|
|
|
|
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
|
|
|
SQInt32 sprid,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 header, SqObj & payload)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(SQMOD_UNKNOWN, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
|
|
|
header, payload);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
Reference< CBlip > CreateBaseBlip_EF(SQInt32 index, SQInt32 world,
|
|
|
|
SQFloat x, SQFloat y, SQFloat z,
|
|
|
|
SQInt32 scale,
|
|
|
|
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 sprid)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(index, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
|
|
|
SQMOD_CREATE_DEFAULT, NullData());
|
|
|
|
}
|
|
|
|
|
|
|
|
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,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 header, SqObj & payload)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(index, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
|
|
|
header, payload);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
Reference< CBlip > CreateBaseBlip_CS(SQInt32 world, const Vector3 & pos,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 scale, const Color4 & color, SQInt32 sprid)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(SQMOD_UNKNOWN, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
|
|
|
SQMOD_CREATE_DEFAULT, NullData());
|
|
|
|
}
|
|
|
|
|
|
|
|
Reference< CBlip > CreateBaseBlip_CS(SQInt32 world, const Vector3 & pos,
|
|
|
|
SQInt32 scale, const Color4 & color, SQInt32 sprid,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 header, SqObj & payload)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(SQMOD_UNKNOWN, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
|
|
|
header, payload);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
Reference< CBlip > CreateBaseBlip_CF(SQInt32 index, SQInt32 world, const Vector3 & pos,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 scale, const Color4 & color, SQInt32 sprid)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(index, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
|
|
|
SQMOD_CREATE_DEFAULT, NullData());
|
|
|
|
}
|
|
|
|
|
|
|
|
Reference< CBlip > CreateBaseBlip_CF(SQInt32 index, SQInt32 world, const Vector3 & pos,
|
|
|
|
SQInt32 scale, const Color4 & color, SQInt32 sprid,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 header, SqObj & payload)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(index, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
|
|
|
header, payload);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
CBlip CreateBlip_ES(SQInt32 world,
|
|
|
|
SQFloat x, SQFloat y, SQFloat z,
|
|
|
|
SQInt32 scale,
|
|
|
|
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 sprid)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(SQMOD_UNKNOWN, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
|
|
|
SQMOD_CREATE_DEFAULT, NullData());
|
|
|
|
}
|
|
|
|
|
|
|
|
CBlip CreateBlip_ES(SQInt32 world,
|
|
|
|
SQFloat x, SQFloat y, SQFloat z,
|
|
|
|
SQInt32 scale,
|
|
|
|
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
|
|
|
SQInt32 sprid,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 header, SqObj & payload)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(SQMOD_UNKNOWN, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
|
|
|
header, payload);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
CBlip CreateBlip_EF(SQInt32 index, SQInt32 world,
|
|
|
|
SQFloat x, SQFloat y, SQFloat z,
|
|
|
|
SQInt32 scale,
|
|
|
|
Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 sprid)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(index, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
|
|
|
SQMOD_CREATE_DEFAULT, NullData());
|
|
|
|
}
|
|
|
|
|
|
|
|
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,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 header, SqObj & payload)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(index, world, x, y, z, scale, PACK_RGBA(r, g, b, a), sprid,
|
|
|
|
header, payload);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
CBlip CreateBlip_CS(SQInt32 world, const Vector3 & pos,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 scale, const Color4 & color, SQInt32 sprid)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(SQMOD_UNKNOWN, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
|
|
|
SQMOD_CREATE_DEFAULT, NullData());
|
|
|
|
}
|
|
|
|
|
|
|
|
CBlip CreateBlip_CS(SQInt32 world, const Vector3 & pos,
|
|
|
|
SQInt32 scale, const Color4 & color, SQInt32 sprid,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 header, SqObj & payload)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(SQMOD_UNKNOWN, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
|
|
|
header, payload);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
CBlip CreateBlip_CF(SQInt32 index, SQInt32 world, const Vector3 & pos,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 scale, const Color4 & color, SQInt32 sprid)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(index, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
|
|
|
SQMOD_CREATE_DEFAULT, NullData());
|
|
|
|
}
|
|
|
|
|
|
|
|
CBlip CreateBlip_CF(SQInt32 index, SQInt32 world, const Vector3 & pos,
|
|
|
|
SQInt32 scale, const Color4 & color, SQInt32 sprid,
|
2015-11-01 04:48:01 +01:00
|
|
|
SQInt32 header, SqObj & payload)
|
2015-11-01 00:31:28 +01:00
|
|
|
{
|
|
|
|
return _Core->NewBlip(index, world, pos.x, pos.y, pos.z, scale, color.GetRGBA(), sprid,
|
|
|
|
header, payload);
|
|
|
|
}
|
|
|
|
|
2015-10-29 21:07:15 +01:00
|
|
|
// ================================================================================================
|
2015-09-30 02:56:11 +02:00
|
|
|
bool Register_CBlip(HSQUIRRELVM vm)
|
|
|
|
{
|
2015-10-29 21:07:15 +01:00
|
|
|
// Attempt to register the base reference type before the actual implementation
|
2015-09-30 02:56:11 +02:00
|
|
|
if (!Register_Reference< CBlip >(vm, _SC("BaseBlip")))
|
|
|
|
{
|
2015-10-29 21:07:15 +01:00
|
|
|
LogFtl("Unable to register the base class <BaseBlip> for <CBlip> type");
|
|
|
|
// Registration failed
|
2015-09-30 02:56:11 +02:00
|
|
|
return false;
|
|
|
|
}
|
2015-11-01 00:31:28 +01:00
|
|
|
// Typedef the base reference type for simplicity
|
|
|
|
typedef Reference< CBlip > RefType;
|
2015-10-29 21:07:15 +01:00
|
|
|
// Output debugging information
|
2015-09-30 02:56:11 +02:00
|
|
|
LogDbg("Beginning registration of <CBlip> type");
|
2015-10-29 21:07:15 +01:00
|
|
|
// Attempt to register the actual reference that implements all of the entity functionality
|
2015-11-01 00:31:28 +01:00
|
|
|
Sqrat::RootTable(vm).Bind(_SC("CBlip"), Sqrat::DerivedClass< CBlip, RefType >(vm, _SC("CBlip"))
|
2015-10-29 21:07:15 +01:00
|
|
|
/* Constructors */
|
2015-09-30 02:56:11 +02:00
|
|
|
.Ctor()
|
|
|
|
.Ctor< SQInt32 >()
|
2015-10-29 21:07:15 +01:00
|
|
|
/* Properties */
|
|
|
|
.Prop(_SC("world"), &CBlip::GetWorld)
|
|
|
|
.Prop(_SC("scale"), &CBlip::GetScale)
|
|
|
|
.Prop(_SC("pos"), &CBlip::GetPosition)
|
|
|
|
.Prop(_SC("position"), &CBlip::GetPosition)
|
|
|
|
.Prop(_SC("color"), &CBlip::GetColor)
|
|
|
|
.Prop(_SC("spr_id"), &CBlip::GetSprID)
|
|
|
|
.Prop(_SC("pos_x"), &CBlip::GetPositionX)
|
|
|
|
.Prop(_SC("pos_y"), &CBlip::GetPositionY)
|
|
|
|
.Prop(_SC("pos_z"), &CBlip::GetPositionZ)
|
2015-09-30 02:56:11 +02:00
|
|
|
);
|
2015-10-29 21:07:15 +01:00
|
|
|
// Output debugging information
|
2015-09-30 02:56:11 +02:00
|
|
|
LogDbg("Registration of <CBlip> type was successful");
|
2015-11-01 00:31:28 +01:00
|
|
|
// Output debugging information
|
2015-11-11 07:57:03 +01:00
|
|
|
LogDbg("Beginning registration of <Blip> functions");
|
2015-11-01 00:31:28 +01:00
|
|
|
// Register global functions related to this entity type
|
|
|
|
Sqrat::RootTable(vm)
|
|
|
|
/* Create BaseBlip [E]xtended [S]ubstitute */
|
|
|
|
.Overload< RefType (*)(SQInt32, SQFloat, SQFloat, SQFloat, SQInt32, Uint8, Uint8, Uint8, Uint8, SQInt32) >
|
|
|
|
(_SC("CreateBaseBlip_ES"), &CreateBaseBlip_ES)
|
|
|
|
.Overload< RefType (*)(SQInt32, SQFloat, SQFloat, SQFloat, SQInt32, Uint8, Uint8, Uint8, Uint8, SQInt32, SQInt32, SqObj &) >
|
|
|
|
(_SC("CreateBaseBlip_ES"), &CreateBaseBlip_ES)
|
|
|
|
/* Create BaseBlip [E]xtended [F]Full */
|
|
|
|
.Overload< RefType (*)(SQInt32, SQInt32, SQFloat, SQFloat, SQFloat, SQInt32, Uint8, Uint8, Uint8, Uint8, SQInt32) >
|
|
|
|
(_SC("CreateBaseBlip_EF"), &CreateBaseBlip_EF)
|
|
|
|
.Overload< RefType (*)(SQInt32, SQInt32, SQFloat, SQFloat, SQFloat, SQInt32, Uint8, Uint8, Uint8, Uint8, SQInt32, SQInt32, SqObj &) >
|
|
|
|
(_SC("CreateBaseBlip_EF"), &CreateBaseBlip_EF)
|
|
|
|
/* Create BaseBlip [C]ompact [S]ubstitute */
|
|
|
|
.Overload< RefType (*)(SQInt32, const Vector3 &, SQInt32, const Color4 &, SQInt32) >
|
|
|
|
(_SC("CreateBaseBlip_CS"), &CreateBaseBlip_CS)
|
|
|
|
.Overload< RefType (*)(SQInt32, const Vector3 &, SQInt32, const Color4 &, SQInt32, SQInt32, SqObj &) >
|
|
|
|
(_SC("CreateBaseBlip_CS"), &CreateBaseBlip_CS)
|
|
|
|
/* Create BaseBlip [C]ompact [F]ull */
|
|
|
|
.Overload< RefType (*)(SQInt32, SQInt32, const Vector3 &, SQInt32, const Color4 &, SQInt32) >
|
|
|
|
(_SC("CreateBaseBlip_CF"), &CreateBaseBlip_CF)
|
|
|
|
.Overload< RefType (*)(SQInt32, SQInt32, const Vector3 &, SQInt32, const Color4 &, SQInt32, SQInt32, SqObj &) >
|
|
|
|
(_SC("CreateBaseBlip_CF"), &CreateBaseBlip_CF)
|
|
|
|
/* Create CBlip [E]xtended [S]ubstitute */
|
|
|
|
.Overload< CBlip (*)(SQInt32, SQFloat, SQFloat, SQFloat, SQInt32, Uint8, Uint8, Uint8, Uint8, SQInt32) >
|
|
|
|
(_SC("CreateBlip_ES"), &CreateBlip_ES)
|
|
|
|
.Overload< CBlip (*)(SQInt32, SQFloat, SQFloat, SQFloat, SQInt32, Uint8, Uint8, Uint8, Uint8, SQInt32, SQInt32, SqObj &) >
|
|
|
|
(_SC("CreateBlip_ES"), &CreateBlip_ES)
|
|
|
|
/* Create CBlip [E]xtended [F]Full */
|
|
|
|
.Overload< CBlip (*)(SQInt32, SQInt32, SQFloat, SQFloat, SQFloat, SQInt32, Uint8, Uint8, Uint8, Uint8, SQInt32) >
|
|
|
|
(_SC("CreateBlip_EF"), &CreateBlip_EF)
|
|
|
|
.Overload< CBlip (*)(SQInt32, SQInt32, SQFloat, SQFloat, SQFloat, SQInt32, Uint8, Uint8, Uint8, Uint8, SQInt32, SQInt32, SqObj &) >
|
|
|
|
(_SC("CreateBlip_EF"), &CreateBlip_EF)
|
|
|
|
/* Create CBlip [C]ompact [S]ubstitute */
|
|
|
|
.Overload< CBlip (*)(SQInt32, const Vector3 &, SQInt32, const Color4 &, SQInt32) >
|
|
|
|
(_SC("CreateBlip_CS"), &CreateBlip_CS)
|
|
|
|
.Overload< CBlip (*)(SQInt32, const Vector3 &, SQInt32, const Color4 &, SQInt32, SQInt32, SqObj &) >
|
|
|
|
(_SC("CreateBlip_CS"), &CreateBlip_CS)
|
|
|
|
/* Create CBlip [C]ompact [F]ull */
|
|
|
|
.Overload< CBlip (*)(SQInt32, SQInt32, const Vector3 &, SQInt32, const Color4 &, SQInt32) >
|
|
|
|
(_SC("CreateBlip_CF"), &CreateBlip_CF)
|
|
|
|
.Overload< CBlip (*)(SQInt32, SQInt32, const Vector3 &, SQInt32, const Color4 &, SQInt32, SQInt32, SqObj &) >
|
|
|
|
(_SC("CreateBlip_CF"), &CreateBlip_CF);
|
|
|
|
// Output debugging information
|
2015-11-11 07:57:03 +01:00
|
|
|
LogDbg("Registration of <Blip> functions was successful");
|
2015-10-29 21:07:15 +01:00
|
|
|
// Registration succeeded
|
2015-09-30 02:56:11 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // Namespace:: SqMod
|