forked from mirror/Riven
bfa9bdc36e
Add `NONE = -1` variant to Champions
26 lines
580 B
Text
26 lines
580 B
Text
{{
|
|
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['x-deprecated'] }}
|
|
/// {{= e.notes }}
|
|
#[deprecated(note="{{= e.notes }}")]
|
|
{{?}}
|
|
{{= e['x-name'] }} = {{= e['x-value'] }},
|
|
{{
|
|
}
|
|
}}
|
|
}
|
|
}
|