mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-09-02 17:07:19 +00:00
16 lines
284 B
CoffeeScript
16 lines
284 B
CoffeeScript
AuthorityMap =
|
|
"1": ""
|
|
"2": "+"
|
|
"3": "%"
|
|
"4": "@"
|
|
"5": "~"
|
|
|
|
class @User extends Backbone.Model
|
|
initialize: (attributes) =>
|
|
|
|
getDisplayName: =>
|
|
authorityString = AuthorityMap[@get('authority')] ? ""
|
|
"#{authorityString}#{@get('id')}"
|
|
|
|
isAlt: =>
|
|
@get('isAlt') |