Add AssetLookup module to find assets by name.

This commit is contained in:
2025-04-01 22:31:27 -04:00
parent b26d56048f
commit aa511b9b8c
11 changed files with 250 additions and 78 deletions

View File

@@ -21,10 +21,6 @@ public:
using IdArray = CommonTypes::IdArray;
using TanArray = TArray<UlxTangible*>;
// A pointer to our world.
UPROPERTY()
TWeakObjectPtr<UWorld> World;
// A pointer to our game mode.
UPROPERTY()
TWeakObjectPtr<ALuprexGameModeBase> GameMode;
@@ -41,11 +37,7 @@ public:
// Initialize the tangible manager.
//
void Init(UWorld *world, ALuprexGameModeBase *gamemode);
// Get a pointer to our world.
//
UWorld* GetWorld() const override { return World.Get(); }
void Init(ALuprexGameModeBase *gamemode);
// Get a pointer to our game mode.
ALuprexGameModeBase *GetGameMode() { return GameMode.Get(); }
@@ -97,13 +89,5 @@ public:
// Given an array of tangibles, return an array of tangible Ids.
//
static IdArray GetIds(const TanArray &tans);
// Convert a blueprint name to a blueprint class.
//
UClass *GetTangibleClass(const FString &name);
// Get the Animation Queue Changed function from a UClass.
//
static UFunction *GetAnimationQueueChanged(UClass *uclass);
};