Files
Terrarum/src/net/torvald/terrarum/gameactors/Luminous.kt
Song Minjae 413603de6f fixed wrong package, fixed wrong creation date
Former-commit-id: 8a2a91a5252347b5184f62ec0f7009292fbb01bb
Former-commit-id: b31eaddf7596c8393c9a032e8897ef3f1a8234fd
2016-10-26 00:37:49 +09:00

26 lines
539 B
Kotlin

package net.torvald.terrarum.gameactors
/**
* Created by minjaesong on 16-02-19.
*/
interface Luminous {
/**
* Recommended implementation:
*
override var luminosity: Int
get() = actorValue.getAsInt(AVKey.LUMINOSITY) ?: 0
set(value) {
actorValue[AVKey.LUMINOSITY] = value
}
*/
var luminosity: Int
/**
* Arguments:
*
* Hitbox(x-offset, y-offset, width, height)
* (Use ArrayList for normal circumstances)
*/
val lightBoxList: List<Hitbox>
}