Add minimal Pit implementation (without win conditions) #34

This commit is contained in:
NG (Graham) committed 2025-09-09 23:36:34 -04:00
1 parent e33a499415
commit f2de67b338
13 files changed
+427 -49

No files matched your search

+5
View File
@@ -90,6 +90,10 @@ pub enum GameMessage {
property: literustlib::packet::Property,
data: Box<dyn crate::Broadcastable>,
},
PlayerInputChanged {
user_id: i32,
data: rlnl::events::ingame::PlayerIdAndInputData,
},
Motion {
user_id: i32,
motion: rlnl::machine_motion::MachineMotion,
@@ -122,6 +126,7 @@ impl GameMessage {
Self::BroadcastRlnl { user_id, .. } => *user_id,
Self::RebroadcastRlnl { skip_user_id, .. } => *skip_user_id,
Self::CustomLogicRlnl { user_id, .. } => *user_id,
Self::PlayerInputChanged { user_id, .. } => *user_id,
Self::Motion { user_id, .. } => *user_id,
Self::NoOp => unreachable!("NoOp is irrelevant for user ID"),
}