mindustry logic execution, map- and schematic- parsing and rendering
| -rw-r--r-- | src/block/mod.rs | 1 | ||||
| -rw-r--r-- | src/block/payload.rs | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/block/mod.rs b/src/block/mod.rs index 39dcba0..161db96 100644 --- a/src/block/mod.rs +++ b/src/block/mod.rs @@ -9,6 +9,7 @@ pub mod defense; pub mod extraction; pub mod factory; pub mod fluid; +pub mod payload; pub mod power; pub mod simple; pub mod transport; diff --git a/src/block/payload.rs b/src/block/payload.rs new file mode 100644 index 0000000..ea9a251 --- /dev/null +++ b/src/block/payload.rs @@ -0,0 +1,20 @@ +use crate::block::make_register; +use crate::block::simple::SimpleBlock; + +make_register! +( + GROUND_FACTORY: "ground-factory" => SimpleBlock::new(3, false); // TODO config: unit index + AIR_FACTORY: "air-factory" => SimpleBlock::new(3, false); // TODO config: unit index + NAVAL_FACTORY: "naval-factory" => SimpleBlock::new(3, false); // TODO config: unit index + ADDITIVE_RECONSTRUCTOR: "additive-reconstructor" => SimpleBlock::new(3, false); + MULTIPLICATIVE_RECONSTRUCTOR: "multiplicative-reconstructor" => SimpleBlock::new(5, false); + EXPONENTIAL_RECONSTRUCTOR: "exponential-reconstructor" => SimpleBlock::new(7, false); + TETRATIVE_RECONSTRUCTOR: "tetrative-reconstructor" => SimpleBlock::new(9, false); + REPAIR_POINT: "repair-point" => SimpleBlock::new(1, true); + REPAIR_TURRET: "repair-turret" => SimpleBlock::new(2, true); + PAYLOAD_CONVEYOR: "payload-conveyor" => SimpleBlock::new(3, false); + PAYLOAD_ROUTER: "payload-router" => SimpleBlock::new(3, false); + // sandbox only + PAYLOAD_SOURCE: "payload-source" => SimpleBlock::new(5, false); // TODO config: block/unit + PAYLOAD_VOID: "payload-void" => SimpleBlock::new(5, true); +); |