More actions
(trying out a Module approach to data storage/access) |
(added p thing) |
||
Line 1: | Line 1: | ||
data = { | local p = {} | ||
p.data = { | |||
["caption"] = "Example Methalox Engine", | ["caption"] = "Example Methalox Engine", | ||
["file"] = "T3-ST_Default.png", | ["file"] = "T3-ST_Default.png", | ||
Line 45: | Line 47: | ||
["stores_research"] = false, | ["stores_research"] = false, | ||
} | } | ||
return p |
Latest revision as of 18:05, 11 October 2024
Documentation for this module may be created at Module:Example/doc
local p = {}
p.data = {
["caption"] = "Example Methalox Engine",
["file"] = "T3-ST_Default.png",
["imp_tol"] = "10",
["manufacturer"] = "Community Conglomerate",
["mass"] = "0.500",
["max_temp"] = "1000",
["modules"] = {
["engine"] = {
["flags"] = "Stops under 10%",
["isp"] = {
["atm"] = "223",
["vac"] = "628",
},
["max_thrust"] = {
["atm"] = "42.0",
["vac"] = "88.0",
},
["min_thrust"] = {
["atm"] = "0.0",
["vac"] = "0.0",
},
["propellants"] = {
["methane"] = "0.010",
["oxidizer"] = "0.040",
["units"] = "t/s",
},
},
["generator"] = {
["always_active"] = true,
["engine_alternator"] = true,
["outputs"] = {
["electric charge"] = "2.000",
["units"] = "/s",
},
},
["gimbal"] = {
["pitch"] = "2",
["yaw"] = "2",
},
},
["name"] = "T3-ST \"Default\"",
["resources"] = false,
["size"] = "SM",
["stores_research"] = false,
}
return p