Files
blitzkit/src/core/blitz/toUniqueId.ts
T

5 lines
166 B
TypeScript
Raw Normal View History

2023-12-12 13:40:58 -06:00
import { NATION_IDS } from '../../constants/nations';
export function toUniqueId(nation: string, id: number) {
return (id << 8) + (NATION_IDS[nation] << 4) + 1;
}