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