mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Add basic surrendering for #32
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user