예제 #1
0
 public NpcController(
     INpcService npcService,
     IMapper mapper
     )
 {
     _npcService = npcService;
     _mapper     = mapper;
 }
예제 #2
0
        public void Setup(string roomId)
        {
            this.roomId = roomId;
            //this.parent = parent;
            Clear();
            INpcService npcService = engine.GetService <INpcService>();

            foreach (BuffData data in npcService.GetBuffs(roomId))
            {
                AddView(data);
            }
            //gameObject.GetOrAdd<RectTransformBinding>().Bind(parent, offset, 0.3f);
        }
예제 #3
0
 public LocationService(
     IWorld world,
     IClientManager clientManager,
     ICombatService combatService,
     INpcService npcService,
     IEncounterService encounterService)
 {
     _world            = world;
     _clientManager    = clientManager;
     _combatService    = combatService;
     _npcService       = npcService;
     _encounterService = encounterService;
 }
예제 #4
0
 public GroupsController(
     IGroupService groupService,
     ILootService lootService,
     IMonsterService monsterService,
     IEventService eventService,
     IMapper mapper,
     INpcService npcService
     )
 {
     _groupService   = groupService;
     _lootService    = lootService;
     _monsterService = monsterService;
     _eventService   = eventService;
     _mapper         = mapper;
     _npcService     = npcService;
 }
예제 #5
0
        public void SetUp()
        {
            _groupService   = Substitute.For <IGroupService>();
            _lootService    = Substitute.For <ILootService>();
            _monsterService = Substitute.For <IMonsterService>();
            _eventService   = Substitute.For <IEventService>();
            _mapper         = Substitute.For <IMapper>();
            _npcService     = Substitute.For <INpcService>();

            _controller = new GroupsController(
                _groupService,
                _lootService,
                _monsterService,
                _eventService,
                _mapper,
                _npcService
                );

            _executionContext = new NaheulbookExecutionContext();
        }
예제 #6
0
 public EncounterService(INpcService npcService, ICombatService combatService)
 {
     _npcService    = npcService;
     _combatService = combatService;
 }