Zyle Moore
03/08/2026, 9:41 PMstructure(string, value) sequence, or otherwise made up of inline classes only?Zyle Moore
03/08/2026, 9:44 PM[
{ "name": "EDID", "value": "fJumpHeightMin" },
{ "name": "DATA", "value": 3000.0 }
]
The first letter of the EDID value indicates the type of value for DATA.
• f for Float
• s for String
• b for Boolean
• i for Int
data class GMST(
val edid: String,
val data: GMSTData
)
sealed interface GMSTData
value class GMSTFloat(val float: Float) : GMSTData
value class GMSTString(val string: String) : GMSTData
value class GMSTBoolean(val boolean: Boolean) : GMSTData
value class GMSTInt(val int: Int) : GMSTData
val exampleFloat = GMST("fJumpHeightMin", GMSTFloat(3000f))Zyle Moore
03/08/2026, 10:00 PMsealed interface GMST {
val edid: String
}
data class GMSTFloat(
override val edid: String,
val float: Float
)
// ...