mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-16 04:58:32 +00:00
Replace all auto with auto*
For components
This commit is contained in:
@@ -12,7 +12,7 @@ void AmSkullkinTower::OnStartup(Entity* self) {
|
||||
|
||||
// onPhysicsComponentReady
|
||||
|
||||
auto movingPlatformComponent = self->GetComponent<MovingPlatformComponent>();
|
||||
auto* movingPlatformComponent = self->GetComponent<MovingPlatformComponent>();
|
||||
|
||||
if (movingPlatformComponent != nullptr) {
|
||||
movingPlatformComponent->StopPathing();
|
||||
@@ -82,7 +82,7 @@ void AmSkullkinTower::OnChildLoaded(Entity* self, Entity* child) {
|
||||
|
||||
child->AddDieCallback([this, selfID, child]() {
|
||||
auto* self = EntityManager::Instance()->GetEntity(selfID);
|
||||
auto destroyableComponent = child->GetComponent<DestroyableComponent>();
|
||||
auto* destroyableComponent = child->GetComponent<DestroyableComponent>();
|
||||
|
||||
if (destroyableComponent == nullptr || self == nullptr) {
|
||||
return;
|
||||
@@ -163,7 +163,7 @@ void AmSkullkinTower::OnChildRemoved(Entity* self, Entity* child) {
|
||||
continue;
|
||||
}
|
||||
|
||||
auto missionComponent = player->GetComponent<MissionComponent>();
|
||||
auto* missionComponent = player->GetComponent<MissionComponent>();
|
||||
|
||||
if (missionComponent == nullptr) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user