@abstract class_name BulletSpawnPattern extends Resource ## Defines the placement of spawned bullets. ## 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 ## Creates and adds bullets to the passed [BulletSet]. 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