Added LuaCall.h

This commit is contained in:
2024-08-31 16:42:07 -04:00
parent a61a74a7b0
commit f7b381a5f6
5 changed files with 185 additions and 15 deletions

View File

@@ -29,6 +29,16 @@ protected:
class FlxStreamBuffer : public BaseBuffer<FlxStreamBufferCore, std::string> {
public:
using BaseBuffer::BaseBuffer;
using BaseBuffer::write_string;
void write_string(const FString &str) {
FTCHARToUTF8 utf8str(str);
write_string(std::string_view(utf8str.Get(), utf8str.Length()));
}
void write_string(const char *s) {
write_string(std::string_view(s));
}
void write_fvector(const FVector &xyz) {
write_double(xyz.X);