Riven/srcgen/consts/season.rs.dt
2019-10-23 00:49:02 -07:00

17 lines
No EOL
408 B
Text

{{
const dotUtils = require('./dotUtils.js');
const seasons = require('./.seasons.json');
}}{{= dotUtils.preamble() }}
/// League of Legends matchmaking seasons.
pub enum Season {
{{
for (const { id, season } of seasons) {
let name = season.replace(' ', '');
name = dotUtils.changeCase.pascalCase(name).padEnd(13);
}}
{{= name }} = {{= id }},
{{
}
}}
}