Implement server lifecycle hooks (on_boot, on_shutdown, on_tick, on_save, on_reload) #84
Labels
No labels
Blocked
Duplicate
MoSCoW/Could Have
MoSCoW/Must Have
MoSCoW/Should Have
Points/1
Points/13
Points/2
Points/21
Points/3
Points/5
Points/8
Priority/Backlog
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
State/Completed
State/In progress
State/In review
State/Paused
State/Unverified
State/Verified
State/Wont Do
Type/Bug
Type/Epic
Type/Feature
Type/Legendary
Type/Task
Type/Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#82 Epic: Lifecycle Hook System
aethyr/Aethyr
Reference: aethyr/Aethyr#84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Metadata
feat(lifecycle): add server lifecycle hooksfeature/m1-lifecycle-hooksBackground and Context
The specification defines five server-level lifecycle hooks that fire at key moments in
the server's lifecycle. These hooks allow subsystems (event sourcing, monitoring, etc.)
to register for notifications without tight coupling to the server code.
Expected Behavior
on_bootfires afterManager#initializecompletes and all objects are loadedon_shutdownfires when the server begins graceful shutdownon_tickfires each game tick (update cycle)on_savefires before and after periodicsave_alloperationson_reloadfires whenareloadhot-reloads source filesAcceptance Criteria
Server#initialize, shutdown path, update loop,save cycle, and reload handler
HookEventdataSubtasks
on_bootemission to server startupon_shutdownemission to graceful shutdown pathon_tickemission to the update loopon_saveemission (before/after) to save cycleon_reloademission to theareloadhandlerDefinition of Done
This issue is complete when:
Commit Message in Metadata exactly.
master, reviewed, and merged.