MCPcopy Create free account
hub / github.com/PerroEngine/Perro / create

Function create

perro_source/api_modules/perro_steamworks/src/lobbies.rs:6–19  ·  view source on GitHub ↗
(kind: LobbyType, max_members: u32)

Source from the content-addressed store, hash-verified

4use crate::{app, error::SteamError, events};
5
6pub fn create(kind: LobbyType, max_members: u32) -> Result<(), SteamError> {
7 if max_members > 250 {
8 return Err(SteamError::CallFailed(
9 "matchmaking.create_lobby.max_members",
10 ));
11 }
12
13 app::with_client(|client| {
14 client
15 .matchmaking()
16 .create_lobby(kind.into(), max_members, events::push_lobby_create);
17 Ok(())
18 })
19}
20
21pub fn request_list(search: LobbySearch<'_>) -> Result<(), SteamError> {
22 app::with_client(|client| {

Callers 5

save_assetFunction · 0.50
write_zip_fileFunction · 0.50
extract_zip_fileFunction · 0.50

Calls 1

with_clientFunction · 0.85

Tested by

no test coverage detected