Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Split large files and rethink directory structure #343

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

meyfa
Copy link
Owner

@meyfa meyfa commented Feb 22, 2025

  • Split world.cob into multiple smaller files, as it was over 2000 lines and becoming hard to manage.
  • Similarly, split players.cob into one file for I/O and one for player-related logic.
  • Rename chunks.cob into client-chunks.cob to better reflect its purpose and avoid confusion with world/chunks.cob.
  • Move everything related to encode/decode into src/encoding/ to free up the top-level src/ directory.
  • Move chat.cob and coordinates.cob into src/util/ as they don't contain important functionality.
  • Move test files to reflect the src changes.

* Split `world.cob` into multiple smaller files, as it was over 2000
    lines and becoming hard to manage.
* Similarly, split `players.cob` into one file for I/O and one for
    player-related logic.
* Rename `chunks.cob` into `client-chunks.cob` to better reflect its
    purpose and avoid confusion with `world/chunks.cob`.
* Move everything related to encode/decode into `src/encoding/` to free
    up the top-level `src/` directory.
* Move `chat.cob` and `coordinates.cob` into `src/util/` as they don't
    contain important functionality.
* Move test files to reflect the src changes.
@meyfa meyfa merged commit c6b85d2 into main Feb 22, 2025
3 checks passed
@meyfa meyfa deleted the refactor/split-files branch February 22, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant