forked from mirror/Riven
1
0
Fork 0
Riven/riven/srcgen/consts/queue.rs.dt

30 lines
613 B
Plaintext
Raw Normal View History

2021-06-30 23:34:34 +00:00
{{
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) {
2021-06-30 23:34:34 +00:00
{{
for (const e of queues) {
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
}}
/// `{{= e['x-value'] }}`.
2021-06-30 23:34:34 +00:00
{{~ desc :line }}
/// {{= line }}
2021-06-30 23:34:34 +00:00
{{~}}
{{? e.notes }}
///
/// {{= e.notes }}
{{?}}
{{? e['x-deprecated'] }}
#[deprecated(note="{{= e.notes }}")]
2021-06-30 23:34:34 +00:00
{{?}}
{{= e['x-name'] }} = {{= e['x-value'] }},
2021-06-30 23:34:34 +00:00
{{
}
}}
}
}