Engio invocation successful

This commit is contained in:
2023-10-31 13:33:00 -04:00
parent 0ccc08c7dc
commit 265c2462be
2 changed files with 4 additions and 4 deletions

View File

@@ -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());

View File

@@ -30,13 +30,13 @@ class FlxStreamBuffer : public BaseBuffer<FlxStreamBufferCore, std::string> {
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();