Skip to content

Commit

Permalink
Classify "Editor Only"(using K2Node*) Classes.
Browse files Browse the repository at this point in the history
These are put in Editor Module.
  • Loading branch information
crssnky committed Sep 28, 2018
1 parent fe2bace commit a0ee49c
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 4 deletions.
1 change: 1 addition & 0 deletions Source/ProjectName/Private/UnrealMosquitto.cpp
Expand Up @@ -4,6 +4,7 @@
#include "UnrealMosquitto.h"

#include "RunnableThread.h"
#include "TimerManager.h"

#include <mosquitto.h>

Expand Down
1 change: 1 addition & 0 deletions Source/ProjectName/Public/UnrealMosquitto.h
Expand Up @@ -4,6 +4,7 @@

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "HAL/Runnable.h"

#include <mosquittopp.h>
#include <queue>
Expand Down
@@ -1,6 +1,6 @@
// Fill out your copyright notice in the Description page of Project Settings.

#include "ProjectName.h"
#include "UnrealMosquittoEditor.h"
#include "UnrealMosquittoRouter.h"
#include "UnrealMosquittoRoutingLibrary.h"

Expand Down
@@ -1,6 +1,6 @@
// Fill out your copyright notice in the Description page of Project Settings.

#include "ProjectName.h"
#include "UnrealMosquittoEditor.h"
#include "UnrealMosquittoRoutingLibrary.h"

#include <mosquitto.h>
Expand Down
Expand Up @@ -10,7 +10,7 @@
*
*/
UCLASS(BlueprintType, Blueprintable)
class PROJECTNAME_API UUnrealMosquittoRouter : public UK2Node_Switch
class UNREALMOSQUITTOEDITOR_API UUnrealMosquittoRouter : public UK2Node_Switch
{
GENERATED_BODY()

Expand Down
Expand Up @@ -10,7 +10,7 @@
*
*/
UCLASS()
class PROJECTNAME_API UUnrealMosquittoRoutingLibrary : public UBlueprintFunctionLibrary
class UNREALMOSQUITTOEDITOR_API UUnrealMosquittoRoutingLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()

Expand Down
20 changes: 20 additions & 0 deletions Source/UnrealMosquittoEditor/UnrealMosquittoEditor.Build.cs
@@ -0,0 +1,20 @@
using UnrealBuildTool;
using System.IO;

public class UnrealMosquittoEditor : ModuleRules
{
public UnrealMosquittoEditor(ReadOnlyTargetRules Target) : base(Target)
{

/** existing constructor code */
PublicDependencyModuleNames.AddRange(new string[] {
"Core",
"CoreUObject",
"Engine",
"ProjectName",
"BlueprintGraph"
});

PrivateDependencyModuleNames.AddRange(new string[] { });
}
}
6 changes: 6 additions & 0 deletions Source/UnrealMosquittoEditor/UnrealMosquittoEditor.cpp
@@ -0,0 +1,6 @@
// Fill out your copyright notice in the Description page of Project Settings.

#include "UnrealMosquittoEditor.h"
#include "Modules/ModuleManager.h"

IMPLEMENT_GAME_MODULE( FDefaultGameModuleImpl, UnrealMosquittoEditor);
6 changes: 6 additions & 0 deletions Source/UnrealMosquittoEditor/UnrealMosquittoEditor.h
@@ -0,0 +1,6 @@
// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"

1 comment on commit a0ee49c

@desotroyah
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you tell me what this is for?
Thx

Please sign in to comment.