Moved demon slayer cutscene trigger to its own MapArea

This commit is contained in:
Ceikry
2022-07-04 13:26:10 +00:00
committed by Ryan
parent f94fb24608
commit 7300e746b1
4 changed files with 35 additions and 3 deletions
+4
View File
@@ -751,6 +751,10 @@ fun <T> setAttribute(entity: Entity, attribute: String, value: T) {
entity.setAttribute(attribute, value)
}
fun removeAttribute(entity: Entity, attribute: String) {
entity.removeAttribute(attribute)
}
/**
* Locks the given entity for the given number of ticks
* @param entity the entity to lock
+2 -2
View File
@@ -11,7 +11,7 @@ import core.game.world.map.zone.ZoneRestriction
* Interface that allows a class to define a map area.
* Optionally-overridable methods include [getRestrictions], [areaEnter], [areaLeave] and [entityStep]
*/
interface MapArea {
interface MapArea : ContentInterface {
var zone: MapZone
get(){
return zoneMaps[this.javaClass.simpleName + "MapArea"]!!
@@ -29,4 +29,4 @@ interface MapArea {
companion object {
val zoneMaps = HashMap<String, MapZone>()
}
}
}