godot-plateformer/__settings/SettingSchema.gd

23 lines
456 B
GDScript3
Raw Normal View History

2026-01-15 17:43:58 +08:00
class_name SettingSchema
extends RefCounted
## ===============================
## 默认设置定义
## ===============================
static func defaults() -> Dictionary:
return {
"audio": {
"master_volume": 1.0,
"music_volume": 0.8,
"sfx_volume": 0.8,
},
"graphics": {
"quality": 2, # 0=low,1=mid,2=high
"fullscreen": true,
},
"input": {
# 这里只是占位,后面可扩展
"mouse_sensitivity": 1.0,
}
}