-
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.
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
Oops, something went wrong.