pub fn with_gamemode<G>(mut self, gamemode: G) -> Self
	where
		G: GameMode + 'static,
	{
		use crate::types::gamemode::*;

		self.world
			.add_resource(GameModeInternal(Box::new(GameModeWrapperImpl {
				val: gamemode,
			})));

		self
	}
/// Replace an existing game mode within the world.
///
/// # Note
/// This can also be used to add a game mode to a world
/// if the world was constructed using [`new_no_gamemode`][0].
///
/// [0]: #method.new_no_gamemode
Replace an existing game mode within the world.
Replace an existing game mode within the world .
pub fn with_gamemode<G>(mut self, gamemode: G) -> Self
	where
		G: GameMode + 'static,
	{
		use crate::types::gamemode::*;
		self.world
			.add_resource(GameModeInternal(Box::new(GameModeWrapperImpl {
				val: gamemode,
			})));
		self
	}
pub fn with_gamemode < G > ( mut self , gamemode : G ) -> Self where G : GameMode + ' static , { use crate :: types :: gamemode :: * ; self . world . add_resource ( GameModeInternal ( Box :: new ( GameModeWrapperImpl { val : gamemode , } ) ) ) ; self }
Replace an existing game mode within the world.
Replace an existing game mode within the world .
mut self
gamemode
G
mut self
gamemode
G
note
This can also be used to add a game mode to a world
if the world was constructed using [`new_no_gamemode`][0].

[0]: #method.new_no_gamemode
This can also be used to add a game mode to a world if the world was constructed using [ ` new_no_gamemode ` ] [ 0 ] . [ 0 ] : #method . new_no_gamemode