-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added weapon ammo item to content browser context menu
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
Plugins/USK/Source/USKEditor/Factories/WeaponAmmoItemAssetFactory.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Created by Henry Jooste | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "Factories/Factory.h" | ||
#include "USKAssetFactory.h" | ||
#include "USK/Weapons/WeaponAmmoItem.h" | ||
#include "WeaponAmmoItemAssetFactory.generated.h" | ||
|
||
/** | ||
* @brief Factory class used to create a weapon ammo items | ||
*/ | ||
UCLASS() | ||
class USKEDITOR_API UWeaponAmmoItemAssetFactory : public UUSKAssetFactory | ||
{ | ||
GENERATED_BODY() | ||
|
||
public: | ||
/** | ||
* @brief Create a new instance of the factory class | ||
*/ | ||
UWeaponAmmoItemAssetFactory() { SupportedClass = AWeaponAmmoItem::StaticClass(); } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters