feat: add dailylogin feature
This commit is contained in:
@@ -15,6 +15,7 @@ signal profile_loaded(profile: Dictionary)
|
||||
signal profile_updated
|
||||
signal profile_update_failed(error: String)
|
||||
signal avatar_changed(url: String)
|
||||
signal stats_updated
|
||||
|
||||
# Profile data
|
||||
var profile: Dictionary = {}
|
||||
@@ -423,6 +424,7 @@ func save_wallet() -> void:
|
||||
|
||||
func update_stats(new_stats: Dictionary) -> bool:
|
||||
stats.merge(new_stats, true)
|
||||
emit_signal("stats_updated")
|
||||
|
||||
if not NakamaManager.session:
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user