class_name DBItems
|
|
extends Node
|
|
|
|
|
|
#region Singleton
|
|
static var ref: DBItems
|
|
|
|
func _init() -> void:
|
|
if not ref:
|
|
ref = self
|
|
else:
|
|
queue_free()
|
|
#endregion
|
|
|
|
|
|
@onready var data: Dictionary = {
|
|
"001": preload("res://resources/blocks/001_dirt.tres"),
|
|
"002": preload("res://resources/blocks/002_stone.tres"),
|
|
}
|