seedpackets and handlers

This commit is contained in:
Rendo 2025-08-02 23:32:32 +05:00
commit 73a2fe42ad
16 changed files with 157 additions and 58 deletions

View 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