chore: init from code-review-graph-main snapshot (v2.3.7)

This commit is contained in:
dev
2026-08-05 13:16:12 +08:00
commit 82b7c6dc9e
358 changed files with 118525 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
extends Node
class_name SampleManager
const MAX_SIZE = 10
const OtherScript = preload("res://scripts/other.gd")
signal item_added(item: Item)
@export var speed: float = 2.5
@onready var timer: Timer = $Timer
var items: Array[Item] = []
class Item:
var name: String
var level: int
func promote() -> void:
level += 1
func _ready() -> void:
timer.start()
_load_items()
OtherScript.register(self)
func _load_items() -> void:
for i in range(MAX_SIZE):
var item := Item.new()
items.append(item)
item_added.emit(item)
func get_item(idx: int) -> Item:
return items[idx]
static func helper() -> int:
return 42