Untested PickupableItem
This commit is contained in:
parent
a2c062e8bb
commit
63e87e86d5
19 changed files with 200 additions and 17 deletions
13
base/scripts/interactive/base_pickupable_resource.gd
Normal file
13
base/scripts/interactive/base_pickupable_resource.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Resource
|
||||
|
||||
class_name BasePickupableResource
|
||||
|
||||
## Item ID, make sure it's unique
|
||||
@export var id: StringName
|
||||
|
||||
## Texture that will be used in node sprite
|
||||
@export var texture: Texture2D
|
||||
|
||||
## Emitted when item picked up. Returns if PickupableItem should be freed
|
||||
func _apply(_player: Player) -> bool:
|
||||
return true
|
Loading…
Add table
Add a link
Reference in a new issue