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:
@@ -6,7 +6,7 @@
|
||||
std::vector<int32_t> FvCandle::m_Missions = { 850, 1431, 1529, 1566, 1603 };
|
||||
|
||||
void FvCandle::OnStartup(Entity* self) {
|
||||
auto render = self->GetComponent<RenderComponent>();
|
||||
auto* render = self->GetComponent<RenderComponent>();
|
||||
if (render == nullptr)
|
||||
return;
|
||||
|
||||
@@ -23,11 +23,11 @@ void FvCandle::BlowOutCandle(Entity* self, Entity* blower) {
|
||||
if (self->GetBoolean(u"AmHit"))
|
||||
return;
|
||||
|
||||
auto render = self->GetComponent<RenderComponent>();
|
||||
auto* render = self->GetComponent<RenderComponent>();
|
||||
if (render == nullptr)
|
||||
return;
|
||||
|
||||
auto missionComponent = blower->GetComponent<MissionComponent>();
|
||||
auto* missionComponent = blower->GetComponent<MissionComponent>();
|
||||
|
||||
if (missionComponent != nullptr) {
|
||||
for (const auto mission : m_Missions) {
|
||||
@@ -47,7 +47,7 @@ void FvCandle::BlowOutCandle(Entity* self, Entity* blower) {
|
||||
void FvCandle::OnTimerDone(Entity* self, std::string timerName) {
|
||||
self->SetBoolean(u"AmHit", false);
|
||||
|
||||
auto render = self->GetComponent<RenderComponent>();
|
||||
auto* render = self->GetComponent<RenderComponent>();
|
||||
if (render == nullptr)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user