Riven/srcgen/consts/season.rs.dt

17 lines
408 B
Plaintext
Raw Normal View History

2019-10-23 07:49:02 +00:00
{{
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 }},
{{
}
}}
}