mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
Former-commit-id: 8a2a91a5252347b5184f62ec0f7009292fbb01bb Former-commit-id: b31eaddf7596c8393c9a032e8897ef3f1a8234fd
26 lines
539 B
Kotlin
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>
|
|
} |