mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Add minimal Pit implementation (without win conditions) #34
This commit is contained in:
1 parent
e33a499415
commit
f2de67b338
13 files changed
+427
-49
No files matched your search
@@ -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"),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user