Move a lot of EngineWrapper interfaces out of LuprexGameModeBase
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "UtilityLibrary.h"
|
||||
#include "LuprexGameModeBase.h"
|
||||
#include "GameFramework/PlayerController.h"
|
||||
#include "EnhancedInputSubsystems.h"
|
||||
#include "Kismet/KismetSystemLibrary.h"
|
||||
@@ -251,3 +252,11 @@ FVector UlxUtilityLibrary::GetActorForwardVelocity(const AActor *Actor, double S
|
||||
}
|
||||
return Forward * Speed;
|
||||
}
|
||||
|
||||
void UlxUtilityLibrary::ValidateLuaExpr(
|
||||
ElxLuaSyntaxCheck &Status, FString &ErrorMessage, UObject *context, const FString &Code)
|
||||
{
|
||||
ALuprexGameModeBase *mode = ALuprexGameModeBase::FromContext(context);
|
||||
FlxLockedWrapper w(mode->GetLockableWrapper());
|
||||
Status = w.ValidateLuaExpr(Code, ErrorMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user