mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 12:04:06 +09:00
now dropped items can produce light (e.g. dropped torch)
This commit is contained in:
@@ -41,6 +41,28 @@ open class ActorWithBody : Actor {
|
||||
|
||||
var physProp = PhysProperties.HUMANOID_DEFAULT
|
||||
|
||||
// copied from old interface Luminous
|
||||
/**
|
||||
* Arguments:
|
||||
*
|
||||
* Hitbox(x-offset, y-offset, width, height)
|
||||
* (Use ArrayList for normal circumstances)
|
||||
*
|
||||
* NOTE: MUST NOT SERIALISE (use `@Transient`)
|
||||
*/
|
||||
open var lightBoxList: List<Lightbox> = emptyList()
|
||||
|
||||
/**
|
||||
* Arguments:
|
||||
*
|
||||
* Hitbox(x-offset, y-offset, width, height)
|
||||
* (Use ArrayList for normal circumstances)
|
||||
*
|
||||
* NOTE: MUST NOT SERIALISE (use `@Transient`)
|
||||
*/
|
||||
open var shadeBoxList: List<Lightbox> = emptyList()
|
||||
// end of Luminous
|
||||
|
||||
protected constructor() : super()
|
||||
|
||||
constructor(renderOrder: RenderOrder, physProp: PhysProperties, id: ActorID? = null) : super(renderOrder, id) {
|
||||
|
||||
@@ -22,8 +22,10 @@ class Lightbox() {
|
||||
* For actors that either emits or blocks lights
|
||||
*
|
||||
* Created by minjaesong on 2016-02-19.
|
||||
*
|
||||
* the interface Luminous is merged with the ActorWithBody -- minjaesong on 2022-09-11
|
||||
*/
|
||||
interface Luminous {
|
||||
/*interface Luminous {
|
||||
|
||||
/**
|
||||
* Arguments:
|
||||
@@ -44,4 +46,4 @@ interface Luminous {
|
||||
* NOTE: MUST NOT SERIALISE (use `@Transient`)
|
||||
*/
|
||||
val shadeBoxList: List<Lightbox>
|
||||
}
|
||||
}*/
|
||||
Reference in New Issue
Block a user