pub fn new<G>(addr: T, gamemode: G) -> Self
	where
		G: GameMode + 'static,
	{
		let me = Self::new_no_gamemode(addr);

		// Technically it's not necessary to add the gamemode within
		// the constructor. However, it's likely that people using
		// the engine for the first time will forget to add it
		// (and it is almost always required) so I've made the
		// default method that people will reach for require it.
		me.with_gamemode(gamemode)
	}
/// Creates a new server config with an address to
/// listen on and a game mode.
Creates a new server config with an address to
listen on and a game mode.
Creates a new server config with an address to listen on and a game mode .
pub fn new<G>(addr: T, gamemode: G) -> Self
	where
		G: GameMode + 'static,
	{
		let me = Self::new_no_gamemode(addr);
		// Technically it's not necessary to add the gamemode within
		// the constructor. However, it's likely that people using
		// the engine for the first time will forget to add it
		// (and it is almost always required) so I've made the
		// default method that people will reach for require it.
		me.with_gamemode(gamemode)
	}
pub fn new < G > ( addr : T , gamemode : G ) -> Self where G : GameMode + ' static , { let me = Self :: new_no_gamemode ( addr ) ; // Technically it's not necessary to add the gamemode within // the constructor. However, it's likely that people using // the engine for the first time will forget to add it // (and it is almost always required) so I've made the // default method that people will reach for require it. me . with_gamemode ( gamemode ) }
Creates a new server config with an address to
listen on and a game mode.
Creates a new server config with an address to listen on and a game mode .
addr
T
gamemode
G
addr
T
gamemode
G