mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
715086f204
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>
20 lines
364 B
GDScript
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
|