mirror of
https://github.com/GarrettGunnell/God-Machine.git
synced 2025-10-19 06:43:15 +00:00
add rule ranges to neighborhood resource
This commit is contained in:
parent
372ef7bfd5
commit
b33b5f80c0
1 changed files with 20 additions and 0 deletions
|
@ -1 +1,21 @@
|
|||
extends Resource
|
||||
class_name Neighborhood
|
||||
|
||||
@export var spawn_range : Vector2i
|
||||
@export var stable_range : Vector2i
|
||||
|
||||
|
||||
func get_spawn_range() -> Vector2i:
|
||||
return spawn_range
|
||||
|
||||
|
||||
func get_stable_range() -> Vector2i:
|
||||
return stable_range
|
||||
|
||||
|
||||
func add_to_spawn_range(v : Vector2i):
|
||||
spawn_range = spawn_range + v
|
||||
|
||||
|
||||
func add_to_stable_range(v : Vector2i):
|
||||
stable_range = stable_range + v
|
Loading…
Add table
Add a link
Reference in a new issue