mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-28 16:37:23 +00:00
2ca61c3e57
* rigid as heck * abstract physics creation to separate function * loading Update FvRacePillarDServer.cpp consolidate abcd pillar logic modularization Update SimplePhysicsComponent.cpp Update EntityManager.cpp Update MovingPlatformComponent.cpp still need another pass * geiser works * columns working finally * consolidate logic * constiness * Update PhantomPhysicsComponent.cpp * Update PhysicsComponent.cpp * revert testing code * add versions info --------- Co-authored-by: Aaron Kimbre <aronwk.aaron@gmail.com>
16 lines
537 B
C++
16 lines
537 B
C++
#include "FvRacePillarServer.h"
|
|
|
|
#include "Game.h"
|
|
#include "EntityManager.h"
|
|
#include "RenderComponent.h"
|
|
|
|
void FvRacePillarServer::PlayAnimation(const std::string animName, const std::string group, const LOT lot) {
|
|
const auto entities = Game::entityManager->GetEntitiesInGroup(group);
|
|
for (const auto& entity : entities) {
|
|
if (!entity || entity->GetLOT() != lot) continue;
|
|
auto* renderComponent = entity->GetComponent<RenderComponent>();
|
|
if (!renderComponent) continue;
|
|
renderComponent->PlayAnimation(entity, animName);
|
|
}
|
|
}
|