pollen-not-included/addons/gdUnit4/test/mocker/resources/CustomNodeTestClass.gd
2024-05-02 09:36:31 +01:00

30 lines
504 B
GDScript

class_name CustomNodeTestClass
extends Node
const STATIC_FUNC_RETURN_VALUE = "i'm a static function"
enum {
ENUM_A,
ENUM_B
}
#func get_path() -> NodePath:
# return NodePath()
#func duplicate(flags_=15) -> Node:
# return self
# added a custom static func for mock testing
static func static_test() -> String:
return STATIC_FUNC_RETURN_VALUE
static func static_test_void() -> void:
pass
func get_value( type := ENUM_A) -> int:
match type:
ENUM_A:
return 0
ENUM_B:
return 1
return -1