You've already forked LuckyWorld
Organize the code related to selecting robots and levels in blueprints into C++, and organize the related referenced blueprints
This commit is contained in:
23
Source/Luckyrobots/Public/LuckyRobotsFunctionLibrary.h
Normal file
23
Source/Luckyrobots/Public/LuckyRobotsFunctionLibrary.h
Normal file
@ -0,0 +1,23 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Kismet/BlueprintFunctionLibrary.h"
|
||||
#include "SharedDef.h"
|
||||
#include "LuckyRobotsFunctionLibrary.generated.h"
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class LUCKYROBOTS_API ULuckyRobotsFunctionLibrary : public UBlueprintFunctionLibrary
|
||||
{
|
||||
GENERATED_BODY()
|
||||
public:
|
||||
UFUNCTION(BlueprintPure, meta = (WorldContext = "WorldContextObject"))
|
||||
static TArray<FRobotData> GetActiveRobotDataList(const UObject* WorldContextObject);
|
||||
|
||||
UFUNCTION(BlueprintPure, meta = (WorldContext = "WorldContextObject"))
|
||||
static TArray<FLevelData> GetActiveLevelDataList(const UObject* WorldContextObject);
|
||||
};
|
Reference in New Issue
Block a user