Files
BallisticsDocs/Source/EasyBallisticsEditor/Private/EBMathematicalBallisticsFactory.cpp
T
2025-07-04 03:26:03 -07:00

38 lines
1.3 KiB
C++

// Copyright 2016 Mookie. All Rights Reserved.
#include "EBMathematicalBallisticsFactory.h"
#include "EBMathematicalBallistics.h"
#include "AssetToolsModule.h"
#include "EasyBallisticsEditor.h"
#define LOCTEXT_NAMESPACE "EBMathematicalBallisticsFactory"
UEBMathematicalBallisticsFactory::UEBMathematicalBallisticsFactory(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
SupportedClass = UEBMathematicalBallistics::StaticClass();
bCreateNew = true;
bEditAfterNew = true;
}
UObject* UEBMathematicalBallisticsFactory::FactoryCreateNew(UClass* Class, UObject* InParent, FName Name, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn)
{
return NewObject<UEBMathematicalBallistics>(InParent, Class, Name, Flags);
}
UClass* FEBMathematicalBallisticsFactory::GetSupportedClass() const
{
return UEBMathematicalBallistics::StaticClass();
}
uint32 FEBMathematicalBallisticsFactory::GetCategories()
{
return FEasyBallisticsEditorModule::GetBallisticsAssetCategory();
}
FText FEBMathematicalBallisticsFactory::GetAssetDescription(const FAssetData& AssetData) const
{
return LOCTEXT("EBMathematicalBallisticsDescription", "Mathematical ballistics calculator providing penetration depth, residual velocity, and trajectory calculations using empirical formulas.");
}
#undef LOCTEXT_NAMESPACE