2021-06-30 23:34:34 +00:00
|
|
|
{{
|
|
|
|
const dotUtils = require('./dotUtils.js');
|
|
|
|
const seasons = require('./.seasons.json');
|
|
|
|
}}{{= dotUtils.preamble() }}
|
|
|
|
|
2021-07-01 02:47:43 +00:00
|
|
|
use serde::{ Serialize, Deserialize };
|
|
|
|
|
2021-07-01 02:46:26 +00:00
|
|
|
newtype_enum! {
|
|
|
|
/// A League of Legends season for competitive matchmaking.
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
#[serde(transparent)]
|
2021-07-01 02:47:43 +00:00
|
|
|
pub newtype_enum Season(u8) {
|
2021-07-01 02:46:26 +00:00
|
|
|
{{
|
|
|
|
for (const e of seasons) {
|
|
|
|
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
|
|
|
|
}}
|
2021-09-10 05:51:15 +00:00
|
|
|
/// `{{= e['x-value'] }}`.
|
2021-07-01 02:46:26 +00:00
|
|
|
{{~ desc :line }}
|
|
|
|
/// {{= line }}
|
|
|
|
{{~}}
|
|
|
|
{{= e['x-name'] }} = {{= e['x-value'] }},
|
|
|
|
{{
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
}
|
|
|
|
}
|