node-insim
Version:
An InSim library for NodeJS with TypeScript support
33 lines (32 loc) • 976 B
TypeScript
import { Struct } from '../base';
import type { StructData } from '../types';
/** Sub packet for {@link IR_HOS}. Contains host information */
export declare class HInfo extends Struct {
/** Name of the host */
HName: string;
/** Short track name */
Track: string;
/** Info flags about the host */
Flags: HostInfoFlags | 0;
/** Number of people on the host */
NumConns: number;
constructor(data?: StructData<HInfo>);
}
export declare enum HostInfoFlags {
/** Host requires a spectator password */
HOS_SPECPASS = 1,
/** Bit is set if host is licensed */
HOS_LICENSED = 2,
/** Bit is set if host is S1 */
HOS_S1 = 4,
/** Bit is set if host is S2 */
HOS_S2 = 8,
/** Bit is set if host is S3 */
HOS_S3 = 16,
/** Bit is set if host is Cruise */
HOS_CRUISE = 32,
/** Indicates the first host in the list */
HOS_FIRST = 64,
/** Indicates the last host in the list */
HOS_LAST = 128
}