From 3a24dfcd2e71b720e52e3a56d31b4d90b0b46e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Lu=C3=ADs=20Vaz=20Silva?= Date: Sun, 2 Mar 2025 15:18:43 -0300 Subject: [PATCH] add better descriptive name for vectors/quats --- src/common/scripting/core/types.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/scripting/core/types.cpp b/src/common/scripting/core/types.cpp index 6b15cb735..20ce7e05d 100644 --- a/src/common/scripting/core/types.cpp +++ b/src/common/scripting/core/types.cpp @@ -359,6 +359,7 @@ void PType::StaticInit() TypeVector2->RegType = REGT_FLOAT; TypeVector2->RegCount = 2; TypeVector2->isOrdered = true; + TypeVector2->mDescriptiveName = "Vector2"; TypeVector3 = new PStruct(NAME_Vector3, nullptr); TypeVector3->AddField(NAME_X, TypeFloat64); @@ -373,6 +374,7 @@ void PType::StaticInit() TypeVector3->RegType = REGT_FLOAT; TypeVector3->RegCount = 3; TypeVector3->isOrdered = true; + TypeVector3->mDescriptiveName = "Vector3"; TypeVector4 = new PStruct(NAME_Vector4, nullptr); TypeVector4->AddField(NAME_X, TypeFloat64); @@ -389,6 +391,7 @@ void PType::StaticInit() TypeVector4->RegType = REGT_FLOAT; TypeVector4->RegCount = 4; TypeVector4->isOrdered = true; + TypeVector4->mDescriptiveName = "Vector4"; TypeFVector2 = new PStruct(NAME_FVector2, nullptr); @@ -401,6 +404,7 @@ void PType::StaticInit() TypeFVector2->RegType = REGT_FLOAT; TypeFVector2->RegCount = 2; TypeFVector2->isOrdered = true; + TypeFVector2->mDescriptiveName = "FVector2"; TypeFVector2->SetLocalType(TypeVector2); TypeFVector3 = new PStruct(NAME_FVector3, nullptr); @@ -416,6 +420,7 @@ void PType::StaticInit() TypeFVector3->RegType = REGT_FLOAT; TypeFVector3->RegCount = 3; TypeFVector3->isOrdered = true; + TypeFVector3->mDescriptiveName = "FVector3"; TypeFVector3->SetLocalType(TypeVector3); TypeFVector4 = new PStruct(NAME_FVector4, nullptr); @@ -433,6 +438,7 @@ void PType::StaticInit() TypeFVector4->RegType = REGT_FLOAT; TypeFVector4->RegCount = 4; TypeFVector4->isOrdered = true; + TypeFVector4->mDescriptiveName = "FVector4"; TypeFVector4->SetLocalType(TypeVector4); @@ -450,6 +456,7 @@ void PType::StaticInit() TypeQuaternion->moveOp = OP_MOVEV4; TypeQuaternion->RegType = REGT_FLOAT; TypeQuaternion->RegCount = 4; + TypeQuaternion->mDescriptiveName = "Quat"; TypeQuaternion->isOrdered = true; TypeFQuaternion = new PStruct(NAME_FQuat, nullptr); @@ -467,6 +474,7 @@ void PType::StaticInit() TypeFQuaternion->RegType = REGT_FLOAT; TypeFQuaternion->RegCount = 4; TypeFQuaternion->isOrdered = true; + TypeFQuaternion->mDescriptiveName = "FQuat"; TypeFQuaternion->SetLocalType(TypeQuaternion);