Exemplo n.º 1
0
        /// <summary>
        ///     Registers the services this controller provides.
        /// </summary>
        /// <param name="gameMode">The game mode.</param>
        /// <param name="serviceContainer">The service container.</param>
        public override void RegisterServices(BaseMode gameMode, GameModeServiceContainer serviceContainer)
        {
            CommandsManager = new CommandsManager(gameMode);
            serviceContainer.AddService(CommandsManager);

            // Register commands in game mode.
            CommandsManager.RegisterCommands(gameMode.GetType());
        }
        /// <summary>
        ///     Registers the services this controller provides.
        /// </summary>
        /// <param name="gameMode">The game mode.</param>
        /// <param name="serviceContainer">The service container.</param>
        public virtual void RegisterServices(BaseMode gameMode, GameModeServiceContainer serviceContainer)
        {
            CommandsManager = new CommandsManager(gameMode);
            serviceContainer.AddService(CommandsManager);

            // Register commands in game mode.
            CommandsManager.RegisterCommands(gameMode.GetType());
        }
 /// <summary>
 ///     Registers the services this controller provides.
 /// </summary>
 /// <param name="gameMode">The game mode.</param>
 /// <param name="serviceContainer">The service container.</param>
 public virtual void RegisterServices(BaseMode gameMode, GameModeServiceContainer serviceContainer)
 {
     serviceContainer.AddService <IVehicleFactory>(new BaseVehicleFactory(gameMode));
 }
Exemplo n.º 4
0
 public override void RegisterServices(BaseMode gameMode, GameModeServiceContainer serviceContainer)
 {
     CommandsManager = new MyCommandsManager(gameMode);
     serviceContainer.AddService(CommandsManager);
     CommandsManager.RegisterCommands(gameMode.GetType());
 }
Exemplo n.º 5
0
 /// <summary>
 ///     Registers the services this controller provides.
 /// </summary>
 /// <param name="gameMode">The game mode.</param>
 /// <param name="serviceContainer">The service container.</param>
 public virtual void RegisterServices(BaseMode gameMode, GameModeServiceContainer serviceContainer)
 {
     serviceContainer.AddService<IVehicleFactory>(new BaseVehicleFactory(gameMode));
 }