forked from mirror/Riven
30 lines
613 B
Plaintext
30 lines
613 B
Plaintext
{{
|
|
const dotUtils = require('./dotUtils.js');
|
|
const queues = require('./.queues.json');
|
|
}}{{= dotUtils.preamble() }}
|
|
|
|
newtype_enum! {
|
|
/// A League of Legends matchmaking queue.
|
|
pub newtype_enum Queue(u16) {
|
|
{{
|
|
for (const e of queues) {
|
|
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
|
|
}}
|
|
/// `{{= e['x-value'] }}`.
|
|
{{~ desc :line }}
|
|
/// {{= line }}
|
|
{{~}}
|
|
{{? e.notes }}
|
|
///
|
|
/// {{= e.notes }}
|
|
{{?}}
|
|
{{? e['x-deprecated'] }}
|
|
#[deprecated(note="{{= e.notes }}")]
|
|
{{?}}
|
|
{{= e['x-name'] }} = {{= e['x-value'] }},
|
|
{{
|
|
}
|
|
}}
|
|
}
|
|
}
|