Skip to main content

euv_core/game/snapshot/
enum.rs

1use super::*;
2
3/// Discrete gameplay event emitted on a fixed simulation step that must never be interpolated across render frames.
4#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
5pub enum DiscreteGameEventKind {
6    /// Instant spatial teleport resetting continuous motion interpolation.
7    #[default]
8    Teleport,
9    /// Newly spawned entity that must appear directly at its spawn pose.
10    Spawn,
11    /// Despawned entity removed from active interpolation.
12    Despawn,
13    /// Instant camera cut that must not pan smoothly from the previous viewpoint.
14    CameraCut,
15    /// Gameplay impact, hit confirmation, or trigger pulse consumed once.
16    Hit,
17}