2021-06-30 23:34:34 +00:00
|
|
|
{{
|
|
|
|
const dotUtils = require('./dotUtils.js');
|
|
|
|
const maps = require('./.maps.json');
|
|
|
|
}}{{= dotUtils.preamble() }}
|
|
|
|
|
2021-07-01 02:40:48 +00:00
|
|
|
newtype_enum! {
|
|
|
|
/// A League of Legends map.
|
|
|
|
pub newtype_enum Map(u8) {
|
2021-06-30 23:34:34 +00:00
|
|
|
{{
|
|
|
|
for (const e of maps) {
|
|
|
|
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:40:48 +00:00
|
|
|
/// {{= line }}
|
2021-06-30 23:34:34 +00:00
|
|
|
{{~}}
|
2021-07-01 02:40:48 +00:00
|
|
|
{{= e['x-name'] }} = {{= e['x-value'] }},
|
2021-06-30 23:34:34 +00:00
|
|
|
{{
|
|
|
|
}
|
|
|
|
}}
|
2021-07-01 02:40:48 +00:00
|
|
|
}
|
2021-06-30 23:34:34 +00:00
|
|
|
}
|