mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 08:39:27 +00:00
Rename npc_spawn function to spawnNpc
This commit is contained in:
@@ -5,13 +5,19 @@ import org.apollo.game.model.Direction
|
||||
import org.apollo.game.model.Graphic
|
||||
import org.apollo.game.model.Position
|
||||
|
||||
data class Spawn(val id: Int?, val name: String, val position: Position, val facing: Direction,
|
||||
val spawnAnimation: Animation? = null, val spawnGraphic: Graphic? = null)
|
||||
fun spawnNpc(name: String, x: Int, y: Int, z: Int = 0, id: Int? = null, facing: Direction = Direction.NORTH) {
|
||||
Spawns.list += Spawn(id, name, Position(x, y, z), facing)
|
||||
}
|
||||
|
||||
object Spawns {
|
||||
internal data class Spawn(
|
||||
val id: Int?,
|
||||
val name: String,
|
||||
val position: Position,
|
||||
val facing: Direction,
|
||||
val spawnAnimation: Animation? = null,
|
||||
val spawnGraphic: Graphic? = null
|
||||
)
|
||||
|
||||
internal object Spawns {
|
||||
val list = mutableListOf<Spawn>()
|
||||
}
|
||||
|
||||
fun npc_spawn(name: String, x: Int, y: Int, z: Int = 0, id: Int? = null, facing: Direction = Direction.NORTH) {
|
||||
Spawns.list.add(Spawn(id, name, Position(x, y, z), facing))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user