-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create "internal" skeleton structure
- Loading branch information
Showing
6 changed files
with
153 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
-- build-related logic for the quickfort script | ||
|
||
local _ENV = mkmodule('hack.scripts.internal.quickfort.build') | ||
|
||
local quickfort_common = require('hack.scripts.internal.quickfort.common') | ||
local log = quickfort_common.log | ||
|
||
function do_run(zlevel, grid) | ||
local stats = nil | ||
print('"quickfort run" not yet implemented for mode: build') | ||
return stats | ||
end | ||
|
||
function do_orders(zlevel, grid) | ||
local stats = nil | ||
print('"quickfort orders" not yet implemented for mode: build') | ||
return stats | ||
end | ||
|
||
function do_undo(zlevel, grid) | ||
local stats = nil | ||
print('"quickfort undo" not yet implemented for mode: build') | ||
return stats | ||
end | ||
|
||
return _ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-- common logic for the quickfort modules | ||
|
||
local _ENV = mkmodule('hack.scripts.internal.quickfort.common') | ||
|
||
settings = { | ||
blueprints_dir = 'blueprints', | ||
force_marker_mode = false, | ||
force_interactive_build = false, | ||
} | ||
|
||
verbose = false | ||
|
||
function log(...) | ||
if verbose then print(string.format(...)) end | ||
end | ||
|
||
return _ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- dig-related logic for the quickfort script | ||
|
||
local _ENV = mkmodule('hack.scripts.internal.quickfort.dig') | ||
|
||
local quickfort_common = require('hack.scripts.internal.quickfort.common') | ||
local log = quickfort_common.log | ||
|
||
function do_run(zlevel, grid) | ||
local stats = nil | ||
print('"quickfort run" not yet implemented for mode: dig') | ||
return stats | ||
end | ||
|
||
function do_orders(zlevel, grid) | ||
log('nothing to do for blueprints in mode: dig') | ||
return nil | ||
end | ||
|
||
function do_undo(zlevel, grid) | ||
local stats = nil | ||
print('"quickfort undo" not yet implemented for mode: dig') | ||
return stats | ||
end | ||
|
||
return _ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- place-related logic for the quickfort script | ||
|
||
local _ENV = mkmodule('hack.scripts.internal.quickfort.place') | ||
|
||
local quickfort_common = require('hack.scripts.internal.quickfort.common') | ||
local log = quickfort_common.log | ||
|
||
function do_run(zlevel, grid) | ||
local stats = nil | ||
print('"quickfort run" not yet implemented for mode: place') | ||
return stats | ||
end | ||
|
||
function do_orders(zlevel, grid) | ||
log('nothing to do for blueprints in mode: place') | ||
return nil | ||
end | ||
|
||
function do_undo(zlevel, grid) | ||
local stats = nil | ||
print('"quickfort undo" not yet implemented for mode: place') | ||
return stats | ||
end | ||
|
||
return _ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
-- query-related logic for the quickfort script | ||
|
||
local _ENV = mkmodule('hack.scripts.internal.quickfort.query') | ||
|
||
local quickfort_common = require('hack.scripts.internal.quickfort.common') | ||
local log = quickfort_common.log | ||
|
||
function do_run(zlevel, grid) | ||
local stats = nil | ||
print('"quickfort run" not yet implemented for mode: query') | ||
return stats | ||
end | ||
|
||
function do_orders(zlevel, grid) | ||
log('nothing to do for blueprints in mode: query') | ||
return nil | ||
end | ||
|
||
function do_undo(zlevel, grid) | ||
print('cannot undo blueprints for mode: query') | ||
return nil | ||
end | ||
|
||
return _ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters