forked from mirror/Riven
bfa9bdc36e
Add `NONE = -1` variant to Champions
22 lines
497 B
Text
22 lines
497 B
Text
{{
|
|
const dotUtils = require('./dotUtils.js');
|
|
const seasons = require('./.seasons.json');
|
|
}}{{= dotUtils.preamble() }}
|
|
|
|
newtype_enum! {
|
|
/// A League of Legends season for competitive matchmaking.
|
|
pub newtype_enum Season(u8) {
|
|
{{
|
|
for (const e of seasons) {
|
|
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
|
|
}}
|
|
/// `{{= e['x-value'] }}`.
|
|
{{~ desc :line }}
|
|
/// {{= line }}
|
|
{{~}}
|
|
{{= e['x-name'] }} = {{= e['x-value'] }},
|
|
{{
|
|
}
|
|
}}
|
|
}
|
|
}
|