diff --git a/Content/BPF_SpawnerFunctions.uasset b/Content/BPF_SpawnerFunctions.uasset new file mode 100644 index 0000000..fbf3093 Binary files /dev/null and b/Content/BPF_SpawnerFunctions.uasset differ diff --git a/Source/Unrealzilla/Private/BugPlacerPawn.cpp b/Source/Unrealzilla/Private/BugPlacerPawn.cpp index 589d8e0..eb8e05b 100644 --- a/Source/Unrealzilla/Private/BugPlacerPawn.cpp +++ b/Source/Unrealzilla/Private/BugPlacerPawn.cpp @@ -203,7 +203,7 @@ void ABugPlacerPawn::ExitCanceled() } -void ABugPlacerPawn::SpawnBugPlacerPawn(const UObject *WorldContextObject, TSubclassOf Class) +void ABugPlacerPawn::SBPP(const UObject *WorldContextObject, TSubclassOf Class) { const FTransform &Transform = UGameplayStatics::GetPlayerCameraManager(WorldContextObject, 0)->GetActorTransform(); FActorSpawnParameters SpawnParams; @@ -211,7 +211,7 @@ void ABugPlacerPawn::SpawnBugPlacerPawn(const UObject *WorldContextObject, TSubc WorldContextObject->GetWorld()->SpawnActor(Class, Transform, SpawnParams); } -void ABugPlacerPawn::ShowBugMarkersInLevel(const UObject *WorldContextObject) +void ABugPlacerPawn::SBMIL(const UObject *WorldContextObject) { if (UBugMarkerSubsystem *BugMarkerSubsystem = UGameplayStatics::GetPlayerController(WorldContextObject, 0)->GetLocalPlayer()->GetSubsystem()) { @@ -219,7 +219,7 @@ void ABugPlacerPawn::ShowBugMarkersInLevel(const UObject *WorldContextObject) } } -void ABugPlacerPawn::HideBugMarkersInLevel(const UObject *WorldContextObject) +void ABugPlacerPawn::HBMIL(const UObject *WorldContextObject) { if (UBugMarkerSubsystem *BugMarkerSubsystem = UGameplayStatics::GetPlayerController(WorldContextObject, 0)->GetLocalPlayer()->GetSubsystem()) { diff --git a/Source/Unrealzilla/Public/BugPlacerPawn.h b/Source/Unrealzilla/Public/BugPlacerPawn.h index 69b68cd..e70565a 100644 --- a/Source/Unrealzilla/Public/BugPlacerPawn.h +++ b/Source/Unrealzilla/Public/BugPlacerPawn.h @@ -32,12 +32,12 @@ public: UFUNCTION(BlueprintImplementableEvent) void ShowCrosshairs(const bool bShow); - UFUNCTION(BlueprintCallable, meta=(WorldContext="WorldContextObject")) - static void SpawnBugPlacerPawn(const UObject *WorldContextObject, TSubclassOf Class); - UFUNCTION(BlueprintCallable, meta=(WorldContext="WorldContextObject")) - static void ShowBugMarkersInLevel(const UObject *WorldContextObject); - UFUNCTION(BlueprintCallable, meta=(WorldContext="WorldContextObject")) - static void HideBugMarkersInLevel(const UObject *WorldContextObject); + UFUNCTION(BlueprintCallable, Category="Unrealzilla C++ Native", meta=(WorldContext="WorldContextObject")) + static void SBPP(const UObject *WorldContextObject, TSubclassOf Class); + UFUNCTION(BlueprintCallable, Category="Unrealzilla C++ Native", meta=(WorldContext="WorldContextObject")) + static void SBMIL(const UObject *WorldContextObject); + UFUNCTION(BlueprintCallable, Category="Unrealzilla C++ Native", meta=(WorldContext="WorldContextObject")) + static void HBMIL(const UObject *WorldContextObject); protected: UFUNCTION(BlueprintCallable)