25 lines
951 B
C++
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 |