mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
6 lines
166 B
TypeScript
6 lines
166 B
TypeScript
import { NATION_IDS } from '../../constants/nations';
|
|
|
|
export function toUniqueId(nation: string, id: number) {
|
|
return (id << 8) + (NATION_IDS[nation] << 4) + 1;
|
|
}
|