gui for load savegame

This commit is contained in:
minjaesong
2023-06-28 16:10:15 +09:00
parent 1745bb16db
commit bb017fa9b7
6 changed files with 46 additions and 31 deletions

View File

@@ -630,6 +630,7 @@ fun Float.sqrt() = FastMath.sqrt(this)
fun Int.abs() = this.absoluteValue
fun Double.bipolarClamp(limit: Double) = this.coerceIn(-limit, limit)
fun Boolean.toInt(shift: Int = 0) = if (this) 1.shl(shift) else 0
fun Boolean.toLong(shift: Int = 0) = if (this) 1L.shl(shift) else 0L
fun Int.bitCount() = java.lang.Integer.bitCount(this)
fun Long.bitCount() = java.lang.Long.bitCount(this)