Skip to content

Commit

Permalink
Update miz file; add default templates
Browse files Browse the repository at this point in the history
  • Loading branch information
FleMo93 committed Feb 21, 2021
1 parent 41e2ab6 commit 6308b87
Show file tree
Hide file tree
Showing 20 changed files with 847 additions and 149 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
cmd/extract
.vscode
.vscode
*.log
*.miz
*.miz.zip
*.exe
8 changes: 3 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"dynamicgoweather"
"log"
"os"
"randomdcsweather"
"strings"
)

Expand All @@ -20,14 +20,12 @@ func main() {
}

if missionFile == "" {
log.Fatal("Missing \"--m\" parameter")
os.Exit(1)
log.Fatal("Missing \"-m\" parameter")
}

err := dynamicgoweather.SetWeather(missionFile, weather)
err := randomdcsweather.SetWeather(missionFile, weather)

if err != nil {
log.Fatal(err)
os.Exit(1)
}
}
111 changes: 0 additions & 111 deletions cmd/templates/Someother

This file was deleted.

57 changes: 57 additions & 0 deletions cmd/weather-templates/Autumn, Clear sky
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
["weather"] =
{
["name_ru"] = "Осень. Штиль",
["wind"] =
{
["at8000"] =
{
["speed"] = 0,
["dir"] = 0,
}, -- end of ["at8000"]
["atGround"] =
{
["speed"] = 0,
["dir"] = 0,
}, -- end of ["atGround"]
["at2000"] =
{
["speed"] = 0,
["dir"] = 0,
}, -- end of ["at2000"]
}, -- end of ["wind"]
["enable_fog"] = false,
["season"] =
{
["temperature"] = 23,
}, -- end of ["season"]
["qnh"] = 775,
["cyclones"] =
{
}, -- end of ["cyclones"]
["name_de"] = "Herbst, Klar",
["dust_density"] = 0,
["enable_dust"] = false,
["clouds"] =
{
["thickness"] = 0,
["density"] = 0,
["base"] = 0,
["iprecptns"] = 0,
}, -- end of ["clouds"]
["atmosphere_type"] = 0,
["groundTurbulence"] = 0,
["name_fr"] = "Automne, ciel dégagé",
["type_weather"] = 0,
["name"] = "Autumn, Clear sky",
["fog"] =
{
["thickness"] = 0,
["visibility"] = 0,
}, -- end of ["fog"]
["visibility"] =
{
["distance"] = 80000,
}, -- end of ["visibility"]
["name_es"] = "Otoño. Despejado",
["name_cn"] = "秋季 晴天",
}, -- end of ["weather"]
57 changes: 57 additions & 0 deletions cmd/weather-templates/Autumn, Heavy rain
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
["weather"] =
{
["name_ru"] = "Осень. Ливень",
["wind"] =
{
["at8000"] =
{
["speed"] = 7,
["dir"] = 287,
}, -- end of ["at8000"]
["atGround"] =
{
["speed"] = 9,
["dir"] = 286,
}, -- end of ["atGround"]
["at2000"] =
{
["speed"] = 13,
["dir"] = 52,
}, -- end of ["at2000"]
}, -- end of ["wind"]
["enable_fog"] = true,
["season"] =
{
["temperature"] = 21,
}, -- end of ["season"]
["qnh"] = 745,
["cyclones"] =
{
}, -- end of ["cyclones"]
["name_de"] = "Herbst, Starker Regen",
["dust_density"] = 0,
["enable_dust"] = false,
["clouds"] =
{
["thickness"] = 600,
["density"] = 9,
["base"] = 500,
["iprecptns"] = 1,
}, -- end of ["clouds"]
["atmosphere_type"] = 0,
["groundTurbulence"] = 14,
["name_fr"] = "Automne, pluie violente",
["type_weather"] = 0,
["name"] = "Autumn, Heavy rain",
["fog"] =
{
["thickness"] = 300,
["visibility"] = 1000,
}, -- end of ["fog"]
["name_es"] = "Otoño. Lluvia fuerte",
["visibility"] =
{
["distance"] = 80000,
}, -- end of ["visibility"]
["name_cn"] = "秋季 暴雨",
}, -- end of ["weather"]
57 changes: 57 additions & 0 deletions cmd/weather-templates/Autumn, Rainy day
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
["weather"] =
{
["name_ru"] = "Осень. Дождь",
["wind"] =
{
["at8000"] =
{
["speed"] = 4,
["dir"] = 221,
}, -- end of ["at8000"]
["at2000"] =
{
["speed"] = 7,
["dir"] = 167,
}, -- end of ["at2000"]
["atGround"] =
{
["speed"] = 4,
["dir"] = 221,
}, -- end of ["atGround"]
}, -- end of ["wind"]
["enable_fog"] = false,
["season"] =
{
["temperature"] = 23,
}, -- end of ["season"]
["qnh"] = 750,
["cyclones"] =
{
}, -- end of ["cyclones"]
["name_de"] = "Herbst, Regen",
["dust_density"] = 0,
["enable_dust"] = false,
["clouds"] =
{
["thickness"] = 430,
["density"] = 7,
["base"] = 0,
["iprecptns"] = 1,
}, -- end of ["clouds"]
["atmosphere_type"] = 0,
["groundTurbulence"] = 7,
["name_fr"] = "Automne, averses",
["type_weather"] = 0,
["name"] = "Autumn, Rainy day",
["fog"] =
{
["thickness"] = 0,
["visibility"] = 0,
}, -- end of ["fog"]
["name_cn"] = "秋季 雨天",
["visibility"] =
{
["distance"] = 80000,
}, -- end of ["visibility"]
["name_es"] = "Otoño. Lluvia",
}, -- end of ["weather"]
57 changes: 57 additions & 0 deletions cmd/weather-templates/Spring, Clear sky
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
["weather"] =
{
["name_ru"] = "Весна. Штиль",
["wind"] =
{
["at8000"] =
{
["speed"] = 0,
["dir"] = 0,
}, -- end of ["at8000"]
["at2000"] =
{
["speed"] = 0,
["dir"] = 0,
}, -- end of ["at2000"]
["atGround"] =
{
["speed"] = 0,
["dir"] = 0,
}, -- end of ["atGround"]
}, -- end of ["wind"]
["enable_fog"] = false,
["season"] =
{
["temperature"] = 21,
}, -- end of ["season"]
["qnh"] = 775,
["cyclones"] =
{
}, -- end of ["cyclones"]
["name_de"] = "Frühling, Klar",
["dust_density"] = 0,
["enable_dust"] = false,
["clouds"] =
{
["thickness"] = 0,
["density"] = 0,
["base"] = 0,
["iprecptns"] = 0,
}, -- end of ["clouds"]
["atmosphere_type"] = 0,
["groundTurbulence"] = 0,
["name_fr"] = "Printemps, ciel dégagé",
["type_weather"] = 0,
["name"] = "Spring, Clear sky",
["fog"] =
{
["thickness"] = 0,
["visibility"] = 0,
}, -- end of ["fog"]
["name_cn"] = "春季 晴天",
["name_es"] = "Primavera. Despejado",
["visibility"] =
{
["distance"] = 80000,
}, -- end of ["visibility"]
}, -- end of ["weather"]
Loading

0 comments on commit 6308b87

Please sign in to comment.