Some light rearranging prior to AnimQueue stuff

This commit is contained in:
2023-09-07 23:50:49 -04:00
parent 5af9741cd5
commit ee0b37725e
7 changed files with 44 additions and 15 deletions

View File

@@ -9,14 +9,14 @@ FTangibleManager::FTangibleManager() {
World = nullptr;
ClassTangibleActor = nullptr;
Actor = 0;
Near = IdList();
Near = IdView();
}
void FTangibleManager::Init(UWorld *world, UClass* tanact) {
World = world;
ClassTangibleActor = tanact;
Actor = 0;
Near = IdList();
Near = IdView();
}
AActorPtr FTangibleManager::GetTangible(int64 id) {
@@ -28,7 +28,6 @@ AActorPtr FTangibleManager::GetTangible(int64 id) {
}
}
// Get the tangible if it exists, otherwise create it.
AActorPtr FTangibleManager::MakeTangible(int64 id) {
AActorPtr& p = IdToActor.FindOrAdd(id);
if (p == nullptr) {
@@ -41,7 +40,16 @@ AActorPtr FTangibleManager::MakeTangible(int64 id) {
return p;
}
// Delete the tangible.
void FTangibleManager::DeleteTangible(int64 id) {
// IMPLEMENT ME
}
FTangibleManager::IdArray FTangibleManager::GetLive() {
IdArray result;
result.SetNum(IdToActor.Num());
int next = 0;
for (auto &pair : IdToActor) {
result[next++] = pair.Key;
}
return result;
}