22 lines
444 B
GDScript
22 lines
444 B
GDScript
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
|