Added LuaCall.h
This commit is contained in:
46
Source/Integration/LuaCall.cpp
Normal file
46
Source/Integration/LuaCall.cpp
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
#include "LuaCall.h"
|
||||
#include "IntegrationGameModeBase.h"
|
||||
|
||||
void UlxLuaCallLibrary::LuaCallBegin(UObject *context, const FString &cname, const FString &fname) {
|
||||
|
||||
}
|
||||
|
||||
void UlxLuaCallLibrary::LuaCallAddStringParameter(UObject *context, const FString &pstring) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
void UlxLuaCallLibrary::LuaCallAddFloatParameter(UObject *context, double pfloat) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
void UlxLuaCallLibrary::LuaCallAddVectorParameter(UObject *context, const FVector &pvector) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
void UlxLuaCallLibrary::LuaCallAddBooleanParameter(UObject *context, bool pbool) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
void UlxLuaCallLibrary::LuaCallInvoke(UObject *context, bool background) {
|
||||
|
||||
}
|
||||
|
||||
void UlxLuaCallLibrary::InvokeEngioMove(UObject *context, const FString &action, const FVector &xyz, double facing) {
|
||||
AIntegrationGameModeBase *mode = AIntegrationGameModeBase::GetFromContext(context);
|
||||
FlxStreamBuffer &sb = mode->LuaCallGetBuffer();
|
||||
mode->LuaCallBegin();
|
||||
sb.write_string("engio");
|
||||
sb.write_string("move");
|
||||
sb.write_simple_dynamic_tag(SimpleDynamicTag::STRING);
|
||||
sb.write_string(action);
|
||||
sb.write_simple_dynamic_tag(SimpleDynamicTag::VECTOR);
|
||||
sb.write_fvector(xyz);
|
||||
sb.write_simple_dynamic_tag(SimpleDynamicTag::NUMBER);
|
||||
sb.write_double(facing);
|
||||
mode->LuaCallInvoke(true);
|
||||
}
|
||||
Reference in New Issue
Block a user