File: out_of_order_external.gd

package info (click to toggle)
godot 4.4.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 229,428 kB
  • sloc: cpp: 1,657,504; ansic: 186,969; xml: 153,923; cs: 36,104; java: 29,122; python: 15,230; javascript: 6,211; yacc: 4,115; pascal: 818; objc: 459; sh: 459; makefile: 109
file content (39 lines) | stat: -rw-r--r-- 701 bytes parent folder | download
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
const B = preload("out_of_order_external_a.notest.gd")

func test():
	print("v1: ", v1)
	print("v1 is String: ", v1 is String)
	print("v2: ", v2)
	print("v2 is bool: ", v2 is bool)
	print("c1: ", c1)
	print("c1 is int: ", c1 is int)
	print("c2: ", c2)
	print("c2 is int: ", c2 is int)
	print("E1.V1: ", E1.V1)
	print("E1.V2: ", E1.V2)
	print("B.E2.V: ", B.E2.V)
	print("EV1: ", EV1)
	print("EV2: ", EV2)
	print("B.EV3: ", B.EV3)

var v1 := Inner.new().fn()

class Inner extends B.Inner:
	func fn(p2 := E1.V2) -> String:
		return "%s, p2=%s" % [super.fn(), p2]

var v2 := B.new().f()

const c1 := E1.V1

enum E1 {
	V1 = B.E2.V + 2,
	V2 = V1 - 1
}

const c2 := EV2

enum {
	EV1 = 42,
	EV2 = B.EV3 + 1
}