Refactor Requirements #5

Closed
opened 2020-06-06 20:33:07 +00:00 by NGnius · 1 comment
NGnius commented 2020-06-06 20:33:07 +00:00 (Migrated from git.exmods.org)

Pixi was originally designed to only handle image importing, but Pixi's functionality has expanded to importing other files as well.
As a direct result, Pixi needs to be remodeled and refactored to make support for new filetypes easier.

The refactored code should satisfy the following requirements:

  • Optimised structure importing (less/no freezing during import)
  • Generic block placement (re-usable)
  • Modular filetype importing (standard interface)
  • Blueprint file loading & block conversion interception

I'm picturing a loading process something like this.

Without blueprint interception:

PixiCommand "filename" -> determine filetype -> find filetype's conversion module -> get blocks to place from module -> place blocks

With blueprint interception:

PixiCommand "filename" -> determine filetype -> find filetype's conversion module -> get blueprints to place from module -> convert blueprints to blocks -> place blocks

Pixi was originally designed to only handle image importing, but Pixi's functionality has expanded to importing other files as well. As a direct result, Pixi needs to be remodeled and refactored to make support for new filetypes easier. The refactored code should satisfy the following requirements: - Optimised structure importing (less/no freezing during import) - Generic block placement (re-usable) - Modular filetype importing (standard interface) - Blueprint file loading & block conversion interception I'm picturing a loading process something like this. Without blueprint interception: PixiCommand "filename" -> determine filetype -> find filetype's conversion module -> get blocks to place from module -> place blocks With blueprint interception: PixiCommand "filename" -> determine filetype -> find filetype's conversion module -> get blueprints to place from module -> convert blueprints to blocks -> place blocks
NGnius commented 2020-09-01 21:39:25 +00:00 (Migrated from git.exmods.org)

This work has been completed in v1.0.0 (as of commit 1b126b69c0 )

This work has been completed in v1.0.0 (as of commit 1b126b69c0 )
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ExMods/Pixi#5
No description provided.