Adding log.gd
This commit is contained in:
parent
eb32d6614e
commit
4522259397
547 changed files with 46844 additions and 0 deletions
30
addons/gdUnit4/test/mocker/resources/CustomNodeTestClass.gd
Normal file
30
addons/gdUnit4/test/mocker/resources/CustomNodeTestClass.gd
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue