-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement GetModDependenciesAsync
- v2025.2
- v2024.11
- v2024.10
- v2024.9
- v2024.8
- v2024.7
- v2024.6
- v2024.5
- v2024.4
- v2024.3.1
- v2024.3
- v2024.2
- v2024.1
- v2023.11
- v2023.10
- v2023.8
- v2023.7.2
- v2023.7
- v2023.6
- v2023.5
- v2023.4
- v2023.3
- v2023.2
- v2023.1.1
- v2023.1
- v2.24.2306
- v2.23.2306
- v2.22.2124
- v2.21.2070
- v2.20.2048
- v2.19.1919
- v2.18.1908
- v2.17.1896
- v2.16.1792
- v2.15.1792
- v2.14.1380
- v2.13.1346
- v2.12.1345
- v2.11.1296
- v2.10.1192
- v2.9.1192
- v2.8.1183
- v2.7.1178
- v2.6.1176
- v2.5.1174
1 parent
cf58afc
commit 8ff5c26
Showing
13 changed files
with
477 additions
and
69 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
#include "Internal/ModioConvert.h" | ||
|
||
FORCEINLINE FModioModDependency ToUnreal(const Modio::ModDependency& In) | ||
{ | ||
FModioModDependency Out; | ||
Out.ModID = ToUnreal(In.ModID); | ||
Out.ModName = ToUnreal(In.ModName); | ||
return Out; | ||
} |
22 changes: 22 additions & 0 deletions
22
Source/Modio/Private/Libraries/ModioModDependenciesLibrary.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io> | ||
* | ||
* This file is part of the mod.io UE4 Plugin. | ||
* | ||
* Distributed under the MIT License. (See accompanying file LICENSE or | ||
* view online at <https://github.com/modio/modio-ue4/blob/main/LICENSE>) | ||
* | ||
*/ | ||
|
||
#include "Libraries/ModioModDependenciesLibrary.h" | ||
|
||
const TArray<FModioModDependency>& UModioModDependenciesLibrary::GetDependencies(const FModioModDependencyList& DependencyList) | ||
{ | ||
return DependencyList.InternalList; | ||
} | ||
|
||
const FModioPagedResult& UModioModDependenciesLibrary::GetPagedResult( | ||
const FModioModDependencyList& DependencyList) | ||
{ | ||
return DependencyList.PagedResult; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Source/Modio/Private/Types/ModioModDependencyListUImpl.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io> | ||
* | ||
* This file is part of the mod.io UE4 Plugin. | ||
* | ||
* Distributed under the MIT License. (See accompanying file LICENSE or | ||
* view online at <https://github.com/modio/modio-ue4/blob/main/LICENSE>) | ||
* | ||
*/ | ||
#include "Templates/UnrealTemplate.h" | ||
#include "Types/ModioModDependencyList.h" | ||
|
||
|
||
FModioOptionalModDependencyList::FModioOptionalModDependencyList(TOptional<FModioModDependencyList>&& ModDependencies) | ||
: Internal(MoveTemp(ModDependencies)) | ||
{} |
40 changes: 40 additions & 0 deletions
40
Source/Modio/Public/Libraries/ModioModDependenciesLibrary.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io> | ||
* | ||
* This file is part of the mod.io UE4 Plugin. | ||
* | ||
* Distributed under the MIT License. (See accompanying file LICENSE or | ||
* view online at <https://github.com/modio/modio-ue4/blob/main/LICENSE>) | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "Kismet/BlueprintFunctionLibrary.h" | ||
#include "Types/ModioModDependencyList.h" | ||
|
||
// clang-format off | ||
#include "ModioModDependenciesLibrary.generated.h" | ||
// clang-format on | ||
|
||
UCLASS() | ||
class UModioModDependenciesLibrary : public UBlueprintFunctionLibrary | ||
{ | ||
GENERATED_BODY() | ||
|
||
/** | ||
* Get the tags in a mod tag options list | ||
* @param ModTags | ||
* @return | ||
*/ | ||
UFUNCTION(BlueprintPure, Category = "mod.io|Utilities") | ||
static const TArray<FModioModDependency>& GetDependencies(const FModioModDependencyList& ModTags); | ||
|
||
/** | ||
* Get the paged result that contains information of the data returned | ||
* @param ModTags | ||
* @return | ||
*/ | ||
UFUNCTION(BlueprintPure, Category = "mod.io|Utilities") | ||
static const FModioPagedResult& GetPagedResult(const FModioModDependencyList& ModTags); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io> | ||
* | ||
* This file is part of the mod.io UE4 Plugin. | ||
* | ||
* Distributed under the MIT License. (See accompanying file LICENSE or | ||
* view online at <https://github.com/modio/modio-ue4/blob/main/LICENSE>) | ||
* | ||
*/ | ||
|
||
#pragma once | ||
#include "CoreMinimal.h" | ||
#include "Types/ModioCommonTypes.h" | ||
#include "Types/ModioPagedResult.h" | ||
#include "Containers/UnrealString.h" | ||
#include "Misc/Optional.h" | ||
|
||
#include "ModioModDependencyList.generated.h" | ||
|
||
/** | ||
* @brief Minimal data about a mod which is a dependency of another mod | ||
* @experimental | ||
*/ | ||
USTRUCT(BlueprintType) | ||
struct FModioModDependency | ||
{ | ||
GENERATED_BODY(); | ||
|
||
/** | ||
* @brief The ID of the dependency | ||
*/ | ||
UPROPERTY(BlueprintReadOnly) | ||
FModioModID ModID; | ||
|
||
/** | ||
* @brief The name of the dependency | ||
*/ | ||
UPROPERTY(BlueprintReadOnly) | ||
FString ModName; | ||
}; | ||
|
||
|
||
/** | ||
* @brief Paged list of mod dependencies | ||
* @experimental | ||
*/ | ||
USTRUCT(BlueprintType) | ||
struct MODIO_API FModioModDependencyList | ||
{ | ||
GENERATED_BODY(); | ||
|
||
UPROPERTY() | ||
FModioPagedResult PagedResult; | ||
|
||
UPROPERTY() | ||
TArray<FModioModDependency> InternalList; | ||
}; | ||
|
||
|
||
|
||
USTRUCT(BlueprintType) | ||
struct FModioOptionalModDependencyList | ||
{ | ||
GENERATED_BODY() | ||
|
||
FModioOptionalModDependencyList() = default; | ||
FModioOptionalModDependencyList(TOptional<FModioModDependencyList>&& ModDependencies); | ||
|
||
TOptional<FModioModDependencyList> Internal; | ||
}; |
Submodule NativeSDK
updated
14 files