Skip to content

Tell Claude to refactor "God Object" GameActor#3

Merged
xjhc merged 1 commit intomainfrom
cc/actor-refactor
Jun 21, 2025
Merged

Tell Claude to refactor "God Object" GameActor#3
xjhc merged 1 commit intomainfrom
cc/actor-refactor

Conversation

@xjhc
Copy link
Copy Markdown
Owner

@xjhc xjhc commented Jun 21, 2025

Moved the business logic into new handler methods on the managers:

  • VotingManager.HandleVoteAction now contains all the necessary validation logic.
  • MiningManager.HandleMineAction correctly validates the request and creates an EventMiningAttempted, which is the appropriate event for a submission (the success/failure will be determined later by NightResolutionManager).
  • RoleAbilityManager.HandleNightAction correctly handles the submission and storage of night actions for later resolution.

@xjhc xjhc merged commit d5f9c5a into main Jun 21, 2025
0 of 2 checks passed
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