Server/project/src/models/spt/config/IWeatherConfig.ts

30 lines
681 B
TypeScript
Raw Normal View History

2023-03-03 15:23:46 +00:00
import { WindDirection } from "../../../models/enums/WindDirection";
import { MinMax } from "../../common/MinMax";
import { IBaseConfig } from "./IBaseConfig";
export interface IWeatherConfig extends IBaseConfig
{
kind: "aki-weather"
acceleration: number
weather: Weather
}
export interface Weather
{
clouds: WeatherSettings<string>
2023-03-03 15:23:46 +00:00
windSpeed: WeatherSettings<number>
windDirection: WeatherSettings<WindDirection>
windGustiness: MinMax
rain: WeatherSettings<number>
rainIntensity: MinMax
fog: WeatherSettings<string>
temp: MinMax
pressure: MinMax
}
export interface WeatherSettings<T>
{
values: T[]
weights: number[]
}