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

Added several aliases and short notations for members in vehicle entity type.

This commit is contained in:
Sandu Liviu Catalin 2015-11-11 11:36:37 +02:00
parent 12b70f2795
commit 3b729cd73d

View File

@ -1458,15 +1458,23 @@ bool Register_CVehicle(HSQUIRRELVM vm)
.Prop(_SC("model_id"), &CVehicle::GetModelID)
.Prop(_SC("immunity"), &CVehicle::GetImmunity, &CVehicle::SetImmunity)
.Prop(_SC("wrecked"), &CVehicle::IsWrecked)
.Prop(_SC("pos"), &CVehicle::GetPosition, &CVehicle::SetPosition)
.Prop(_SC("position"), &CVehicle::GetPosition, &CVehicle::SetPosition)
.Prop(_SC("rot"), &CVehicle::GetRotation, &CVehicle::SetRotation)
.Prop(_SC("rotation"), &CVehicle::GetRotation, &CVehicle::SetRotation)
.Prop(_SC("erot"), &CVehicle::GetRotationEuler, &CVehicle::SetRotationEuler)
.Prop(_SC("rot_euler"), &CVehicle::GetRotationEuler, &CVehicle::SetRotationEuler)
.Prop(_SC("rotation_euler"), &CVehicle::GetRotationEuler, &CVehicle::SetRotationEuler)
.Prop(_SC("speed"), &CVehicle::GetSpeed, &CVehicle::SetSpeed)
.Prop(_SC("rel_speed"), &CVehicle::GetRelSpeed, &CVehicle::SetRelSpeed)
.Prop(_SC("turn_speed"), &CVehicle::GetTurnSpeed, &CVehicle::SetTurnSpeed)
.Prop(_SC("rel_turn_speed"), &CVehicle::GetRelTurnSpeed, &CVehicle::SetRelTurnSpeed)
.Prop(_SC("spawn_pos"), &CVehicle::GetSpawnPosition, &CVehicle::SetSpawnPosition)
.Prop(_SC("spawn_position"), &CVehicle::GetSpawnPosition, &CVehicle::SetSpawnPosition)
.Prop(_SC("spawn_rot"), &CVehicle::GetSpawnRotation, &CVehicle::SetSpawnRotation)
.Prop(_SC("spawn_rotation"), &CVehicle::GetSpawnRotation, &CVehicle::SetSpawnRotation)
.Prop(_SC("spawn_erot"), &CVehicle::GetSpawnRotationEuler, &CVehicle::SetSpawnRotationEuler)
.Prop(_SC("spawn_rot_euler"), &CVehicle::GetSpawnRotationEuler, &CVehicle::SetSpawnRotationEuler)
.Prop(_SC("spawn_rotation_euler"), &CVehicle::GetSpawnRotationEuler, &CVehicle::SetSpawnRotationEuler)
.Prop(_SC("respawn_timer"), &CVehicle::GetRespawnTimer, &CVehicle::SetRespawnTimer)
.Prop(_SC("health"), &CVehicle::GetHealth, &CVehicle::SetHealth)
@ -1478,20 +1486,28 @@ bool Register_CVehicle(HSQUIRRELVM vm)
.Prop(_SC("lights"), &CVehicle::GetLights, &CVehicle::SetLights)
.Prop(_SC("radio"), &CVehicle::GetRadio, &CVehicle::SetRadio)
.Prop(_SC("radio_locked"), &CVehicle::GetRadioLocked, &CVehicle::SetRadioLocked)
.Prop(_SC("ghost"), &CVehicle::GetGhostState, &CVehicle::SetGhostState)
.Prop(_SC("ghost_state"), &CVehicle::GetGhostState, &CVehicle::SetGhostState)
/* Functions */
.Func(_SC("streamed_for"), &CVehicle::IsStreamedFor)
.Func(_SC("occupant"), &CVehicle::GetOccupant)
.Func(_SC("occupant_id"), &CVehicle::GetOccupantID)
.Func(_SC("respawn"), &CVehicle::Respawn)
.Func(_SC("set_rot"), &CVehicle::SetRotationEx)
.Func(_SC("set_rotation"), &CVehicle::SetRotationEx)
.Func(_SC("set_erot"), &CVehicle::SetRotationEulerEx)
.Func(_SC("set_rot_euler"), &CVehicle::SetRotationEulerEx)
.Func(_SC("set_rotation_euler"), &CVehicle::SetRotationEulerEx)
.Func(_SC("set_speed"), &CVehicle::SetSpeedEx)
.Func(_SC("set_rel_speed"), &CVehicle::SetRelSpeedEx)
.Func(_SC("set_turn_speed"), &CVehicle::SetTurnSpeedEx)
.Func(_SC("set_rel_turn_speed"), &CVehicle::SetRelTurnSpeedEx)
.Func(_SC("set_spawn_pos"), &CVehicle::SetSpawnPositionEx)
.Func(_SC("set_spawn_position"), &CVehicle::SetSpawnPositionEx)
.Func(_SC("set_spawn_rot"), &CVehicle::SetSpawnRotationEx)
.Func(_SC("set_spawn_rotation"), &CVehicle::SetSpawnRotationEx)
.Func(_SC("set_spawn_erot"), &CVehicle::SetSpawnRotationEulerEx)
.Func(_SC("set_spawn_rot_euler"), &CVehicle::SetSpawnRotationEulerEx)
.Func(_SC("set_spawn_rotation_euler"), &CVehicle::SetSpawnRotationEulerEx)
.Func(_SC("set_colors"), &CVehicle::SetColors)
.Func(_SC("get_part_status"), &CVehicle::GetPartStatus)
@ -1502,6 +1518,12 @@ bool Register_CVehicle(HSQUIRRELVM vm)
.Func(_SC("get_handling_data"), &CVehicle::GetHandlingData)
.Func(_SC("set_handling_data"), &CVehicle::SetHandlingData)
/* Overloads */
.Overload< void (CVehicle::*)(const Vector3 &, bool) const >
(_SC("set_pos"), &CVehicle::SetPositionEx)
.Overload< void (CVehicle::*)(SQFloat, SQFloat, SQFloat) const >
(_SC("set_pos"), &CVehicle::SetPositionEx)
.Overload< void (CVehicle::*)(SQFloat, SQFloat, SQFloat, bool) const >
(_SC("set_pos"), &CVehicle::SetPositionEx)
.Overload< void (CVehicle::*)(const Vector3 &, bool) const >
(_SC("set_position"), &CVehicle::SetPositionEx)
.Overload< void (CVehicle::*)(SQFloat, SQFloat, SQFloat) const >