Progress on Animation Queue Pipeline

This commit is contained in:
2023-09-15 00:01:41 -04:00
parent 7b58dea692
commit afa0cfbe6d
15 changed files with 342 additions and 30 deletions

View File

@@ -3,6 +3,7 @@
#include "IntegrationGameModeBase.h"
#include "lpx-drvutil.hpp"
#include "DebugPrint.h"
#include "Tangible.h"
#include "TangibleManager.h"
#include "TangibleInterface.h"
#include "CommonTypes.h"
@@ -120,13 +121,9 @@ void AIntegrationGameModeBase::UpdateTangibles() {
// Tick all the tangibles.
if (EngineSeconds > NextRotateCube) {
for (int i = 0; i < live.Num(); i++) {
AActor* a = TangibleManager.GetTangible(live[i]);
check(a != nullptr);
bool hasInterface = a->GetClass()->ImplementsInterface(UTangibleInterface::StaticClass());
if (hasInterface) {
ITangibleInterface* iface = Cast<ITangibleInterface>(a);
iface->Execute_TurnFromCXX(a);
}
UTangible *t = TangibleManager.GetTangible(live[i]);
check(t != nullptr);
ITangibleInterface::Execute_TurnFromCXX(t->Actor);
}
NextRotateCube += 0.5;
}