pub fn new_no_gamemode(addr: T) -> Self {
		use crate::systems::{PacketHandler, TimerHandler};
		use crate::types::{Connections, FutureDispatcher};

		let (event_send, event_recv) = channel();
		let (timer_send, timer_recv) = channel();

		// Nothing in the engine will work without these 3 systems,
		// so they need to be registered now.
		let builder = Builder::new()
			.with_args::<PacketHandler, _>(event_recv)
			.with_args::<TimerHandler, _>(timer_recv);

		let mut world = World::new();

		// These two systems take in some out-of-band channels
		// (thus they must be used with ReadExpect). We register
		// them here to avoid having an awkward system where it
		// is necessary to pass Option<Sender<_>> all the way
		// through the config struct.
		world.add_resource(Connections::new());
		world.add_resource(FutureDispatcher::new(timer_send));

		Self {
			addr,
			world,
			builder,
			max_connections: 256,

			event: event_send,
		}
		.with_filler_entities()
	}
/// Unless you know exactly what you're doing, you
/// probably want [`new`][0].
///
/// Creates a config without adding a game mode to it.
/// Note that there's a few engine systems that assume
/// a game mode is present, so unless you're overhauling
/// the entire engine it is necessary to add a game mode
/// before starting the server.
///
/// [0]: #fn.new
Unless you know exactly what you're doing, you
probably want [`new`][0].

Creates a config without adding a game mode to it.
Note that there's a few engine systems that assume
a game mode is present, so unless you're overhauling
the entire engine it is necessary to add a game mode
before starting the server.


Unless you know exactly what you ' re doing you probably want [ ` new ` ] [ 0 ] . Creates a config without adding a game mode to it . Note that there ' s a few engine systems that assume a game mode is present so unless you ' re overhauling the entire engine it is necessary to add a game mode before starting the server .
pub fn new_no_gamemode(addr: T) -> Self {
		use crate::systems::{PacketHandler, TimerHandler};
		use crate::types::{Connections, FutureDispatcher};
		let (event_send, event_recv) = channel();
		let (timer_send, timer_recv) = channel();
		// Nothing in the engine will work without these 3 systems,
		// so they need to be registered now.
		let builder = Builder::new()
			.with_args::<PacketHandler, _>(event_recv)
			.with_args::<TimerHandler, _>(timer_recv);
		let mut world = World::new();
		// These two systems take in some out-of-band channels
		// (thus they must be used with ReadExpect). We register
		// them here to avoid having an awkward system where it
		// is necessary to pass Option<Sender<_>> all the way
		// through the config struct.
		world.add_resource(Connections::new());
		world.add_resource(FutureDispatcher::new(timer_send));
		Self {
			addr,
			world,
			builder,
			max_connections: 256,
			event: event_send,
		}
		.with_filler_entities()
	}
pub fn new_no_gamemode ( addr : T ) -> Self { use crate :: systems :: { PacketHandler , TimerHandler } ; use crate :: types :: { Connections , FutureDispatcher } ; let ( event_send , event_recv ) = channel ( ) ; let ( timer_send , timer_recv ) = channel ( ) ; // Nothing in the engine will work without these 3 systems, // so they need to be registered now. let builder = Builder :: new ( ) . with_args :: < PacketHandler , _ > ( event_recv ) . with_args :: < TimerHandler , _ > ( timer_recv ) ; let mut world = World :: new ( ) ; // These two systems take in some out-of-band channels // (thus they must be used with ReadExpect). We register // them here to avoid having an awkward system where it // is necessary to pass Option<Sender<_>> all the way // through the config struct. world . add_resource ( Connections :: new ( ) ) ; world . add_resource ( FutureDispatcher :: new ( timer_send ) ) ; Self { addr , world , builder , max_connections : 256 , event : event_send , } . with_filler_entities ( ) }
Unless you know exactly what you're doing, you
probably want [`new`][0].
Unless you know exactly what you ' re doing you probably want [ ` new ` ] [ 0 ] .
addr
T
addr
T