Skip to content

Commit

Permalink
More packaging fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
muit committed Nov 30, 2019
1 parent 02ddbca commit 8592bec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Source/Actions/Public/Action.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#pragma once

#include <CoreMinimal.h>
#include <Engine/GameInstance.h>
#include <Engine/World.h>
#include <UObject/ObjectMacros.h>
#include <UObject/ScriptInterface.h>
#include <Tickable.h>
Expand Down
13 changes: 6 additions & 7 deletions Source/Actions/Public/ActionLibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

#pragma once

#include "Kismet/BlueprintFunctionLibrary.h"
#include <CoreMinimal.h>
#include <Kismet/BlueprintFunctionLibrary.h>

#include "Action.h"
#include "ActionLibrary.generated.h"

/**
*
*/

UCLASS()
class ACTIONS_API UActionLibrary : public UBlueprintFunctionLibrary
{
Expand All @@ -17,8 +17,7 @@ class ACTIONS_API UActionLibrary : public UBlueprintFunctionLibrary
public:

UFUNCTION(BlueprintCallable, Category = Action, meta = (DisplayName = "Create Action", BlueprintInternalUseOnly = "true", DefaultToSelf = "Owner", WorldContext = "Owner"))
static UAction* CreateAction(UObject* Owner, const TSubclassOf<class UAction> Type, bool bAutoActivate = false) {
return UAction::Create(Owner, Type, bAutoActivate);
static UAction* CreateAction(UObject* Owner, const TSubclassOf<UAction> Type, bool bAutoActivate = false) {
return UAction::Create(Owner, Type.Get(), bAutoActivate);
}

};
3 changes: 3 additions & 0 deletions Source/Actions/Public/ActionsSubsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

#pragma once

#include <CoreMinimal.h>
#include <Engine/GameInstance.h>
#include <Engine/World.h>
#include <Subsystems/GameInstanceSubsystem.h>
#include <Tickable.h>

Expand Down

0 comments on commit 8592bec

Please sign in to comment.