mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 09:57:14 +01:00
Make the payload non-const in CAutomobile type.
This commit is contained in:
parent
92f449efc6
commit
b099ccc0b4
@ -215,27 +215,27 @@ const SQChar * CAutomobile::GetName() const noexcept
|
|||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
Reference< CVehicle > CAutomobile::Create(SQInt32 world, const Vector3 & pos, SQFloat angle, \
|
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);
|
return _Core->CreateVehicle(*this, world, pos, angle, SQMOD_UNKNOWN, SQMOD_UNKNOWN, header, payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< CVehicle > CAutomobile::Create(SQInt32 world, const Vector3 & pos, SQFloat angle, \
|
Reference< CVehicle > CAutomobile::Create(SQInt32 world, const Vector3 & pos, SQFloat angle, \
|
||||||
SQInt32 primary, SQInt32 secondary, SQInt32 header, \
|
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);
|
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, \
|
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);
|
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, \
|
Reference< CVehicle > CAutomobile::Create(SQInt32 world, SQFloat x, SQFloat y, SQFloat z, SQFloat angle, \
|
||||||
SQInt32 primary, SQInt32 secondary, SQInt32 header, \
|
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);
|
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)
|
.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)
|
(_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)
|
(_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)
|
(_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)
|
(_SC("vehicle"), &CAutomobile::Create)
|
||||||
);
|
);
|
||||||
// Output debugging information
|
// Output debugging information
|
||||||
|
@ -68,15 +68,15 @@ public:
|
|||||||
const SQChar * GetName() const noexcept;
|
const SQChar * GetName() const noexcept;
|
||||||
// --------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------
|
||||||
Reference < CVehicle > Create(SQInt32 world, const Vector3 & pos, SQFloat angle, \
|
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, \
|
Reference < CVehicle > Create(SQInt32 world, const Vector3 & pos, SQFloat angle, \
|
||||||
SQInt32 primary, SQInt32 secondary, SQInt32 header, \
|
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, \
|
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, \
|
Reference < CVehicle > Create(SQInt32 world, SQFloat x, SQFloat y, SQFloat z, SQFloat angle, \
|
||||||
SQInt32 primary, SQInt32 secondary, SQInt32 header, \
|
SQInt32 primary, SQInt32 secondary, SQInt32 header, \
|
||||||
const SqObj & payload) const noexcept;
|
SqObj & payload) const noexcept;
|
||||||
private:
|
private:
|
||||||
// --------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------
|
||||||
SQInt32 m_ID;
|
SQInt32 m_ID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user