#58 ajout d'un item package servant à déployer des machines
This commit is contained in:
@@ -6,11 +6,14 @@ var available : bool = true
|
||||
func can_interact(_p : Player) -> bool:
|
||||
return true
|
||||
|
||||
func interaction_cost(_p : Player) -> int:
|
||||
return 0
|
||||
|
||||
func interact(_p : Player) -> bool:
|
||||
printerr("Interact function called on abstract Interactable class")
|
||||
return false
|
||||
|
||||
func generate_collision(area_width : float):
|
||||
func generate_collision(area_width : float) -> CollisionShape2D:
|
||||
var collision = CollisionShape2D.new()
|
||||
var collision_shape = CircleShape2D.new()
|
||||
collision_shape.radius = area_width
|
||||
@@ -18,5 +21,7 @@ func generate_collision(area_width : float):
|
||||
collision.shape = collision_shape
|
||||
add_child(collision)
|
||||
|
||||
return collision
|
||||
|
||||
func interact_text():
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user