UNPKG

@fivem-ts/shared

Version:

FiveM Typescript wrapper shared part

73 lines (72 loc) 3.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WeatherEnum = void 0; /** * Enum representing various weather types as string values. * * This enum is used to manipulate and identify different weather conditions in environments such as * game development, simulations, or any application that requires weather state management. * Each value in this enum corresponds to a specific weather condition, represented by a descriptive string. * * @example * ```ts * if (IsNextWeatherType(WeatherEnum.Clear)) { * console.log("The next weather is clear."); * } * ``` * * Enum Values: * - `Unknown`: Represents an unknown weather state, value `-1`. * - `Blizzard`: Represents blizzard conditions, value `'BLIZZARD'`. * - `Clear`: Represents clear weather, value `'CLEAR'`. * - `Clearing`: Represents clearing weather, value `'CLEARING'`. * - `Clouds`: Represents cloudy weather, value `'CLOUDS'`. * - `Extrasunny`: Represents extra sunny weather, value `'EXTRASUNNY'`. * - `Foggy`: Represents foggy weather, value `'FOGGY'`. * - `Halloween`: Represents Halloween-themed weather, value `'HALLOWEEN'`. * - `Neutral`: Represents neutral weather conditions, value `'NEUTRAL'`. * - `Overcast`: Represents overcast weather, value `'OVERCAST'`. * - `Rain`: Represents rainy weather, value `'RAIN'`. * - `Smog`: Represents smoggy weather, value `'SMOG'`. * - `Snow`: Represents snowy weather, value `'SNOW'`. * - `Snowlight`: Represents light snow, value `'SNOWLIGHT'`. * - `Thunder`: Represents stormy weather with thunder, value `'THUNDER'`. * - `Xmas`: Represents Christmas-themed weather, value `'XMAS'`. * * @enum{string} */ var WeatherEnum; (function (WeatherEnum) { /** Represents an unknown weather state. */ WeatherEnum[WeatherEnum["Unknown"] = -1] = "Unknown"; /** Represents blizzard conditions. */ WeatherEnum["Blizzard"] = "BLIZZARD"; /** Represents clear weather. */ WeatherEnum["Clear"] = "CLEAR"; /** Represents clearing weather. */ WeatherEnum["Clearing"] = "CLEARING"; /** Represents cloudy weather. */ WeatherEnum["Clouds"] = "CLOUDS"; /** Represents extra sunny weather. */ WeatherEnum["Extrasunny"] = "EXTRASUNNY"; /** Represents foggy weather. */ WeatherEnum["Foggy"] = "FOGGY"; /** Represents Halloween-themed weather. */ WeatherEnum["Halloween"] = "HALLOWEEN"; /** Represents neutral weather conditions. */ WeatherEnum["Neutral"] = "NEUTRAL"; /** Represents overcast weather. */ WeatherEnum["Overcast"] = "OVERCAST"; /** Represents rainy weather. */ WeatherEnum["Rain"] = "RAIN"; /** Represents smoggy weather. */ WeatherEnum["Smog"] = "SMOG"; /** Represents snowy weather. */ WeatherEnum["Snow"] = "SNOW"; /** Represents light snow. */ WeatherEnum["Snowlight"] = "SNOWLIGHT"; /** Represents stormy weather with thunder. */ WeatherEnum["Thunder"] = "THUNDER"; /** Represents Christmas-themed weather. */ WeatherEnum["Xmas"] = "XMAS"; })(WeatherEnum || (exports.WeatherEnum = WeatherEnum = {}));