All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy