1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Make the payload non-const in CAutomobile type.

This commit is contained in:
Sandu Liviu Catalin 2015-10-12 00:25:26 +03:00
parent 92f449efc6
commit b099ccc0b4
2 changed files with 12 additions and 12 deletions

View File

@ -215,27 +215,27 @@ const SQChar * CAutomobile::GetName() const noexcept
// ------------------------------------------------------------------------------------------------
Reference< CVehicle > CAutomobile::Create(SQInt32 world, const Vector3 & pos, SQFloat angle, \
SQInt32 header, const SqObj & payload) const noexcept
SQInt32 header, SqObj & payload) const noexcept
{
return _Core->CreateVehicle(*this, world, pos, angle, SQMOD_UNKNOWN, SQMOD_UNKNOWN, header, payload);
}
Reference< CVehicle > CAutomobile::Create(SQInt32 world, const Vector3 & pos, SQFloat angle, \
SQInt32 primary, SQInt32 secondary, SQInt32 header, \
const SqObj & payload) const noexcept
SqObj & payload) const noexcept
{
return _Core->CreateVehicle(*this, world, pos, angle, primary, secondary, header, payload);
}
Reference< CVehicle > CAutomobile::Create(SQInt32 world, SQFloat x, SQFloat y, SQFloat z, SQFloat angle, \
SQInt32 header, const SqObj & payload) const noexcept
SQInt32 header, SqObj & payload) const noexcept
{
return _Core->CreateVehicle(*this, world, Vector3(x, y, z), angle, SQMOD_UNKNOWN, SQMOD_UNKNOWN, header, payload);
}
Reference< CVehicle > CAutomobile::Create(SQInt32 world, SQFloat x, SQFloat y, SQFloat z, SQFloat angle, \
SQInt32 primary, SQInt32 secondary, SQInt32 header, \
const SqObj & payload) const noexcept
SqObj & payload) const noexcept
{
return _Core->CreateVehicle(*this, world, Vector3(x, y, z), angle, primary, secondary, header, payload);
}
@ -264,13 +264,13 @@ bool Register_CAutomobile(HSQUIRRELVM vm)
.Func(_SC("setng"), &CAutomobile::SetnGet)
.Overload< Reference< CVehicle > (CAutomobile::*)(SQInt32, const Vector3 &, SQFloat, SQInt32, const SqObj &) const > \
.Overload< Reference< CVehicle > (CAutomobile::*)(SQInt32, const Vector3 &, SQFloat, SQInt32, SqObj &) const > \
(_SC("vehicle"), &CAutomobile::Create)
.Overload< Reference< CVehicle > (CAutomobile::*)(SQInt32, const Vector3 &, SQFloat, SQInt32, SQInt32, SQInt32, const SqObj &) const > \
.Overload< Reference< CVehicle > (CAutomobile::*)(SQInt32, const Vector3 &, SQFloat, SQInt32, SQInt32, SQInt32, SqObj &) const > \
(_SC("vehicle"), &CAutomobile::Create)
.Overload< Reference< CVehicle > (CAutomobile::*)(SQInt32, SQFloat, SQFloat, SQFloat, SQFloat, SQInt32, const SqObj &) const > \
.Overload< Reference< CVehicle > (CAutomobile::*)(SQInt32, SQFloat, SQFloat, SQFloat, SQFloat, SQInt32, SqObj &) const > \
(_SC("vehicle"), &CAutomobile::Create)
.Overload< Reference< CVehicle > (CAutomobile::*)(SQInt32, SQFloat, SQFloat, SQFloat, SQFloat, SQInt32, SQInt32, SQInt32, const SqObj &) const > \
.Overload< Reference< CVehicle > (CAutomobile::*)(SQInt32, SQFloat, SQFloat, SQFloat, SQFloat, SQInt32, SQInt32, SQInt32, SqObj &) const > \
(_SC("vehicle"), &CAutomobile::Create)
);
// Output debugging information

View File

@ -68,15 +68,15 @@ public:
const SQChar * GetName() const noexcept;
// --------------------------------------------------------------------------------------------
Reference < CVehicle > Create(SQInt32 world, const Vector3 & pos, SQFloat angle, \
SQInt32 header, const SqObj & payload) const noexcept;
SQInt32 header, SqObj & payload) const noexcept;
Reference < CVehicle > Create(SQInt32 world, const Vector3 & pos, SQFloat angle, \
SQInt32 primary, SQInt32 secondary, SQInt32 header, \
const SqObj & payload) const noexcept;
SqObj & payload) const noexcept;
Reference < CVehicle > Create(SQInt32 world, SQFloat x, SQFloat y, SQFloat z, SQFloat angle, \
SQInt32 header, const SqObj & payload) const noexcept;
SQInt32 header, SqObj & payload) const noexcept;
Reference < CVehicle > Create(SQInt32 world, SQFloat x, SQFloat y, SQFloat z, SQFloat angle, \
SQInt32 primary, SQInt32 secondary, SQInt32 header, \
const SqObj & payload) const noexcept;
SqObj & payload) const noexcept;
private:
// --------------------------------------------------------------------------------------------
SQInt32 m_ID;