2021-06-30 23:34:34 +00:00
|
|
|
{{
|
|
|
|
const dotUtils = require('./dotUtils.js');
|
|
|
|
const queues = require('./.queues.json');
|
|
|
|
}}{{= dotUtils.preamble() }}
|
|
|
|
|
2021-07-01 02:44:24 +00:00
|
|
|
newtype_enum! {
|
|
|
|
/// A League of Legends matchmaking queue.
|
|
|
|
pub newtype_enum Queue(u16) {
|
2021-06-30 23:34:34 +00:00
|
|
|
{{
|
|
|
|
for (const e of queues) {
|
|
|
|
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
|
|
|
|
}}
|
2021-09-10 05:51:15 +00:00
|
|
|
/// `{{= e['x-value'] }}`.
|
2021-06-30 23:34:34 +00:00
|
|
|
{{~ desc :line }}
|
2021-07-01 02:44:24 +00:00
|
|
|
/// {{= line }}
|
2021-06-30 23:34:34 +00:00
|
|
|
{{~}}
|
|
|
|
{{? e['x-deprecated'] }}
|
2021-07-01 02:44:24 +00:00
|
|
|
/// {{= e.notes }}
|
|
|
|
#[deprecated(note="{{= e.notes }}")]
|
2021-06-30 23:34:34 +00:00
|
|
|
{{?}}
|
2021-07-01 02:44:24 +00:00
|
|
|
{{= e['x-name'] }} = {{= e['x-value'] }},
|
2021-06-30 23:34:34 +00:00
|
|
|
{{
|
|
|
|
}
|
|
|
|
}}
|
2021-07-01 02:44:24 +00:00
|
|
|
}
|
|
|
|
}
|