LuckyRobotsUnreal/Source/Luckyrobots/Public/LuckyRobotsGameInstance.h

40 lines
991 B
C
Raw Normal View History

2025-03-30 11:46:50 +08:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Engine/GameInstance.h"
#include "SharedDef.h"
#include "LuckyRobotsGameInstance.generated.h"
2025-04-01 11:04:11 +08:00
class USIOJsonValue;
2025-03-30 11:46:50 +08:00
/**
*
*/
UCLASS()
class LUCKYROBOTS_API ULuckyRobotsGameInstance : public UGameInstance
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
UDataTable* RobotDataDataTable;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
UDataTable* LevelDataTable;
2025-03-30 11:46:50 +08:00
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
2025-04-01 11:04:11 +08:00
ERobotsName CurrentSelectRobot = ERobotsName::None;
2025-03-30 11:46:50 +08:00
UPROPERTY(EditAnywhere, BlueprintReadWrite)
2025-04-01 11:04:11 +08:00
ELevelEnum CurrentSelectLevel = ELevelEnum::None;
2025-03-30 11:46:50 +08:00
UPROPERTY(EditAnywhere, BlueprintReadWrite)
2025-04-01 11:04:11 +08:00
EQualityEnum CurrentSelectQuality = EQualityEnum::Epic;
2025-04-01 11:04:11 +08:00
public:
UFUNCTION(BlueprintImplementableEvent)
void DoGetDispatch(const FString& EventName, USIOJsonValue* EventData);
2025-03-30 11:46:50 +08:00
};