miggor-StreamGraph/addons/zodot/zodot.gd
Lera Elvoé 715086f204 initial RPC renderer (#92)
Reviewed-on: https://codeberg.org/StreamGraph/StreamGraph/pulls/92
Co-authored-by: Lera Elvoé <yagich@poto.cafe>
Co-committed-by: Lera Elvoé <yagich@poto.cafe>
2024-03-05 07:09:36 +00:00

20 lines
364 B
GDScript

class_name Zodot
var _coerce = false
var _nullable = false
func _valid_type(_value: Variant) -> bool:
# Implemented in subclass
return false
func parse(_value: Variant, _field: String = "") -> ZodotResult:
# Implemented in subclass
return null
func coerce() -> Zodot:
_coerce = true
return self
func nullable() -> Zodot:
_nullable = true
return self