node-insim
Version:
An InSim library for NodeJS with TypeScript support
26 lines (25 loc) • 682 B
TypeScript
import { Packet } from './base';
import { PacketType } from './enums';
/**
* FLaG (yellow or blue flag changed)
*/
export declare class IS_FLG extends Packet {
readonly Size = 8;
readonly Type = PacketType.ISP_FLG;
readonly ReqI = 0;
/** Player's unique id */
PLID: number;
/** 0 = off / 1 = on */
OffOn: 0 | 1;
/** 1 = given blue / 2 = causing yellow */
Flag: FlagType;
/** Unique id of obstructed player */
CarBehind: number;
private readonly Sp3;
}
export declare enum FlagType {
/** Blue flag given (car being lapped) */
BLUE = 1,
/** Yellow flag shown (car is slow or stopped in dangerous place */
YELLOW = 2
}