-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patha.gd
More file actions
49 lines (38 loc) · 956 Bytes
/
a.gd
File metadata and controls
49 lines (38 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
extends Label
class_name A
#signal does_not_implement_interfaces
const IMPLEMENTS = [preload("res://inter3.gd")]
signal sig_1
var alfa : String
var beta : Vector2
var gamma : int = NAN
var delta := ""
@onready var epsilon : A = $"."
var binary : I2.Enum
# class can have more properties
var custom_name = "B"
var child_position := Vector2(100,10)
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
print(I2.Enum.ONE)
text = "A is ready"
func foo():
print("A's foo")
func bar(num:int):
text += " " + str(num)
print("The number: ", num)
func get_id(obj = self) -> int:
return obj.get_instance_id()
func is_i4() -> bool:
return "I4" in IMPLEMENTS
func _on_go_pressed():
pass
class Sub extends Node:
@export var b := Vector4.ONE
@export_category("Test")
@export var d := &"Test"
class SubR extends Resource:
@export var b := Vector4.ONE
@export_category("Test")
@export var d := &"Test"
#