Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ceddral
fahrradwurstmond
Commits
e618d98e
Commit
e618d98e
authored
Oct 02, 2021
by
ceddral
Browse files
game: implement human-readable extension names
parent
86d51d5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
game.go
View file @
e618d98e
...
...
@@ -205,6 +205,17 @@ func tokensByExtension(ext string) map[Token]int {
}
}
func
extensionToString
(
ext
string
)
string
{
switch
ext
{
case
"base"
:
return
"Base game"
case
"ext1"
:
return
"Inns and Cathedrals"
default
:
panic
(
fmt
.
Sprintf
(
"unknown extension <%s>"
,
ext
))
}
}
// example menu layout
// ____________________
// Turn: since
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment