You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
15 lines
358 B
TypeScript
15 lines
358 B
TypeScript
export class RoomId
|
|
{
|
|
private static PREVIEW_ROOM_ID_BASE: number = 0x7FFF0000;
|
|
|
|
public static makeRoomPreviewerId(roomId: number): number
|
|
{
|
|
return (roomId & 0xFFFF) + RoomId.PREVIEW_ROOM_ID_BASE;
|
|
}
|
|
|
|
public static isRoomPreviewerId(roomId: number): boolean
|
|
{
|
|
return (roomId >= RoomId.PREVIEW_ROOM_ID_BASE);
|
|
}
|
|
}
|