You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
680 B

extends Resource
class_name MajorityJudgmentCandidate
"""
The thing that is judged in the poll,
receiving grades from participants.
## Alternative names
- Candidate: from 'candor'
- Option: ambiguous, since polls may have options/settings
- Proposition: this one is good, no?
"""
export(String) var name:String setget set_name, get_name
func set_name(__name:String) -> void:
name = __name
func get_name() -> String:
if null == name:
return 'Unknown'
return name
static func make(__name:String): # -> MajorityJudgmentCandidate:
var candidate = load('res://addons/majority_judgment/MajorityJudgmentCandidate.gd').new()
candidate.set_name(__name)
return candidate