MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / to_request

Method to_request

mserver/MasterService/src/dev_seed.rs:260–294  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

258 numplayers: i32,
259 maxplayers: i32,
260 password: bool,
261 mod_list: &'static str,
262 state: i32,
263 hostport: u16,
264}
265
266impl DevServerSeed {
267 fn to_request(&self) -> RegisterServerRequest {
268 RegisterServerRequest {
269 app_name: "CWR".to_string(),
270 server_id: self.server_id.to_string(),
271 address: "127.0.0.1".to_string(),
272 hostport: self.hostport,
273 hostname: self.hostname.to_string(),
274 gametype: self.gametype.to_string(),
275 actver: 196,
276 reqver: 196,
277 version_tag: "rc1".to_string(),
278 state: self.state,
279 numplayers: self.numplayers,
280 maxplayers: self.maxplayers,
281 password: self.password,
282 mod_list: self.mod_list.to_string(),
283 mod_packages: Vec::new(),
284 equal_mod_required: false,
285 transport_impl: "papa-bear".to_string(),
286 platform: "win".to_string(),
287 time_left: 0,
288 state_elapsed_seconds: 0,
289 map_name: "Synthetic Testbed".to_string(),
290 cadet: false,
291 difficulty: 0,
292 jip: true,
293 disabled_ai: false,
294 respawn: 1,
295 respawn_delay: 5,
296 locked: false,
297 dedicated: true,

Callers 1

seed_dev_dataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected