Skip to content

Refactor internal classes - #21

Merged
Adammatthiesen merged 1 commit into
mainfrom
ocd
Aug 12, 2026
Merged

Adammatthiesen merged 1 commit into
mainfrom
ocd

Conversation

@Adammatthiesen

Copy link
Copy Markdown
Member

This pull request refactors the codebase to move several record and enum definitions (such as RewardEntry, EventEntry, Conditions, and related enums) out of the main preset classes (RewardPreset, SchedulePreset, EventPreset) into dedicated subpackages. This improves code organization, separation of concerns, and maintainability. All usages and imports of these types are updated accordingly throughout the codebase.

Refactoring and Code Organization:

  • Moved RewardEntry out of RewardPreset into dev.matthiesen.falling_star_rewards.common.config.def.reward.RewardEntry, and updated all usages and imports in command and config files. [1] [2] [3] [4] [5] [6] [7]
  • Moved EventEntry, Conditions, and their nested enums (TimeMode, WeatherMode) out of SchedulePreset into dev.matthiesen.falling_star_rewards.common.config.def.schedule, and updated all references and imports. [1] [2] [3] [4] [5] [6] [7]
  • Moved SelectionMode, TimeMode, and WeatherMode enums to dev.matthiesen.falling_star_rewards.common.interfaces and updated their usage in SchedulePreset and related logic. [1] [2] [3]
  • Moved Spawn, Announcement, and their enum types out of EventPreset into dev.matthiesen.falling_star_rewards.common.config.def.event, and updated related imports. [1] [2]

General Codebase Cleanup:

  • Updated wildcard imports and removed now-unnecessary inner class definitions from the main preset classes, reducing file size and improving clarity. [1] [2] [3] [4] [5] [6]

These changes are purely organizational and do not affect runtime behavior, but they significantly improve the maintainability and readability of the codebase.

@Adammatthiesen
Adammatthiesen marked this pull request as ready for review August 12, 2026 07:57
@Adammatthiesen
Adammatthiesen merged commit 63f1182 into main Aug 12, 2026
1 check passed
@Adammatthiesen
Adammatthiesen deleted the ocd branch August 12, 2026 07:58
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