From 10383339cc398208b485e63bc46a181ef45d5fc7 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Thu, 3 Aug 2017 15:58:34 -0700 Subject: [PATCH] Create unreal template app --- examples/unrealstatus/.gitignore | 75 +++++++++++++++++++ .../unrealstatus/Config/DefaultEditor.ini | 0 .../unrealstatus/Config/DefaultEngine.ini | 9 +++ examples/unrealstatus/Config/DefaultGame.ini | 2 + .../Source/unrealstatus.Target.cs | 14 ++++ .../Source/unrealstatus/unrealstatus.Build.cs | 23 ++++++ .../Source/unrealstatus/unrealstatus.cpp | 6 ++ .../Source/unrealstatus/unrealstatus.h | 6 ++ .../unrealstatus/unrealstatusGameModeBase.cpp | 7 ++ .../unrealstatus/unrealstatusGameModeBase.h | 20 +++++ .../Source/unrealstatusEditor.Target.cs | 14 ++++ examples/unrealstatus/unrealstatus.uproject | 13 ++++ 12 files changed, 189 insertions(+) create mode 100644 examples/unrealstatus/.gitignore create mode 100644 examples/unrealstatus/Config/DefaultEditor.ini create mode 100644 examples/unrealstatus/Config/DefaultEngine.ini create mode 100644 examples/unrealstatus/Config/DefaultGame.ini create mode 100644 examples/unrealstatus/Source/unrealstatus.Target.cs create mode 100644 examples/unrealstatus/Source/unrealstatus/unrealstatus.Build.cs create mode 100644 examples/unrealstatus/Source/unrealstatus/unrealstatus.cpp create mode 100644 examples/unrealstatus/Source/unrealstatus/unrealstatus.h create mode 100644 examples/unrealstatus/Source/unrealstatus/unrealstatusGameModeBase.cpp create mode 100644 examples/unrealstatus/Source/unrealstatus/unrealstatusGameModeBase.h create mode 100644 examples/unrealstatus/Source/unrealstatusEditor.Target.cs create mode 100644 examples/unrealstatus/unrealstatus.uproject diff --git a/examples/unrealstatus/.gitignore b/examples/unrealstatus/.gitignore new file mode 100644 index 0000000..23f9ef9 --- /dev/null +++ b/examples/unrealstatus/.gitignore @@ -0,0 +1,75 @@ +# Visual Studio 2015 user specific files +.vs/ + +# Visual Studio 2015 database file +*.VC.db + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app +*.ipa + +# These project files can be generated by the engine +*.xcodeproj +*.xcworkspace +*.sln +*.suo +*.opensdf +*.sdf +*.VC.db +*.VC.opendb + +# Precompiled Assets +SourceArt/**/*.png +SourceArt/**/*.tga + +# Binary Files +Binaries/* + +# Builds +Build/* + +# Whitelist PakBlacklist-.txt files +!Build/*/ +Build/*/** +!Build/*/PakBlacklist*.txt + +# Don't ignore icon files in Build +!Build/**/*.ico + +# Built data for maps +*_BuiltData.uasset + +# Configuration files generated by the Editor +Saved/* + +# Compiled source files for the engine to use +Intermediate/* + +# Cache files for the editor to use +DerivedDataCache/* \ No newline at end of file diff --git a/examples/unrealstatus/Config/DefaultEditor.ini b/examples/unrealstatus/Config/DefaultEditor.ini new file mode 100644 index 0000000..e69de29 diff --git a/examples/unrealstatus/Config/DefaultEngine.ini b/examples/unrealstatus/Config/DefaultEngine.ini new file mode 100644 index 0000000..244a1d1 --- /dev/null +++ b/examples/unrealstatus/Config/DefaultEngine.ini @@ -0,0 +1,9 @@ +[URL] + +[/Script/HardwareTargeting.HardwareTargetingSettings] +TargetedHardwareClass=Desktop +AppliedTargetedHardwareClass=Desktop +DefaultGraphicsPerformance=Maximum +AppliedDefaultGraphicsPerformance=Maximum + + diff --git a/examples/unrealstatus/Config/DefaultGame.ini b/examples/unrealstatus/Config/DefaultGame.ini new file mode 100644 index 0000000..4f56954 --- /dev/null +++ b/examples/unrealstatus/Config/DefaultGame.ini @@ -0,0 +1,2 @@ +[/Script/EngineSettings.GeneralProjectSettings] +ProjectID=E5977A24492699DF20B8ADBF736AF6C6 diff --git a/examples/unrealstatus/Source/unrealstatus.Target.cs b/examples/unrealstatus/Source/unrealstatus.Target.cs new file mode 100644 index 0000000..0c7c3c8 --- /dev/null +++ b/examples/unrealstatus/Source/unrealstatus.Target.cs @@ -0,0 +1,14 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +using UnrealBuildTool; +using System.Collections.Generic; + +public class unrealstatusTarget : TargetRules +{ + public unrealstatusTarget(TargetInfo Target) : base(Target) + { + Type = TargetType.Game; + + ExtraModuleNames.AddRange( new string[] { "unrealstatus" } ); + } +} diff --git a/examples/unrealstatus/Source/unrealstatus/unrealstatus.Build.cs b/examples/unrealstatus/Source/unrealstatus/unrealstatus.Build.cs new file mode 100644 index 0000000..9560370 --- /dev/null +++ b/examples/unrealstatus/Source/unrealstatus/unrealstatus.Build.cs @@ -0,0 +1,23 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +using UnrealBuildTool; + +public class unrealstatus : ModuleRules +{ + public unrealstatus(ReadOnlyTargetRules Target) : base(Target) + { + PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; + + PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" }); + + PrivateDependencyModuleNames.AddRange(new string[] { }); + + // Uncomment if you are using Slate UI + // PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" }); + + // Uncomment if you are using online features + // PrivateDependencyModuleNames.Add("OnlineSubsystem"); + + // To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true + } +} diff --git a/examples/unrealstatus/Source/unrealstatus/unrealstatus.cpp b/examples/unrealstatus/Source/unrealstatus/unrealstatus.cpp new file mode 100644 index 0000000..c5b1746 --- /dev/null +++ b/examples/unrealstatus/Source/unrealstatus/unrealstatus.cpp @@ -0,0 +1,6 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#include "unrealstatus.h" +#include "Modules/ModuleManager.h" + +IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, unrealstatus, "unrealstatus" ); diff --git a/examples/unrealstatus/Source/unrealstatus/unrealstatus.h b/examples/unrealstatus/Source/unrealstatus/unrealstatus.h new file mode 100644 index 0000000..90aad9e --- /dev/null +++ b/examples/unrealstatus/Source/unrealstatus/unrealstatus.h @@ -0,0 +1,6 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" + diff --git a/examples/unrealstatus/Source/unrealstatus/unrealstatusGameModeBase.cpp b/examples/unrealstatus/Source/unrealstatus/unrealstatusGameModeBase.cpp new file mode 100644 index 0000000..bdeb26a --- /dev/null +++ b/examples/unrealstatus/Source/unrealstatus/unrealstatusGameModeBase.cpp @@ -0,0 +1,7 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#include "unrealstatusGameModeBase.h" + + + + diff --git a/examples/unrealstatus/Source/unrealstatus/unrealstatusGameModeBase.h b/examples/unrealstatus/Source/unrealstatus/unrealstatusGameModeBase.h new file mode 100644 index 0000000..c478465 --- /dev/null +++ b/examples/unrealstatus/Source/unrealstatus/unrealstatusGameModeBase.h @@ -0,0 +1,20 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/GameModeBase.h" +#include "unrealstatusGameModeBase.generated.h" + +/** + * + */ +UCLASS() +class UNREALSTATUS_API AunrealstatusGameModeBase : public AGameModeBase +{ + GENERATED_BODY() + + + + +}; diff --git a/examples/unrealstatus/Source/unrealstatusEditor.Target.cs b/examples/unrealstatus/Source/unrealstatusEditor.Target.cs new file mode 100644 index 0000000..2e8ad02 --- /dev/null +++ b/examples/unrealstatus/Source/unrealstatusEditor.Target.cs @@ -0,0 +1,14 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +using UnrealBuildTool; +using System.Collections.Generic; + +public class unrealstatusEditorTarget : TargetRules +{ + public unrealstatusEditorTarget(TargetInfo Target) : base(Target) + { + Type = TargetType.Editor; + + ExtraModuleNames.AddRange( new string[] { "unrealstatus" } ); + } +} diff --git a/examples/unrealstatus/unrealstatus.uproject b/examples/unrealstatus/unrealstatus.uproject new file mode 100644 index 0000000..2244f68 --- /dev/null +++ b/examples/unrealstatus/unrealstatus.uproject @@ -0,0 +1,13 @@ +{ + "FileVersion": 3, + "EngineAssociation": "4.16", + "Category": "", + "Description": "", + "Modules": [ + { + "Name": "unrealstatus", + "Type": "Runtime", + "LoadingPhase": "Default" + } + ] +} \ No newline at end of file