mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 05:41:51 +09:00
kotlin update 1.8.20
This commit is contained in:
@@ -50,7 +50,8 @@ import java.util.*
|
||||
*
|
||||
* Created by minjaesong on 2018-12-08.
|
||||
*/
|
||||
inline class Yaml(val text: String) {
|
||||
@JvmInline
|
||||
value class Yaml(val text: String) {
|
||||
|
||||
companion object {
|
||||
val SEPARATOR = Regex(" : ")
|
||||
|
||||
@@ -716,7 +716,8 @@ infix fun Long.fmod(other: Long) = Math.floorMod(this, other)
|
||||
infix fun Float.fmod(other: Float) = if (this >= 0f) this % other else (this % other) + other
|
||||
infix fun Double.fmod(other: Double) = if (this >= 0.0) this % other else (this % other) + other
|
||||
|
||||
inline class FluidType(val value: Int) {
|
||||
@JvmInline
|
||||
value class FluidType(val value: Int) {
|
||||
infix fun sameAs(other: FluidType) = this.value.absoluteValue == other.value.absoluteValue
|
||||
fun abs() = this.value.absoluteValue
|
||||
}
|
||||
|
||||
@@ -360,7 +360,8 @@ interface CuedByWireChange {
|
||||
*
|
||||
* In the savegame's JSON, this flag set should be stored as signed integer.
|
||||
*/
|
||||
inline class BlockBoxProps(val flags: Int) {
|
||||
@JvmInline
|
||||
value class BlockBoxProps(val flags: Int) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,8 @@ import net.torvald.terrarum.Point2d
|
||||
*
|
||||
* Created by minjaesong on 2020-02-11.
|
||||
*/
|
||||
inline class IconGenMesh(val datapoints: Array<Point2d>) {
|
||||
@JvmInline
|
||||
value class IconGenMesh(val datapoints: Array<Point2d>) {
|
||||
|
||||
operator fun times(other: PerturbMesh) {
|
||||
|
||||
@@ -23,6 +24,7 @@ inline class IconGenMesh(val datapoints: Array<Point2d>) {
|
||||
|
||||
}
|
||||
|
||||
inline class PerturbMesh(val datapoints: Array<Point2d>) {
|
||||
@JvmInline
|
||||
value class PerturbMesh(val datapoints: Array<Point2d>) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user