diff --git a/README.md b/README.md index a7a4c09..84712e2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# UnrealFixedPoint +# UnrealFixedMath A fixed point math library for Unreal Engine. diff --git a/Source/UnrealFixedPoint/Private/Fixed.cpp b/Source/UnrealFixedMath/Private/Fixed.cpp similarity index 100% rename from Source/UnrealFixedPoint/Private/Fixed.cpp rename to Source/UnrealFixedMath/Private/Fixed.cpp diff --git a/Source/UnrealFixedPoint/Private/UnrealFixedPoint.cpp b/Source/UnrealFixedMath/Private/UnrealFixedMath.cpp similarity index 62% rename from Source/UnrealFixedPoint/Private/UnrealFixedPoint.cpp rename to Source/UnrealFixedMath/Private/UnrealFixedMath.cpp index 8032c4e..3c04e05 100644 --- a/Source/UnrealFixedPoint/Private/UnrealFixedPoint.cpp +++ b/Source/UnrealFixedMath/Private/UnrealFixedMath.cpp @@ -1,16 +1,16 @@ // Copyright Epic Games, Inc. All Rights Reserved. -#include "UnrealFixedPoint.h" +#include "UnrealFixedMath.h" -#define LOCTEXT_NAMESPACE "FUnrealFixedPointModule" +#define LOCTEXT_NAMESPACE "FUnrealFixedMathModule" -void FUnrealFixedPointModule::StartupModule() +void FUnrealFixedMathModule::StartupModule() { // This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module } -void FUnrealFixedPointModule::ShutdownModule() +void FUnrealFixedMathModule::ShutdownModule() { // This function may be called during shutdown to clean up your module. For modules that support dynamic reloading, // we call this function before unloading the module. @@ -19,4 +19,4 @@ void FUnrealFixedPointModule::ShutdownModule() #undef LOCTEXT_NAMESPACE -IMPLEMENT_MODULE(FUnrealFixedPointModule, UnrealFixedPoint) \ No newline at end of file +IMPLEMENT_MODULE(FUnrealFixedMathModule, UnrealFixedMath) \ No newline at end of file diff --git a/Source/UnrealFixedMath/Private/UnrealFixedMathBPLibrary.cpp b/Source/UnrealFixedMath/Private/UnrealFixedMathBPLibrary.cpp new file mode 100644 index 0000000..0da8337 --- /dev/null +++ b/Source/UnrealFixedMath/Private/UnrealFixedMathBPLibrary.cpp @@ -0,0 +1,16 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +#include "UnrealFixedMathBPLibrary.h" +#include "UnrealFixedMath.h" + +UUnrealFixedMathBPLibrary::UUnrealFixedMathBPLibrary(const FObjectInitializer& ObjectInitializer) +: Super(ObjectInitializer) +{ + +} + +float UUnrealFixedMathBPLibrary::UnrealFixedMathSampleFunction(float Param) +{ + return -1; +} + diff --git a/Source/UnrealFixedPoint/Public/Fixed.h b/Source/UnrealFixedMath/Public/Fixed.h similarity index 95% rename from Source/UnrealFixedPoint/Public/Fixed.h rename to Source/UnrealFixedMath/Public/Fixed.h index 299eb86..69cb6e3 100644 --- a/Source/UnrealFixedPoint/Public/Fixed.h +++ b/Source/UnrealFixedMath/Public/Fixed.h @@ -1,4 +1,4 @@ -// UnrealFixedPoint Copyright Kevin Poretti +// UnrealFixedMath Copyright Kevin Poretti #pragma once @@ -9,7 +9,7 @@ * */ USTRUCT(BlueprintType) -struct UNREALFIXEDPOINT_API FFixed +struct UNREALFIXEDMATH_API FFixed { GENERATED_BODY() diff --git a/Source/UnrealFixedPoint/Public/UnrealFixedPoint.h b/Source/UnrealFixedMath/Public/UnrealFixedMath.h similarity index 80% rename from Source/UnrealFixedPoint/Public/UnrealFixedPoint.h rename to Source/UnrealFixedMath/Public/UnrealFixedMath.h index e3f8baa..eea87e3 100644 --- a/Source/UnrealFixedPoint/Public/UnrealFixedPoint.h +++ b/Source/UnrealFixedMath/Public/UnrealFixedMath.h @@ -4,7 +4,7 @@ #include "Modules/ModuleManager.h" -class FUnrealFixedPointModule : public IModuleInterface +class FUnrealFixedMathModule : public IModuleInterface { public: diff --git a/Source/UnrealFixedPoint/Public/UnrealFixedPointBPLibrary.h b/Source/UnrealFixedMath/Public/UnrealFixedMathBPLibrary.h similarity index 83% rename from Source/UnrealFixedPoint/Public/UnrealFixedPointBPLibrary.h rename to Source/UnrealFixedMath/Public/UnrealFixedMathBPLibrary.h index 27ce9ef..895cc39 100644 --- a/Source/UnrealFixedPoint/Public/UnrealFixedPointBPLibrary.h +++ b/Source/UnrealFixedMath/Public/UnrealFixedMathBPLibrary.h @@ -3,7 +3,7 @@ #pragma once #include "Kismet/BlueprintFunctionLibrary.h" -#include "UnrealFixedPointBPLibrary.generated.h" +#include "UnrealFixedMathBPLibrary.generated.h" /* * Function library class. @@ -23,10 +23,10 @@ * https://wiki.unrealengine.com/Custom_Blueprint_Node_Creation */ UCLASS() -class UUnrealFixedPointBPLibrary : public UBlueprintFunctionLibrary +class UUnrealFixedMathBPLibrary : public UBlueprintFunctionLibrary { GENERATED_UCLASS_BODY() - UFUNCTION(BlueprintCallable, meta = (DisplayName = "Execute Sample function", Keywords = "UnrealFixedPoint sample test testing"), Category = "UnrealFixedPointTesting") - static float UnrealFixedPointSampleFunction(float Param); + UFUNCTION(BlueprintCallable, meta = (DisplayName = "Execute Sample function", Keywords = "UnrealFixedMath sample test testing"), Category = "UnrealFixedMathTesting") + static float UnrealFixedMathSampleFunction(float Param); }; diff --git a/Source/UnrealFixedPoint/UnrealFixedPoint.Build.cs b/Source/UnrealFixedMath/UnrealFixedMath.Build.cs similarity index 84% rename from Source/UnrealFixedPoint/UnrealFixedPoint.Build.cs rename to Source/UnrealFixedMath/UnrealFixedMath.Build.cs index 34f1acb..0cfede7 100644 --- a/Source/UnrealFixedPoint/UnrealFixedPoint.Build.cs +++ b/Source/UnrealFixedMath/UnrealFixedMath.Build.cs @@ -1,10 +1,10 @@ -// Some copyright should be here... +// UnrealFixedMath Copyright Kevin Poretti using UnrealBuildTool; -public class UnrealFixedPoint : ModuleRules +public class UnrealFixedMath : ModuleRules { - public UnrealFixedPoint(ReadOnlyTargetRules Target) : base(Target) + public UnrealFixedMath(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; diff --git a/Source/UnrealFixedPoint/Private/UnrealFixedPointBPLibrary.cpp b/Source/UnrealFixedPoint/Private/UnrealFixedPointBPLibrary.cpp deleted file mode 100644 index cc23b0d..0000000 --- a/Source/UnrealFixedPoint/Private/UnrealFixedPointBPLibrary.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright Epic Games, Inc. All Rights Reserved. - -#include "UnrealFixedPointBPLibrary.h" -#include "UnrealFixedPoint.h" - -UUnrealFixedPointBPLibrary::UUnrealFixedPointBPLibrary(const FObjectInitializer& ObjectInitializer) -: Super(ObjectInitializer) -{ - -} - -float UUnrealFixedPointBPLibrary::UnrealFixedPointSampleFunction(float Param) -{ - return -1; -} - diff --git a/UnrealFixedPoint.uplugin b/UnrealFixedMath.uplugin similarity index 89% rename from UnrealFixedPoint.uplugin rename to UnrealFixedMath.uplugin index 119026b..351a714 100644 --- a/UnrealFixedPoint.uplugin +++ b/UnrealFixedMath.uplugin @@ -2,7 +2,7 @@ "FileVersion": 3, "Version": 1, "VersionName": "1.0", - "FriendlyName": "UnrealFixedPoint", + "FriendlyName": "Unreal Fixed Math", "Description": "This library provides a fixed point number primitive with corresponding data types that are useful for game development (i.e. vector, rotator, transform).", "Category": "Math", "CreatedBy": "Kevin Poretti", @@ -16,7 +16,7 @@ "Installed": false, "Modules": [ { - "Name": "UnrealFixedPoint", + "Name": "UnrealFixedMath", "Type": "Runtime", "LoadingPhase": "PreLoadingScreen" }