Riven/riven/srcgen/consts/map.rs.dt
Mingwei Samuel bfa9bdc36e Add deny-unknown-enum-variants features
Add `NONE = -1` variant to Champions
2022-06-20 20:43:16 -07:00

22 lines
454 B
Text

{{
const dotUtils = require('./dotUtils.js');
const maps = require('./.maps.json');
}}{{= dotUtils.preamble() }}
newtype_enum! {
/// A League of Legends map.
pub newtype_enum Map(u8) {
{{
for (const e of maps) {
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
}}
/// `{{= e['x-value'] }}`.
{{~ desc :line }}
/// {{= line }}
{{~}}
{{= e['x-name'] }} = {{= e['x-value'] }},
{{
}
}}
}
}