From 265c2462be9f9bae90f999a87c16d34dab2b2784 Mon Sep 17 00:00:00 2001 From: jyelon Date: Tue, 31 Oct 2023 13:33:00 -0400 Subject: [PATCH] Engio invocation successful --- Source/Integration/IntegrationGameModeBase.cpp | 4 ++-- Source/Integration/StringDecoder.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Integration/IntegrationGameModeBase.cpp b/Source/Integration/IntegrationGameModeBase.cpp index 342e54fb..ce4d277b 100644 --- a/Source/Integration/IntegrationGameModeBase.cpp +++ b/Source/Integration/IntegrationGameModeBase.cpp @@ -142,8 +142,8 @@ void AIntegrationGameModeBase::ExecuteDebuggingCommand(const FString &fs) { sb.write_double(3.0); sb.write_simple_dynamic_tag(SimpleDynamicTag::STRING); sb.write_string("Howdy"); - sb.write_simple_dynamic_tag(SimpleDynamicTag::BOOLEAN); - sb.write_bool(true); + sb.write_simple_dynamic_tag(SimpleDynamicTag::VECTOR); + sb.write_fvector(FVector(2,3,4)); std::string_view datapk = sb.view(); int64 player = w.GetActor(); w->play_invoke_engio(w.Get(), player, datapk.size(), datapk.data()); diff --git a/Source/Integration/StringDecoder.h b/Source/Integration/StringDecoder.h index 0527f8ff..6ddec598 100644 --- a/Source/Integration/StringDecoder.h +++ b/Source/Integration/StringDecoder.h @@ -30,13 +30,13 @@ class FlxStreamBuffer : public BaseBuffer { public: using BaseBuffer::BaseBuffer; - void write_dvector(const FVector &xyz) { + void write_fvector(const FVector &xyz) { write_double(xyz.X); write_double(xyz.Y); write_double(xyz.Z); } - FVector read_dvector() { + FVector read_fvector() { double x = read_double(); double y = read_double(); double z = read_double();