// 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(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