| 380 | } |
| 381 | |
| 382 | void Projectile::renderLightSources(RenderCallback* renderCallback) { |
| 383 | for (auto renderable : m_pendingRenderables) { |
| 384 | if (renderable.is<LightSource>()) |
| 385 | renderCallback->addLightSource(renderable.get<LightSource>()); |
| 386 | } |
| 387 | renderCallback->addLightSource({position(), m_config->lightColor.toRgbF(), m_config->lightType, 0.0f, 0.0f, 0.0f}); |
| 388 | } |
| 389 | |
| 390 | Maybe<Json> Projectile::receiveMessage(ConnectionId sendingConnection, String const& message, JsonArray const& args) { |
| 391 | return m_scriptComponent.handleMessage(message, sendingConnection == world()->connection(), args); |
nothing calls this directly
no test coverage detected