mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/block/logic.rs')
| -rw-r--r-- | src/block/logic.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/block/logic.rs b/src/block/logic.rs new file mode 100644 index 0000000..f9c6094 --- /dev/null +++ b/src/block/logic.rs @@ -0,0 +1,15 @@ +use crate::block::make_register; +use crate::block::simple::SimpleBlock; + +make_register! +( + MESSAGE: "message" => SimpleBlock::new(1, true); // TODO config: message + SWITCH: "switch" => SimpleBlock::new(1, true); // TODO config: enabled + MICRO_PROCESSOR: "micro-processor" => SimpleBlock::new(1, true); // TODO config: code & links + LOGIC_PROCESSOR: "logic-processor" => SimpleBlock::new(2, true); // TODO config: code & links + HYPER_PROCESSOR: "hyper-processor" => SimpleBlock::new(3, true); // TODO config: code & links + MEMORY_CELL: "memory-cell" => SimpleBlock::new(1, true); + MEMORY_BANK: "memory-bank" => SimpleBlock::new(2, true); + LOGIC_DISPLAY: "logic-display" => SimpleBlock::new(3, true); + LARGE_LOGIC_DISPLAY: "large-logic-display" => SimpleBlock::new(6, true); +); |