17 lines
496 B
GDScript
17 lines
496 B
GDScript
@abstract
|
|
class_name BulletSpawnPattern
|
|
extends Resource
|
|
|
|
|
|
## The amount of times to spawning this pattern for one "round".
|
|
## This is mostly useful if the pattern or behavior introduces some
|
|
## form of randomness.
|
|
@export_range(1, 1, 1, "or_greater") var iterations: int = 1
|
|
|
|
|
|
func spawn_bullets(bullet_set: BulletSet, preset: BulletPreset) -> void:
|
|
for _n in iterations:
|
|
_spawn_bullets(bullet_set, preset)
|
|
|
|
|
|
@abstract func _spawn_bullets(bullet_set: BulletSet, preset: BulletPreset) -> void
|