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

5 lines
157 B
TypeScript
Raw Normal View History

2024-09-07 21:45:00 -05:00
import { NATION_IDS } from "@blitzkit/core";
2023-12-12 13:40:58 -06:00
export function toUniqueId(nation: string, id: number) {
return (id << 8) + (NATION_IDS[nation] << 4) + 1;
}