Esempio n. 1
0
        public void CreateLevel(string levelName)
        {
            IMapSerializator serializator = new FileMapSerializator(levelName);

            m_Map = serializator.LoadMap();

            LoaderMap.CreateMap(m_Map, false);

            CarSurface surface = new CarSurface();

            surface.AddSurface(0, 5f, 1);
            surface.AddSurface(1, 3f, 0.7f);

            ICarFactory carFactory = new DefaultCarFactory();
            ICar        car        = carFactory.CreateCar(10, 90, surface);

            m_Game          = new Game();
            m_RewardManager = new RewardManager(30, 40);

            Vector3 carPos = LoaderMap.GetCheckPoint(0).transform.position;

            m_UnityCar = LoaderCar.CreateCar(m_Game, car, carPos, Vector3.one * 0.5f);

            m_CheckPointReachChecker = new CheckPointReachChecker(m_UnityCar.transform);

            m_Game.Start(Time.time);
        }
Esempio n. 2
0
 public ProjectController(ILogger <ProjectController> logger, IProjectManager _projManager,
                          IRewardManager _rewardManager, IWebHostEnvironment environment, IProjectCreatorManager _projectCreatorManager)
 {
     hostingEnvironment = environment;
     rewardManager      = _rewardManager;
     projManager        = _projManager;
     pcManager          = _projectCreatorManager;
     _logger            = logger;
 }
Esempio n. 3
0
        public QuestController(
            IQuestManager questManager,
            IRewardManager rewardManager,
            IPlayerManager playerManager,
            IUserManager userManager,
            IItemManager itemManager,
            IItemRewardManager itemRewardManager,
            IInventoryManager inventoryManager

            )
        {
            _questManager      = questManager;
            _rewardManager     = rewardManager;
            _userManager       = userManager;
            _playerManager     = playerManager;
            _itemManager       = itemManager;
            _itemRewardManager = itemRewardManager;
            _inventoryManager  = inventoryManager;
        }
Esempio n. 4
0
 public HomeController(IPlayerManager playerManager,
                       IUserManager userManager,
                       IClassManager classManager,
                       IQuestManager questManager,
                       IItemManager itemManager,
                       IRewardManager rewardManager,
                       IItemRewardManager itemRewardManager,
                       IWeaponManager weaponManager,
                       IWeaponTypeManager weaponTypeManager,
                       ISkillManager skillManager
                       )
 {
     _playerManager     = playerManager;
     _userManager       = userManager;
     _classManager      = classManager;
     _questManager      = questManager;
     _itemManager       = itemManager;
     _rewardManager     = rewardManager;
     _itemRewardManager = itemRewardManager;
     _weaponManager     = weaponManager;
     _weaponTypeManager = weaponTypeManager;
     _skillManager      = skillManager;
 }
 public BackerProjectController(IBackerProjectManager bpMng, IRewardManager rMng, IProjectManager pMng)
 {
     this.bpMng = bpMng;
     this.rMng  = rMng;
     this.pMng  = pMng;
 }
 public ApiRewardController(ILogger <ApiRewardController> logger, IRewardManager _rewardManager)
 {
     rewardManager = _rewardManager;
     _logger       = logger;
 }