Files
BallisticsDocs/Source/EasyBallisticsEditor/Private/EBMathematicalBallisticsFactory.cpp
T
2025-07-02 22:40:58 -07:00

25 lines
951 B
C++

// Copyright 2016 Mookie. All Rights Reserved.
#include "EBMathematicalBallisticsFactory.h"
#include "EBMathematicalBallistics.h"
#include "AssetToolsModule.h"
#define LOCTEXT_NAMESPACE "EBMathematicalBallisticsFactory"
UClass* FEBMathematicalBallisticsFactory::GetSupportedClass() const
{
return UEBMathematicalBallistics::StaticClass();
}
uint32 FEBMathematicalBallisticsFactory::GetCategories()
{
IAssetTools& AssetTools = FModuleManager::LoadModuleChecked<FAssetToolsModule>("AssetTools").Get();
return AssetTools.RegisterAdvancedAssetCategory(FName(TEXT("Ballistics")), LOCTEXT("BallisticsCategory", "Ballistics"));
}
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