Add basic surrendering for #32

This commit is contained in:
NG (Graham) committed 2025-09-06 19:13:47 -04:00
1 parent ac0e16be63
commit 6b40eb938c
9 files changed
+314 -33

No files matched your search

+6
View File
@@ -187,6 +187,11 @@ pub async fn handler(init_ctx: &crate::InitConfig) -> crate::handler::LnlEventHa
{literustlib::packet::Property::ReliableOrdered as u8},
rlnl::events::ingame::InitiateSurrender,
>::handler(init_ctx))
.add(crate::handlers::GamemodeSpecific::<
{rlnl::event_code::NetworkEvent::SurrenderVoteCast as i16},
{literustlib::packet::Property::ReliableOrdered as u8},
rlnl::events::ingame::SurrenderVoteCast,
>::handler(init_ctx))
.add(crate::handlers::GamemodeSpecific::<
{rlnl::event_code::NetworkEvent::AwardTeamBaseProtoniumDestroyedRequest as i16},
{literustlib::packet::Property::ReliableOrdered as u8},
@@ -231,6 +236,7 @@ mod _broadcast_impls {
impl Broadcastable for rlnl::events::ingame::MapPing {}
impl Broadcastable for rlnl::events::ingame::DamagedByEnemyShield {}
impl Broadcastable for rlnl::events::ingame::InitiateSurrender {}
impl Broadcastable for rlnl::events::ingame::SurrenderVoteCast {}
impl Broadcastable for rlnl::events::ingame::AwardProtoniumDestroyedCubes {}
impl Broadcastable for rlnl::events::sync::UpdateGameModeSettings {}