This commit is contained in:
root
2026-10-01 22:16:48 +02:00
parent b6d1909d7f
commit 9dfdf79fa7
39 changed files with 4560 additions and 181 deletions
+10 -5
View File
@@ -37,11 +37,16 @@ const (
PortScanDist = 0x38 // in: distance to target, km
PortScanOre = 0x40 // in: PortScanOre+ore = kg of ore remaining (8 ports)
// Mining laser and cargo hold.
// Mining laser and the containers in tow.
PortMine = 0x50 // out: 1 to mine the selected asteroid, 0 to stop
PortCargo = 0x51 // in: total cargo kg
PortCargoCap = 0x52 // in: cargo capacity kg
PortCargoOre = 0x58 // in: PortCargoOre+ore = kg of ore carried (8 ports)
PortConts = 0x51 // in: number of containers in tow
PortContKg = 0x52 // in: kg of ore in the containers in tow
PortContRoom = 0x53 // in: kg of ore the containers in tow can still take
PortContMass = 0x54 // in: mass of the containers in tow, ore included, kg
PortAttach = 0x55 // out: non-zero: take every one of your containers near the ship in tow
PortDetach = 0x56 // out: non-zero: let go of every container in tow
PortNearby = 0x57 // in: how many of your drifting containers are near enough to attach
PortContOre = 0x58 // in: PortContOre+ore = kg of that ore in the containers in tow (8 ports)
// Dropoff station.
PortStnRelX = 0x60 // in: station position relative to ship, km
@@ -50,7 +55,7 @@ const (
PortStnRelVX = 0x63 // in: station velocity relative to ship, m/s
PortStnRelVY = 0x64
PortStnRelVZ = 0x65
PortSell = 0x66 // out: 1 to sell all cargo (needs to be docked)
PortOrder = 0x66 // out: 1..10: the station delivers that many empty containers to the ship (near the station)
PortCredits = 0x67 // in: credits earned by this ship (saturating)
// Comms buffers live in RAM; these ports coordinate them.