-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstage.go
More file actions
36 lines (30 loc) · 859 Bytes
/
stage.go
File metadata and controls
36 lines (30 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package pecs
// Stage represents a scheduling stage for system execution.
// Systems are executed in stage order: Before → Default → After.
type Stage int
const (
// Before stage runs first. Use for pre-processing, input handling,
// and setup logic that other systems depend on.
Before Stage = iota
// Default stage runs second. Use for main game logic including
// combat, movement, abilities, and most gameplay systems.
Default
// After stage runs last. Use for cleanup, synchronization,
// statistics logging, and network state updates.
After
// stageCount is the total number of stages.
stageCount
)
// String returns the string representation of the stage.
func (s Stage) String() string {
switch s {
case Before:
return "Before"
case Default:
return "Default"
case After:
return "After"
default:
return "Unknown"
}
}