Skip to content

Conversation

@Mosch0512
Copy link
Contributor

This pull request undertakes a significant refactoring of the game's core scene management and utility functions. By extracting various functionalities from a single, large source file into multiple specialized files, the changes aim to enhance modularity, improve code maintainability, and establish a clearer separation of concerns. This architectural improvement will facilitate easier development, debugging, and future expansion of game features.

Highlights

  • Scene Modularization: The monolithic 'ZzzScene.cpp' file has been broken down into several dedicated scene files: 'LoginScene', 'CharacterScene', 'MainScene', 'WebzenScene', and 'SceneManager', significantly improving code organization.
  • Camera Functionality Extraction: All camera-related logic and variables have been moved from 'ZzzScene.cpp' into new, specialized 'CameraUtility.cpp' and 'CameraUtility.h' files.
  • Common Utilities Consolidation: Shared utility functions, including abuse filters, text processing, audio controls, and rendering helpers, have been extracted into 'SceneCommon.cpp' and 'SceneCommon.h' for better reusability.
  • Server Port Update: The default game server port 'g_ServerPort' has been updated from '44406' to '55902' in 'ZzzScene.cpp'.
  • New Character Account Limit Constant: A new preprocessor definition, 'MAX_CHARACTERS_PER_ACCOUNT', has been added to '_define.h' to explicitly define the maximum number of characters per account.

@Mosch0512 Mosch0512 force-pushed the refactore-scenes branch 2 times, most recently from 5166682 to 865712b Compare January 16, 2026 12:21
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