seedpackets and handlers
This commit is contained in:
parent
2a7c402cd0
commit
73a2fe42ad
16 changed files with 157 additions and 58 deletions
22
scripts/gui/seedpacket/seedpacket_handler.gd
Normal file
22
scripts/gui/seedpacket/seedpacket_handler.gd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
extends RefCounted
|
||||
|
||||
## Class that is used as modular runtime behaviour for seedpacket
|
||||
|
||||
class_name SeedpacketHandler
|
||||
|
||||
## Seedpacket that uses this handler
|
||||
var seedpacket : Seedpacket
|
||||
|
||||
func _init(packet : Seedpacket) -> void:
|
||||
seedpacket = packet
|
||||
|
||||
func exit() -> void:
|
||||
pass
|
||||
|
||||
## Invoked to check for avaiability
|
||||
func is_avaiable() -> bool:
|
||||
return true
|
||||
|
||||
## Invoked when seedpacket is requested to update
|
||||
func on_updated_contents() -> void:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue