dev.robocode.tankroyale.server.mapper.BulletsToBulletStatesMapper.kt Maven / Gradle / Ivy
package dev.robocode.tankroyale.server.mapper
import dev.robocode.tankroyale.schema.game.BulletState
import dev.robocode.tankroyale.server.model.IBullet
object BulletsToBulletStatesMapper {
fun map(bullets: Set): List {
val bulletStates = mutableListOf()
bullets.forEach { bulletStates += BulletToBulletStateMapper.map(it) }
return bulletStates
}
}