mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: more defs
This commit is contained in:
1 parent
2e2ab9b2d9
commit
66dbc5b2ed
10 files changed
+192
-73
No files matched your search
@@ -5,5 +5,5 @@ export async function readXMLDVPL<Type>(file: string) {
|
||||
const parser = new XMLParser();
|
||||
const xml = await readStringDVPL(file);
|
||||
|
||||
return parser.parse(xml).root as Type;
|
||||
return parser.parse(xml) as Type;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { NATION_IDS } from '../../constants/nations';
|
||||
|
||||
export function toUniqueId(nation: string, id: number) {
|
||||
return (id << 8) + (NATION_IDS[nation] << 4) + 1;
|
||||
}
|
||||
Reference in new issue
Block a user