Make TangibleManager a GameInstance subsystem
This commit is contained in:
@@ -3,19 +3,14 @@
|
||||
|
||||
#include "TangibleManager.h"
|
||||
#include "Tangible.h"
|
||||
#include "LuprexGameModeBase.h"
|
||||
#include "AssetRegistry/AssetRegistryModule.h"
|
||||
#include "AssetRegistry/ARFilter.h"
|
||||
|
||||
|
||||
UlxTangibleManager::UlxTangibleManager() {
|
||||
void UlxTangibleManager::Initialize(FSubsystemCollectionBase& Collection) {
|
||||
Super::Initialize(Collection);
|
||||
PossessedTangible = nullptr;
|
||||
}
|
||||
|
||||
void UlxTangibleManager::Init(ALuprexGameModeBase *gamemode) {
|
||||
GameMode = gamemode;
|
||||
}
|
||||
|
||||
UlxTangible* UlxTangibleManager::GetTangible(int64 id) const {
|
||||
UlxTangible*const* p = IdToTangible.Find(id);
|
||||
if (p == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user