diff --git a/Content/Blueprint/Core/BP_3DtextHelp.uasset b/Content/Blueprint/Core/BP_3DtextHelp.uasset index 2e1479b1..8caa15f5 100644 Binary files a/Content/Blueprint/Core/BP_3DtextHelp.uasset and b/Content/Blueprint/Core/BP_3DtextHelp.uasset differ diff --git a/Content/Blueprint/Core/BP_NaviSplineCreator.uasset b/Content/Blueprint/Core/BP_NaviSplineCreator.uasset index 59e5850d..0450671d 100644 Binary files a/Content/Blueprint/Core/BP_NaviSplineCreator.uasset and b/Content/Blueprint/Core/BP_NaviSplineCreator.uasset differ diff --git a/Content/Blueprint/DATA/Enums/ESaveDataType.uasset b/Content/Blueprint/DATA/Enums/ESaveDataType.uasset deleted file mode 100644 index 7c4fe936..00000000 Binary files a/Content/Blueprint/DATA/Enums/ESaveDataType.uasset and /dev/null differ diff --git a/Content/Blueprint/Game/BP_LuckyGameinstanceMode.uasset b/Content/Blueprint/Game/BP_LuckyGameinstanceMode.uasset index 837b52fe..e8a4937d 100644 Binary files a/Content/Blueprint/Game/BP_LuckyGameinstanceMode.uasset and b/Content/Blueprint/Game/BP_LuckyGameinstanceMode.uasset differ diff --git a/Content/Blueprint/RobotPawnActors/BP_DroneRobot.uasset b/Content/Blueprint/RobotPawnActors/BP_DroneRobot.uasset index 3fc9db8a..31d1006c 100644 Binary files a/Content/Blueprint/RobotPawnActors/BP_DroneRobot.uasset and b/Content/Blueprint/RobotPawnActors/BP_DroneRobot.uasset differ diff --git a/Content/Blueprint/RobotPawnActors/BP_HumanoidRobot.uasset b/Content/Blueprint/RobotPawnActors/BP_HumanoidRobot.uasset index 8fe3928c..00de415d 100644 Binary files a/Content/Blueprint/RobotPawnActors/BP_HumanoidRobot.uasset and b/Content/Blueprint/RobotPawnActors/BP_HumanoidRobot.uasset differ diff --git a/Content/Blueprint/RobotPawnActors/BP_MujocoBostonDynamicsSpotWithArm.uasset b/Content/Blueprint/RobotPawnActors/BP_MujocoBostonDynamicsSpotWithArm.uasset index ffb9db48..4986c8b7 100644 Binary files a/Content/Blueprint/RobotPawnActors/BP_MujocoBostonDynamicsSpotWithArm.uasset and b/Content/Blueprint/RobotPawnActors/BP_MujocoBostonDynamicsSpotWithArm.uasset differ diff --git a/Content/Blueprint/RobotPawnActors/BP_MujocoUnitreeGo2.uasset b/Content/Blueprint/RobotPawnActors/BP_MujocoUnitreeGo2.uasset index 292291d9..193fe8ae 100644 Binary files a/Content/Blueprint/RobotPawnActors/BP_MujocoUnitreeGo2.uasset and b/Content/Blueprint/RobotPawnActors/BP_MujocoUnitreeGo2.uasset differ diff --git a/Content/Blueprint/RobotPawnActors/BP_PuralinkRobot.uasset b/Content/Blueprint/RobotPawnActors/BP_PuralinkRobot.uasset index 40c4f65c..c45b7491 100644 Binary files a/Content/Blueprint/RobotPawnActors/BP_PuralinkRobot.uasset and b/Content/Blueprint/RobotPawnActors/BP_PuralinkRobot.uasset differ diff --git a/Content/Blueprint/RobotPawnActors/BP_RevoluteRobot.uasset b/Content/Blueprint/RobotPawnActors/BP_RevoluteRobot.uasset index 657c383e..73b7d629 100644 Binary files a/Content/Blueprint/RobotPawnActors/BP_RevoluteRobot.uasset and b/Content/Blueprint/RobotPawnActors/BP_RevoluteRobot.uasset differ diff --git a/Content/Blueprint/RobotPawnActors/BP_WheeledRobot.uasset b/Content/Blueprint/RobotPawnActors/BP_WheeledRobot.uasset index c473488f..8f730a09 100644 Binary files a/Content/Blueprint/RobotPawnActors/BP_WheeledRobot.uasset and b/Content/Blueprint/RobotPawnActors/BP_WheeledRobot.uasset differ diff --git a/Content/Blueprint/RobotPawnActors/BP_mujokoArm.uasset b/Content/Blueprint/RobotPawnActors/BP_mujokoArm.uasset index 16498676..0736bdee 100644 Binary files a/Content/Blueprint/RobotPawnActors/BP_mujokoArm.uasset and b/Content/Blueprint/RobotPawnActors/BP_mujokoArm.uasset differ diff --git a/Content/Blueprint/RobotPawnActors/BP_mujokoStretch.uasset b/Content/Blueprint/RobotPawnActors/BP_mujokoStretch.uasset index 6cb66545..02480e8b 100644 Binary files a/Content/Blueprint/RobotPawnActors/BP_mujokoStretch.uasset and b/Content/Blueprint/RobotPawnActors/BP_mujokoStretch.uasset differ diff --git a/Content/Blueprint/component/BPC_Capture.uasset b/Content/Blueprint/component/BPC_Capture.uasset index 48ce311f..4f36563c 100644 Binary files a/Content/Blueprint/component/BPC_Capture.uasset and b/Content/Blueprint/component/BPC_Capture.uasset differ diff --git a/Content/Blueprint/component/BPC_DataTrasnfer.uasset b/Content/Blueprint/component/BPC_DataTrasnfer.uasset index 88243419..68dc2193 100644 Binary files a/Content/Blueprint/component/BPC_DataTrasnfer.uasset and b/Content/Blueprint/component/BPC_DataTrasnfer.uasset differ diff --git a/Content/Blueprint/component/BPC_NaviPoint.uasset b/Content/Blueprint/component/BPC_NaviPoint.uasset index 650fd656..57f25e4e 100644 Binary files a/Content/Blueprint/component/BPC_NaviPoint.uasset and b/Content/Blueprint/component/BPC_NaviPoint.uasset differ diff --git a/Content/Blueprint/oldRobotsBP/BP_DJI_DroneMovementBluePrint.uasset b/Content/Blueprint/oldRobotsBP/BP_DJI_DroneMovementBluePrint.uasset index f0c8bd09..5701dcc8 100644 Binary files a/Content/Blueprint/oldRobotsBP/BP_DJI_DroneMovementBluePrint.uasset and b/Content/Blueprint/oldRobotsBP/BP_DJI_DroneMovementBluePrint.uasset differ diff --git a/Content/Blueprint/oldRobotsBP/BP_WheeledRobot.uasset b/Content/Blueprint/oldRobotsBP/BP_WheeledRobot.uasset index 05c4ec43..113b04ff 100644 Binary files a/Content/Blueprint/oldRobotsBP/BP_WheeledRobot.uasset and b/Content/Blueprint/oldRobotsBP/BP_WheeledRobot.uasset differ diff --git a/Content/Blueprint/vehicle/StretchRobot_vehicle_BP.uasset b/Content/Blueprint/vehicle/StretchRobot_vehicle_BP.uasset index bb368a80..7fa0f1a6 100644 Binary files a/Content/Blueprint/vehicle/StretchRobot_vehicle_BP.uasset and b/Content/Blueprint/vehicle/StretchRobot_vehicle_BP.uasset differ diff --git a/Content/GameBP/BP_LuckyRobotsLibrary.uasset b/Content/GameBP/BP_LuckyRobotsLibrary.uasset new file mode 100644 index 00000000..115d6089 Binary files /dev/null and b/Content/GameBP/BP_LuckyRobotsLibrary.uasset differ diff --git a/Content/IanDevFolder/SK_Ik_RobotArm_CtrlRig.uasset b/Content/IanDevFolder/SK_Ik_RobotArm_CtrlRig.uasset index 28321ed3..6160f557 100644 Binary files a/Content/IanDevFolder/SK_Ik_RobotArm_CtrlRig.uasset and b/Content/IanDevFolder/SK_Ik_RobotArm_CtrlRig.uasset differ diff --git a/Content/Vehicles/OffroadCar/Offroad_CtrlRig.uasset b/Content/Vehicles/OffroadCar/Offroad_CtrlRig.uasset index e717222c..548134f2 100644 Binary files a/Content/Vehicles/OffroadCar/Offroad_CtrlRig.uasset and b/Content/Vehicles/OffroadCar/Offroad_CtrlRig.uasset differ diff --git a/Content/Vehicles/SportsCar/SportsCar_CtrlRig.uasset b/Content/Vehicles/SportsCar/SportsCar_CtrlRig.uasset index 360470cd..5afce918 100644 Binary files a/Content/Vehicles/SportsCar/SportsCar_CtrlRig.uasset and b/Content/Vehicles/SportsCar/SportsCar_CtrlRig.uasset differ diff --git a/Content/luckyBot/Luckywidget/ChildItems/WB_GrabAndPull.uasset b/Content/luckyBot/Luckywidget/ChildItems/WB_GrabAndPull.uasset index 72d75bc1..7fa43192 100644 Binary files a/Content/luckyBot/Luckywidget/ChildItems/WB_GrabAndPull.uasset and b/Content/luckyBot/Luckywidget/ChildItems/WB_GrabAndPull.uasset differ diff --git a/Content/luckyBot/Luckywidget/ChildItems/WB_NavigateSimpleEnvironments.uasset b/Content/luckyBot/Luckywidget/ChildItems/WB_NavigateSimpleEnvironments.uasset index 05fde612..f82b14b0 100644 Binary files a/Content/luckyBot/Luckywidget/ChildItems/WB_NavigateSimpleEnvironments.uasset and b/Content/luckyBot/Luckywidget/ChildItems/WB_NavigateSimpleEnvironments.uasset differ diff --git a/Content/luckyBot/Luckywidget/ChildItems/WB_ObjectsListBox.uasset b/Content/luckyBot/Luckywidget/ChildItems/WB_ObjectsListBox.uasset index 4f452600..2e6e0ead 100644 Binary files a/Content/luckyBot/Luckywidget/ChildItems/WB_ObjectsListBox.uasset and b/Content/luckyBot/Luckywidget/ChildItems/WB_ObjectsListBox.uasset differ diff --git a/Content/luckyBot/Luckywidget/ChildItems/WB_ObjectsListItem.uasset b/Content/luckyBot/Luckywidget/ChildItems/WB_ObjectsListItem.uasset index 5933cb6c..80ab0621 100644 Binary files a/Content/luckyBot/Luckywidget/ChildItems/WB_ObjectsListItem.uasset and b/Content/luckyBot/Luckywidget/ChildItems/WB_ObjectsListItem.uasset differ diff --git a/Content/luckyBot/Luckywidget/ChildItems/WB_PickAndPlace.uasset b/Content/luckyBot/Luckywidget/ChildItems/WB_PickAndPlace.uasset index 5b5ee0f9..6d2ac369 100644 Binary files a/Content/luckyBot/Luckywidget/ChildItems/WB_PickAndPlace.uasset and b/Content/luckyBot/Luckywidget/ChildItems/WB_PickAndPlace.uasset differ diff --git a/Content/luckyBot/Luckywidget/ChildItems/WB_SimplePick.uasset b/Content/luckyBot/Luckywidget/ChildItems/WB_SimplePick.uasset index 95617aea..c8e71c58 100644 Binary files a/Content/luckyBot/Luckywidget/ChildItems/WB_SimplePick.uasset and b/Content/luckyBot/Luckywidget/ChildItems/WB_SimplePick.uasset differ diff --git a/Content/luckyBot/Luckywidget/ChildItems/WB_SimplePlace.uasset b/Content/luckyBot/Luckywidget/ChildItems/WB_SimplePlace.uasset index c0480cc5..597ddbb6 100644 Binary files a/Content/luckyBot/Luckywidget/ChildItems/WB_SimplePlace.uasset and b/Content/luckyBot/Luckywidget/ChildItems/WB_SimplePlace.uasset differ diff --git a/Content/luckyBot/Luckywidget/ChildItems/WB_TaskListBox.uasset b/Content/luckyBot/Luckywidget/ChildItems/WB_TaskListBox.uasset index 401b0033..c16485f2 100644 Binary files a/Content/luckyBot/Luckywidget/ChildItems/WB_TaskListBox.uasset and b/Content/luckyBot/Luckywidget/ChildItems/WB_TaskListBox.uasset differ diff --git a/Content/luckyBot/Luckywidget/WB_GameWidget.uasset b/Content/luckyBot/Luckywidget/WB_GameWidget.uasset index 239d0fa5..d9672c3d 100644 Binary files a/Content/luckyBot/Luckywidget/WB_GameWidget.uasset and b/Content/luckyBot/Luckywidget/WB_GameWidget.uasset differ diff --git a/Content/luckyBot/Luckywidget/WB_MainScreen.uasset b/Content/luckyBot/Luckywidget/WB_MainScreen.uasset index f4c1e9fe..90c35a4b 100644 Binary files a/Content/luckyBot/Luckywidget/WB_MainScreen.uasset and b/Content/luckyBot/Luckywidget/WB_MainScreen.uasset differ diff --git a/Content/luckyBot/Luckywidget/menu/WB_AllObjects.uasset b/Content/luckyBot/Luckywidget/menu/WB_AllObjects.uasset index 796bfa88..231756e9 100644 Binary files a/Content/luckyBot/Luckywidget/menu/WB_AllObjects.uasset and b/Content/luckyBot/Luckywidget/menu/WB_AllObjects.uasset differ diff --git a/Content/luckyBot/Luckywidget/menu/WB_CaptureSettings.uasset b/Content/luckyBot/Luckywidget/menu/WB_CaptureSettings.uasset index 4d9ec206..25b14d77 100644 Binary files a/Content/luckyBot/Luckywidget/menu/WB_CaptureSettings.uasset and b/Content/luckyBot/Luckywidget/menu/WB_CaptureSettings.uasset differ diff --git a/Content/luckyBot/Luckywidget/menu/WB_SelectGoalMenu.uasset b/Content/luckyBot/Luckywidget/menu/WB_SelectGoalMenu.uasset index 9c106a09..ec3c1993 100644 Binary files a/Content/luckyBot/Luckywidget/menu/WB_SelectGoalMenu.uasset and b/Content/luckyBot/Luckywidget/menu/WB_SelectGoalMenu.uasset differ diff --git a/Content/luckyBot/SkeletalMesh/LuckyNewMesh/luckyRobot_New_CtrlRig.uasset b/Content/luckyBot/SkeletalMesh/LuckyNewMesh/luckyRobot_New_CtrlRig.uasset index ad6e9aa4..7018c8d2 100644 Binary files a/Content/luckyBot/SkeletalMesh/LuckyNewMesh/luckyRobot_New_CtrlRig.uasset and b/Content/luckyBot/SkeletalMesh/LuckyNewMesh/luckyRobot_New_CtrlRig.uasset differ diff --git a/Content/luckyBot/SkeletalMesh/Unitree/go2/Go2_CtrlRig.uasset b/Content/luckyBot/SkeletalMesh/Unitree/go2/Go2_CtrlRig.uasset index 8a3f6820..60839472 100644 Binary files a/Content/luckyBot/SkeletalMesh/Unitree/go2/Go2_CtrlRig.uasset and b/Content/luckyBot/SkeletalMesh/Unitree/go2/Go2_CtrlRig.uasset differ diff --git a/Content/luckyBot/SkeletalMesh/Unitree/go2/Go2_CtrlRig1.uasset b/Content/luckyBot/SkeletalMesh/Unitree/go2/Go2_CtrlRig1.uasset index 9648d4d9..34ac276a 100644 Binary files a/Content/luckyBot/SkeletalMesh/Unitree/go2/Go2_CtrlRig1.uasset and b/Content/luckyBot/SkeletalMesh/Unitree/go2/Go2_CtrlRig1.uasset differ diff --git a/Content/luckyBot/SkeletalMesh/luckyBOt_CtrlRig.uasset b/Content/luckyBot/SkeletalMesh/luckyBOt_CtrlRig.uasset index 43435310..20446016 100644 Binary files a/Content/luckyBot/SkeletalMesh/luckyBOt_CtrlRig.uasset and b/Content/luckyBot/SkeletalMesh/luckyBOt_CtrlRig.uasset differ diff --git a/Content/luckyBot/SkeletalMesh/lucky_e_vehicle_arm_CtrlRig.uasset b/Content/luckyBot/SkeletalMesh/lucky_e_vehicle_arm_CtrlRig.uasset index ec7fb240..46dcac3d 100644 Binary files a/Content/luckyBot/SkeletalMesh/lucky_e_vehicle_arm_CtrlRig.uasset and b/Content/luckyBot/SkeletalMesh/lucky_e_vehicle_arm_CtrlRig.uasset differ diff --git a/Content/luckyBot/SkeletalMesh/testarm/Robot_Arm_Rigged_CtrlRig.uasset b/Content/luckyBot/SkeletalMesh/testarm/Robot_Arm_Rigged_CtrlRig.uasset index 805321cf..1b4f2a03 100644 Binary files a/Content/luckyBot/SkeletalMesh/testarm/Robot_Arm_Rigged_CtrlRig.uasset and b/Content/luckyBot/SkeletalMesh/testarm/Robot_Arm_Rigged_CtrlRig.uasset differ diff --git a/Content/luckyBot/StretchRobot/SkeletalMesh/stretch_robot_arm_CtrlRig.uasset b/Content/luckyBot/StretchRobot/SkeletalMesh/stretch_robot_arm_CtrlRig.uasset index 9c16e9d0..9465fc49 100644 Binary files a/Content/luckyBot/StretchRobot/SkeletalMesh/stretch_robot_arm_CtrlRig.uasset and b/Content/luckyBot/StretchRobot/SkeletalMesh/stretch_robot_arm_CtrlRig.uasset differ diff --git a/Content/luckyBot/Unitree_G1/SM_unitreeG1_CtrlRig.uasset b/Content/luckyBot/Unitree_G1/SM_unitreeG1_CtrlRig.uasset index 53a60c70..406f5974 100644 Binary files a/Content/luckyBot/Unitree_G1/SM_unitreeG1_CtrlRig.uasset and b/Content/luckyBot/Unitree_G1/SM_unitreeG1_CtrlRig.uasset differ diff --git a/Content/luckyBot/Unitree_G1/stretch_robot_V1_nohand_CtrlRig.uasset b/Content/luckyBot/Unitree_G1/stretch_robot_V1_nohand_CtrlRig.uasset index f798969d..11803bf1 100644 Binary files a/Content/luckyBot/Unitree_G1/stretch_robot_V1_nohand_CtrlRig.uasset and b/Content/luckyBot/Unitree_G1/stretch_robot_V1_nohand_CtrlRig.uasset differ diff --git a/Source/Luckyrobots/Private/GameUserWidget.cpp b/Source/Luckyrobots/Private/GameUserWidget.cpp new file mode 100644 index 00000000..f73027f7 --- /dev/null +++ b/Source/Luckyrobots/Private/GameUserWidget.cpp @@ -0,0 +1,17 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "GameUserWidget.h" +#include "LuckyRobotsFunctionLibrary.h" +#include "LuckyRobotsGameInstance.h" + +void UGameUserWidget::NativeConstruct() +{ + Super::NativeConstruct(); + + ULuckyRobotsGameInstance* LuckyRobotsGameInstance = ULuckyRobotsFunctionLibrary::GetLuckyRobotsGameInstance(this); + if (LuckyRobotsGameInstance) + { + LuckyRobotsGameInstance->GameUserWidget = this; + } +} \ No newline at end of file diff --git a/Source/Luckyrobots/Private/LuckyRobotsGameInstance.cpp b/Source/Luckyrobots/Private/LuckyRobotsGameInstance.cpp index 2dbcb649..51b006b7 100644 --- a/Source/Luckyrobots/Private/LuckyRobotsGameInstance.cpp +++ b/Source/Luckyrobots/Private/LuckyRobotsGameInstance.cpp @@ -2,6 +2,42 @@ #include "LuckyRobotsGameInstance.h" +#include "LuckyRobotsGameState.h" +#include "Kismet/GameplayStatics.h" +#include "GameUserWidget.h" + +void ULuckyRobotsGameInstance::DoSendMessage(FString SendValue) +{ + ALuckyRobotsGameState* LuckyRobotsGameState = Cast(UGameplayStatics::GetGameState(this)); + if (LuckyRobotsGameState) + { + LuckyRobotsGameState->DoSendMessage(SendValue); + } + + DoLogItemAdd("Receive", SendValue, 0); +} + +void ULuckyRobotsGameInstance::DoLogItemAdd(FString Topic, FString MsgText, int Type) +{ + if (GameUserWidget) + { + GameUserWidget->DoLogItemAdd(Topic, MsgText, Type); + } +} + +void ULuckyRobotsGameInstance::SwitchGamePaused() +{ + UGameplayStatics::SetGamePaused(this, !UGameplayStatics::IsGamePaused(this)); + + if (UGameplayStatics::IsGamePaused(this)) + { + UKismetSystemLibrary::ExecuteConsoleCommand(this, "r.SceneRendering 0"); + } + else + { + UKismetSystemLibrary::ExecuteConsoleCommand(this, "r.SceneRendering 1"); + } +} void ULuckyRobotsGameInstance::ClearTaskList() { @@ -79,4 +115,21 @@ void ULuckyRobotsGameInstance::ReSetTaskList() TArray ULuckyRobotsGameInstance::GetTaskList() { return TaskList; -} \ No newline at end of file +} + +void ULuckyRobotsGameInstance::DoSetTempTaskValueChange(bool IsClear) +{ + if (IsClear) + { + ClearTaskList(); + } + else + { + AddTask(TempTask); + } + + if (GameUserWidget) + { + GameUserWidget->DoRefreshListView(); + } +} diff --git a/Source/Luckyrobots/Public/GameUserWidget.h b/Source/Luckyrobots/Public/GameUserWidget.h new file mode 100644 index 00000000..e8436a52 --- /dev/null +++ b/Source/Luckyrobots/Public/GameUserWidget.h @@ -0,0 +1,26 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "Blueprint/UserWidget.h" +#include "GameUserWidget.generated.h" + +/** + * + */ +UCLASS() +class LUCKYROBOTS_API UGameUserWidget : public UUserWidget +{ + GENERATED_BODY() + +protected: + virtual void NativeConstruct(); + +public: + UFUNCTION(BlueprintImplementableEvent) + void DoLogItemAdd(const FString& Topic, const FString& MsgText,int Type); + + UFUNCTION(BlueprintImplementableEvent) + void DoRefreshListView(); +}; diff --git a/Source/Luckyrobots/Public/LuckyRobotsGameInstance.h b/Source/Luckyrobots/Public/LuckyRobotsGameInstance.h index 2f517383..cc635968 100644 --- a/Source/Luckyrobots/Public/LuckyRobotsGameInstance.h +++ b/Source/Luckyrobots/Public/LuckyRobotsGameInstance.h @@ -8,6 +8,7 @@ #include "LuckyRobotsGameInstance.generated.h" class USIOJsonValue; +class UGameUserWidget; /** * */ @@ -39,10 +40,23 @@ public: UPROPERTY(EditAnywhere, BlueprintReadWrite) FGoalsTaskData TempTask; -public: - UFUNCTION(BlueprintImplementableEvent) - void DoGetDispatch(const FString& EventName, USIOJsonValue* EventData); + UPROPERTY(EditAnywhere, BlueprintReadWrite) + UGameUserWidget* GameUserWidget; + UPROPERTY(EditAnywhere, BlueprintReadWrite) + TArray LuckyCodeList; + +public: + UFUNCTION(BlueprintCallable) + void DoSendMessage(FString SendValue); + + UFUNCTION(BlueprintCallable) + void DoLogItemAdd(FString Topic, FString MsgText, int Type); + + UFUNCTION(BlueprintCallable) + void SwitchGamePaused(); + +public: UFUNCTION(BlueprintCallable) void ClearTaskList(); @@ -69,4 +83,11 @@ public: UFUNCTION(BlueprintPure) TArray GetTaskList(); + + UFUNCTION(BlueprintCallable) + void DoSetTempTaskValueChange(bool IsClear); + +public: + UFUNCTION(BlueprintImplementableEvent) + void DoGetDispatch(const FString& EventName, USIOJsonValue* EventData); }; diff --git a/Source/Luckyrobots/Public/SharedDef.h b/Source/Luckyrobots/Public/SharedDef.h index 6ab9acd4..511290be 100644 --- a/Source/Luckyrobots/Public/SharedDef.h +++ b/Source/Luckyrobots/Public/SharedDef.h @@ -98,6 +98,17 @@ enum class EGoalType : uint8 Place UMETA(DisplayName = "Place") }; +UENUM(BlueprintType) +enum class ESaveDataType : uint8 +{ + file UMETA(DisplayName = "file"), + webserver UMETA(DisplayName = "webserver"), + http UMETA(DisplayName = "http"), + debug UMETA(DisplayName = "debug"), + none UMETA(DisplayName = "none") +}; + + USTRUCT(BlueprintType) struct FRobotData : public FTableRowBase { @@ -358,3 +369,21 @@ public: UPROPERTY(EditAnywhere, BlueprintReadWrite) bool bIsActive; }; + +USTRUCT(BlueprintType) +struct FLuckyCode : public FTableRowBase +{ + GENERATED_BODY() +public: + UPROPERTY(EditAnywhere, BlueprintReadWrite) + int ID; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString Code; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) + float Time; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) + bool bCallback; +};