Make TangibleManager a UObject
This commit is contained in:
@@ -7,21 +7,21 @@
|
||||
|
||||
using namespace DebugPrint;
|
||||
|
||||
FTangibleManager::FTangibleManager() {
|
||||
UTangibleManager::UTangibleManager() {
|
||||
World = nullptr;
|
||||
ClassTangibleActor = nullptr;
|
||||
Actor = 0;
|
||||
Near = IdView();
|
||||
}
|
||||
|
||||
void FTangibleManager::Init(UWorld *world, UClass* tanact) {
|
||||
void UTangibleManager::Init(UWorld *world, UClass* tanact) {
|
||||
World = world;
|
||||
ClassTangibleActor = tanact;
|
||||
Actor = 0;
|
||||
Near = IdView();
|
||||
}
|
||||
|
||||
UlxTangible *FTangibleManager::GetTangible(int64 id) {
|
||||
UlxTangible *UTangibleManager::GetTangible(int64 id) {
|
||||
UlxTangible **p = IdToTangible.Find(id);
|
||||
if (p == nullptr) {
|
||||
return nullptr;
|
||||
@@ -30,7 +30,7 @@ UlxTangible *FTangibleManager::GetTangible(int64 id) {
|
||||
}
|
||||
}
|
||||
|
||||
UlxTangible *FTangibleManager::MakeTangible(int64 id) {
|
||||
UlxTangible *UTangibleManager::MakeTangible(int64 id) {
|
||||
UlxTangible *& p = IdToTangible.FindOrAdd(id);
|
||||
if (p == nullptr) {
|
||||
FVector location(0,0,0);
|
||||
@@ -40,16 +40,16 @@ UlxTangible *FTangibleManager::MakeTangible(int64 id) {
|
||||
check(a != nullptr);
|
||||
check(a->GetClass()->ImplementsInterface(UlxTangibleInterface::StaticClass()));
|
||||
p = NewObject<UlxTangible>();
|
||||
p->Init(a);
|
||||
p->Init(a, TEXT(""));
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
void FTangibleManager::DeleteTangible(int64 id) {
|
||||
void UTangibleManager::DeleteTangible(int64 id) {
|
||||
// IMPLEMENT ME
|
||||
}
|
||||
|
||||
FTangibleManager::IdArray FTangibleManager::GetLive() {
|
||||
UTangibleManager::IdArray UTangibleManager::GetLive() {
|
||||
IdArray result;
|
||||
result.SetNum(IdToTangible.Num());
|
||||
int next = 0;
|
||||
|
||||
Reference in New Issue
Block a user