From 823e123407888511a103bacd6e6fc3700250eefe Mon Sep 17 00:00:00 2001 From: Gerke Max Preussner Date: Fri, 17 Aug 2018 15:57:51 -0400 Subject: [PATCH] Modernized DonNavigatorInterface declaration to allow for Blueprint nativization. --- .../Classes/DonNavigatorInterface.h | 12 ++++++---- .../Private/DonNavigatorInterface.cpp | 24 ------------------- 2 files changed, 7 insertions(+), 29 deletions(-) delete mode 100644 Source/DonAINavigation/Private/DonNavigatorInterface.cpp diff --git a/Source/DonAINavigation/Classes/DonNavigatorInterface.h b/Source/DonAINavigation/Classes/DonNavigatorInterface.h index 7c46411..6cb14e3 100644 --- a/Source/DonAINavigation/Classes/DonNavigatorInterface.h +++ b/Source/DonAINavigation/Classes/DonNavigatorInterface.h @@ -16,18 +16,20 @@ #include "DonNavigatorInterface.generated.h" -UINTERFACE() -class DONAINAVIGATION_API UDonNavigator : public UInterface +UINTERFACE(MinimalAPI) +class UDonNavigator : public UInterface { - GENERATED_UINTERFACE_BODY() + GENERATED_BODY() }; struct FDonVoxelCollisionProfile; class DONAINAVIGATION_API IDonNavigator { - GENERATED_IINTERFACE_BODY() - + GENERATED_BODY() + +public: + // TBD - earlier this was meant to enforce that users of the API would provide minimum metadata for navigators which the system would then use in its calculations, // but this has since been sidelined to make it easier for new consumers of the system to rapidly get going. diff --git a/Source/DonAINavigation/Private/DonNavigatorInterface.cpp b/Source/DonAINavigation/Private/DonNavigatorInterface.cpp deleted file mode 100644 index 44376dc..0000000 --- a/Source/DonAINavigation/Private/DonNavigatorInterface.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// The MIT License(MIT) -// -// Copyright(c) 2015 Venugopalan Sreedharan -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), -// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and / or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions : -// -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -#pragma once - -#include "DonNavigatorInterface.h" -#include "DonAINavigationPrivatePCH.h" - - -UDonNavigator::UDonNavigator(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) -{ - -} \ No newline at end of file