You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
327 B

package model
import korlibs.time.*
import kotlinx.serialization.*
@Serializable
sealed class TimedEvent: Comparable<TimedEvent> {
abstract val timestamp: TimeSpan
abstract fun Battle.EventAPI.execute()
override fun compareTo(other: TimedEvent): Int {
return timestamp.compareTo(other.timestamp)
}
}