more mod restructuring

This commit is contained in:
Adam 2022-01-08 13:23:32 +01:00
parent ae94151fb6
commit f97b0a6562
9 changed files with 34 additions and 35 deletions

View file

@ -27,6 +27,7 @@ data class Colour(
val blue: Float = 0f,
val alpha: Float = 1f,
) {
/** True if any value is greater than 1, so the values are hexadecimal. */
fun isDecimal(): Boolean {
return red > 1f

View file

@ -8,7 +8,7 @@ import kotlinx.serialization.Serializable
data class FactorioEvent<out T : FactorioObjectData>(
override val modVersion: String,
/** the initial Factorio event ({defines.events}) trigger */
/** the initial Factorio event (`defines.events`) trigger */
val eventType: String,
/** game time */
val tick: UInt,