63 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Fill out your copyright notice in the Description page of Project Settings.
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "CoreMinimal.h"
 | |
| #include "slua.h"
 | |
| #include "Role/BusyRole.h"
 | |
| #include "Engine/World.h"
 | |
| #include "Level/BusyLevelItem.h"
 | |
| #include "Engine/DataTable.h"
 | |
| #include "BusyActorManagerSubSystem.h"
 | |
| #include "Kismet/BlueprintFunctionLibrary.h"
 | |
| #include "GameAsset/BusyItem.h"
 | |
| #include "LuaBlueprintLibrary.h"
 | |
| #include "BusyGamePlayLibrary.generated.h"
 | |
| 
 | |
| /**
 | |
|  * 
 | |
|  */
 | |
| UCLASS()
 | |
| class BUSYRABBIT_API UBusyGameplayLibrary : public UBlueprintFunctionLibrary
 | |
| {
 | |
| 	GENERATED_BODY()
 | |
| 
 | |
| public:
 | |
| 	UFUNCTION(BlueprintCallable)
 | |
| 	static UDataTable* GetGameDataTable(const FString& TableName);
 | |
| 
 | |
| 	UFUNCTION(BlueprintCallable)
 | |
| 	static UClass* GetGameClass(const FString& ClassName);
 | |
| 
 | |
| 	UFUNCTION(BlueprintCallable)
 | |
| 	static UClass* GetGameUIClass(const FString& ClassName);
 | |
| 
 | |
| 	UFUNCTION(BlueprintPure)
 | |
| 	static UWorld* K2_GetWorld(const UObject* UObj);
 | |
| 
 | |
| 	UFUNCTION(BlueprintPure)
 | |
| 	static bool GetLevelBaseConfig(const FName& RowName, FBusyLevelBaseConfig& RowData);
 | |
| 
 | |
| 	UFUNCTION(BlueprintPure)
 | |
| 	static bool GetLevelItemConfig(const FName& RowName, FBusyLevelItemConfig& RowData);
 | |
| 
 | |
| 	UFUNCTION(BlueprintPure)
 | |
| 	static bool GetRoleConfig(const FName& RowName, FBusyRoleConfig& RowData);
 | |
| 
 | |
| 	UFUNCTION(BlueprintPure)
 | |
| 	static bool GetItemResourceConfig(const FName& RowName, FBusyLevelItemResourceConfig& RowData);
 | |
| 
 | |
| 	UFUNCTION(BlueprintPure)
 | |
| 	static bool GetLevelItemDescription(const FName& RowName, FBusyLevelItemDescription& RowData);
 | |
| 
 | |
| 	UFUNCTION(BlueprintPure)
 | |
| 	static bool GetHomelandItemDescription(const FName& RowName, FBusyHomelandItemDescription& RowData);
 | |
| 
 | |
| 	UFUNCTION(BlueprintPure)
 | |
| 	static bool GetItemDescription(const FName& RowName, FBusyItemDescription& RowData);
 | |
| 
 | |
| 	UFUNCTION(BlueprintPure)
 | |
| 	static bool GetCookMaterialStateConfig(const FName& RowName, FBusyCookMaterialStateConfig& RowData);
 | |
| 
 | |
| };
 |