16 lines
264 B
GDScript
16 lines
264 B
GDScript
class_name ScoreResult
|
|
extends Resource
|
|
|
|
@export var client_id: String
|
|
@export var score: int
|
|
|
|
func _init(
|
|
client_id: String,
|
|
score: int = 0,
|
|
) -> void:
|
|
self.client_id = client_id
|
|
self.score = score
|
|
|
|
func add_to_score(value: int) -> void:
|
|
self.score += value
|