mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-13 02:48:19 +00:00
Replace all auto with auto*
For components
This commit is contained in:
@@ -10,7 +10,7 @@ void EnemyRoninSpawner::OnStartup(Entity* self) {
|
||||
|
||||
void EnemyRoninSpawner::OnTimerDone(Entity* self, std::string timerName) {
|
||||
if (timerName == "hatchTime") {
|
||||
auto renderComponent = self->GetComponent<RenderComponent>();
|
||||
auto* renderComponent = self->GetComponent<RenderComponent>();
|
||||
|
||||
if (renderComponent != nullptr) {
|
||||
renderComponent->PlayEffect(644, u"create", "BurstFX1");
|
||||
@@ -42,7 +42,7 @@ void EnemyRoninSpawner::OnProximityUpdate(Entity* self, Entity* entering, std::s
|
||||
if (entering->IsPlayer() && name == "ronin" && status == "ENTER" && !self->GetVar<bool>(u"hatching")) {
|
||||
StartHatching(self);
|
||||
|
||||
auto skillComponent = self->GetComponent<SkillComponent>();
|
||||
auto* skillComponent = self->GetComponent<SkillComponent>();
|
||||
|
||||
if (skillComponent != nullptr) {
|
||||
skillComponent->CalculateBehavior(305, 3568, LWOOBJID_EMPTY);
|
||||
@@ -59,7 +59,7 @@ void EnemyRoninSpawner::OnHit(Entity* self, Entity* attacker) {
|
||||
void EnemyRoninSpawner::StartHatching(Entity* self) {
|
||||
self->SetVar(u"hatching", true);
|
||||
|
||||
auto renderComponent = self->GetComponent<RenderComponent>();
|
||||
auto* renderComponent = self->GetComponent<RenderComponent>();
|
||||
|
||||
if (renderComponent != nullptr) {
|
||||
renderComponent->PlayEffect(2260, u"rebuild_medium", "WakeUpFX1");
|
||||
|
Reference in New Issue
Block a user