mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
refactor(editor): extract simple texture helpers into cli_texture_helpers.cpp
Moves the two basic texture-helper handlers (--gen-texture,
--add-texture-to-zone) out of main.cpp into a new
cli_texture_helpers.{hpp,cpp} module. The first synthesizes
solid hex / checker / grid PNG placeholders; the second
imports an existing PNG into a zone with optional rename and
idempotent re-run support (skip if bytes already match).
Both complement the procedural pattern generators in
cli_gen_texture (which handles the 43 named patterns).
main.cpp shrinks by 196 lines (2,022 to 1,826) and finally
drops below 2K lines.
This commit is contained in:
parent
e117e5aaff
commit
f5f4c3d782
4 changed files with 264 additions and 200 deletions
18
tools/editor/cli_texture_helpers.hpp
Normal file
18
tools/editor/cli_texture_helpers.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
namespace wowee {
|
||||
namespace editor {
|
||||
namespace cli {
|
||||
|
||||
// Dispatch the simple texture-helper handlers — placeholder
|
||||
// generation and PNG import workflows that complement the
|
||||
// procedural pattern generators in cli_gen_texture.
|
||||
// --gen-texture solid hex / checker / grid PNG
|
||||
// --add-texture-to-zone import an existing PNG into a zone
|
||||
//
|
||||
// Returns true if matched; outRc holds the exit code.
|
||||
bool handleTextureHelpers(int& i, int argc, char** argv, int& outRc);
|
||||
|
||||
} // namespace cli
|
||||
} // namespace editor
|
||||
} // namespace wowee
|
||||
Loading…
Add table
Add a link
Reference in a new issue