mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-05-23 15:22:28 +00:00
few more pointer specifiers
This commit is contained in:
parent
3f3810519d
commit
f9ac0a9dec
@ -608,12 +608,12 @@ void Entity::Unsubscribe(const LWOOBJID& scriptObjId, const std::string& notific
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Entity::SetProximityRadius(const float proxRadius, const std::string& name) {
|
void Entity::SetProximityRadius(const float proxRadius, const std::string& name) {
|
||||||
auto proximityMonitorComponent = AddComponent<ProximityMonitorComponent>();
|
auto* proximityMonitorComponent = AddComponent<ProximityMonitorComponent>();
|
||||||
if (proximityMonitorComponent) proximityMonitorComponent->SetProximityRadius(proxRadius, name);
|
if (proximityMonitorComponent) proximityMonitorComponent->SetProximityRadius(proxRadius, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entity::SetProximityRadius(dpEntity* entity, const std::string& name) {
|
void Entity::SetProximityRadius(dpEntity* entity, const std::string& name) {
|
||||||
auto proximityMonitorComponent = AddComponent<ProximityMonitorComponent>();
|
auto* proximityMonitorComponent = AddComponent<ProximityMonitorComponent>();
|
||||||
if (proximityMonitorComponent) proximityMonitorComponent->SetProximityRadius(entity, name);
|
if (proximityMonitorComponent) proximityMonitorComponent->SetProximityRadius(entity, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ void SGCannon::OnActivityTimerDone(Entity* self, const std::string& name) {
|
|||||||
auto* enemy = EntityManager::Instance()->CreateEntity(info, nullptr, self);
|
auto* enemy = EntityManager::Instance()->CreateEntity(info, nullptr, self);
|
||||||
EntityManager::Instance()->ConstructEntity(enemy);
|
EntityManager::Instance()->ConstructEntity(enemy);
|
||||||
|
|
||||||
auto movementAiComponent = enemy->AddComponent<MovementAIComponent>(0U);
|
auto* movementAiComponent = enemy->AddComponent<MovementAIComponent>(0U);
|
||||||
|
|
||||||
movementAiComponent->SetSpeed(toSpawn.initialSpeed);
|
movementAiComponent->SetSpeed(toSpawn.initialSpeed);
|
||||||
movementAiComponent->SetCurrentSpeed(toSpawn.initialSpeed);
|
movementAiComponent->SetCurrentSpeed(toSpawn.initialSpeed);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user