Change some class naming conventions
This commit is contained in:
@@ -21,8 +21,8 @@ void FTangibleManager::Init(UWorld *world, UClass* tanact) {
|
||||
Near = IdView();
|
||||
}
|
||||
|
||||
UTangible *FTangibleManager::GetTangible(int64 id) {
|
||||
UTangible **p = IdToTangible.Find(id);
|
||||
UlxTangible *FTangibleManager::GetTangible(int64 id) {
|
||||
UlxTangible **p = IdToTangible.Find(id);
|
||||
if (p == nullptr) {
|
||||
return nullptr;
|
||||
} else {
|
||||
@@ -30,16 +30,16 @@ UTangible *FTangibleManager::GetTangible(int64 id) {
|
||||
}
|
||||
}
|
||||
|
||||
UTangible *FTangibleManager::MakeTangible(int64 id) {
|
||||
UTangible *& p = IdToTangible.FindOrAdd(id);
|
||||
UlxTangible *FTangibleManager::MakeTangible(int64 id) {
|
||||
UlxTangible *& p = IdToTangible.FindOrAdd(id);
|
||||
if (p == nullptr) {
|
||||
FVector location(0,0,0);
|
||||
FRotator rotation(0, 0, 0);
|
||||
FActorSpawnParameters params;
|
||||
AActor* a = World->SpawnActor(ClassTangibleActor, &location, &rotation, params);
|
||||
check(a != nullptr);
|
||||
check(a->GetClass()->ImplementsInterface(UTangibleInterface::StaticClass()));
|
||||
p = NewObject<UTangible>();
|
||||
check(a->GetClass()->ImplementsInterface(UlxTangibleInterface::StaticClass()));
|
||||
p = NewObject<UlxTangible>();
|
||||
p->Init(a);
|
||||
}
|
||||
return p;
|
||||
|
||||
Reference in New Issue
Block a user