2021-06-30 16:34:34 -07:00
|
|
|
{{
|
|
|
|
const dotUtils = require('./dotUtils.js');
|
|
|
|
const seasons = require('./.seasons.json');
|
|
|
|
}}{{= dotUtils.preamble() }}
|
|
|
|
|
2021-06-30 19:46:26 -07:00
|
|
|
newtype_enum! {
|
|
|
|
/// A League of Legends season for competitive matchmaking.
|
2021-06-30 19:47:43 -07:00
|
|
|
pub newtype_enum Season(u8) {
|
2021-06-30 19:46:26 -07:00
|
|
|
{{
|
|
|
|
for (const e of seasons) {
|
|
|
|
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
|
|
|
|
}}
|
2021-09-09 22:51:15 -07:00
|
|
|
/// `{{= e['x-value'] }}`.
|
2021-06-30 19:46:26 -07:00
|
|
|
{{~ desc :line }}
|
|
|
|
/// {{= line }}
|
|
|
|
{{~}}
|
|
|
|
{{= e['x-name'] }} = {{= e['x-value'] }},
|
|
|
|
{{
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
}
|
|
|
|
}
|