Code cleanup and organization #4

Open
GreenXenith wants to merge 2 commits from GreenXenith/yl_cinema:cleanup into master
First-time contributor

Replaces #2

Changes:

  • Chatcommands moved to subdirectory
  • Files with few lines and certain relevant functions merged with relevant parents
    • init.lua now includes feature files directly, registers chatcommands from a dir list, creates the movie path, and loads movies
    • chatcommands/* files host their own command code instead of living in internal.lua
  • Formspec player is in its own feature file feature_formspec.lua
  • internal.lua is now api.lua, functions are now consistently global
  • Most crafting/items are in feature_bigscreen_items.lua, aside from the bigscreen node
  • Various formatting cleanups

Not touching feature_bigscreen_entity.lua til #3 is merged.

Replaces #2 Changes: * Chatcommands moved to subdirectory * Files with few lines and certain relevant functions merged with relevant parents * `init.lua` now includes feature files directly, registers chatcommands from a dir list, creates the movie path, and loads movies * `chatcommands/*` files host their own command code instead of living in `internal.lua` * Formspec player is in its own feature file `feature_formspec.lua` * `internal.lua` is now `api.lua`, functions are now consistently global * Most crafting/items are in `feature_bigscreen_items.lua`, aside from the bigscreen node * Various formatting cleanups Not touching `feature_bigscreen_entity.lua` til #3 is merged.
GreenXenith added 2 commits 2024-09-06 23:37:23 +02:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u cleanup:GreenXenith-cleanup
git checkout GreenXenith-cleanup
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
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: your-land/yl_cinema#4
No description provided.