Added LuaCall.h
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user