Mariana Islands

This commit is contained in:
Frank 2021-05-13 23:30:34 +02:00
parent a893d46cb9
commit 0410ae6877
2 changed files with 25 additions and 0 deletions

View File

@ -50,6 +50,7 @@ BIGSMOKEPRESET = {
-- @field #string PersianGulf Persian Gulf map. -- @field #string PersianGulf Persian Gulf map.
-- @field #string TheChannel The Channel map. -- @field #string TheChannel The Channel map.
-- @field #string Syria Syria map. -- @field #string Syria Syria map.
-- @field #string MarianaIslands Mariana Islands map.
DCSMAP = { DCSMAP = {
Caucasus="Caucasus", Caucasus="Caucasus",
NTTR="Nevada", NTTR="Nevada",
@ -57,6 +58,7 @@ DCSMAP = {
PersianGulf="PersianGulf", PersianGulf="PersianGulf",
TheChannel="TheChannel", TheChannel="TheChannel",
Syria="Syria", Syria="Syria",
MarianaIslands="MarianaIslands"
} }
@ -1182,6 +1184,8 @@ function UTILS.GetMagneticDeclination(map)
declination=-10 declination=-10
elseif map==DCSMAP.Syria then elseif map==DCSMAP.Syria then
declination=5 declination=5
elseif map==DCSMAP.MarianaIslands then
declination=-2
else else
declination=0 declination=0
end end
@ -1310,6 +1314,8 @@ function UTILS.GMTToLocalTimeDifference()
return 2 -- This map currently needs +2 return 2 -- This map currently needs +2
elseif theatre==DCSMAP.Syria then elseif theatre==DCSMAP.Syria then
return 3 -- Damascus is UTC+3 hours return 3 -- Damascus is UTC+3 hours
elseif theatre==DCSMAP.MarianaIslands then
return 2 -- Guam is UTC+10 hours but is +2 for now.
else else
BASE:E(string.format("ERROR: Unknown Map %s in UTILS.GMTToLocal function. Returning 0", tostring(theatre))) BASE:E(string.format("ERROR: Unknown Map %s in UTILS.GMTToLocal function. Returning 0", tostring(theatre)))
return 0 return 0

View File

@ -416,6 +416,25 @@ AIRBASE.Syria={
} }
--- Airbases of the Mariana Islands map.
--
-- * AIRBASE.MarianaIslands.Rota_International_Airport
-- * AIRBASE.MarianaIslands.Andersen
-- * AIRBASE.MarianaIslands.Northwest_Field
-- * AIRBASE.MarianaIslands.Antonio_B_Won_Pat_International_Airport
-- * AIRBASE.MarianaIslands.Saipan_International_Airport
-- * AIRBASE.MarianaIslands.Tinian_International_Airport
-- @field MarianaIslands
AIRBASE.MarianaIslands={
["Rota_International_Airport"]="Rota International Airport",
["Andersen"]="Andersen",
["Northwest_Field"]="Northwest_Field",
["Antonio_B_Won_Pat_International_Airport"]="Antonio B. Won Pat International Airport",
["Saipan_International_Airport"]="Saipan International Airport",
["Tinian_International_Airport"]="Tinian International Airport",
}
--- AIRBASE.ParkingSpot ".Coordinate, ".TerminalID", ".TerminalType", ".TOAC", ".Free", ".TerminalID0", ".DistToRwy". --- AIRBASE.ParkingSpot ".Coordinate, ".TerminalID", ".TerminalType", ".TOAC", ".Free", ".TerminalID0", ".DistToRwy".
-- @type AIRBASE.ParkingSpot -- @type AIRBASE.ParkingSpot
-- @field Core.Point#COORDINATE Coordinate Coordinate of the parking spot. -- @field Core.Point#COORDINATE Coordinate Coordinate of the parking spot.