Exemplo n.º 1
0
 public SkillSystem(ILogger <SkillSystem> logger, IRhisisDatabase database, IGameResources gameResources, IBattleSystem battleSystem, IInventorySystem inventorySystem, IProjectileSystem projectileSystem, ISkillPacketFactory skillPacketFactory, ITextPacketFactory textPacketFactory, ISpecialEffectPacketFactory specialEffectPacketFactory, IMoverPacketFactory moverPacketFactory)
 {
     _logger                     = logger;
     _database                   = database;
     _gameResources              = gameResources;
     _battleSystem               = battleSystem;
     _inventorySystem            = inventorySystem;
     _projectileSystem           = projectileSystem;
     _skillPacketFactory         = skillPacketFactory;
     _textPacketFactory          = textPacketFactory;
     _specialEffectPacketFactory = specialEffectPacketFactory;
     _moverPacketFactory         = moverPacketFactory;
 }
Exemplo n.º 2
0
 public DefaultMonsterBehavior(IMonsterEntity monster,
                               IOptions <WorldConfiguration> worldConfiguration,
                               IGameResources gameResources,
                               IMobilitySystem mobilitySystem,
                               IBattleSystem battleSystem,
                               IFollowSystem followSystem,
                               IDropSystem dropSystem,
                               IMoverPacketFactory moverPacketFactory)
 {
     _monster            = monster;
     _worldConfiguration = worldConfiguration.Value;
     _gameResources      = gameResources;
     _mobilitySystem     = mobilitySystem;
     _battleSystem       = battleSystem;
     _followSystem       = followSystem;
     _dropSystem         = dropSystem;
     _moverPacketFactory = moverPacketFactory;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new <see cref="AroundKillChatCommand"/> instance.
 /// </summary>
 /// <param name="battleSystem">Battle system.</param>
 /// <param name="followSystem">follow system.</param>
 public AroundKillChatCommand(IBattleSystem battleSystem, IFollowSystem followSystem)
 {
     _battleSystem = battleSystem;
     _followSystem = followSystem;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new <see cref="BattleHandler"/> instance.
 /// </summary>
 /// <param name="logger">Logger.</param>
 /// <param name="battleSystem">Battle system.</param>
 public BattleHandler(ILogger <BattleHandler> logger, IBattleSystem battleSystem)
 {
     _logger       = logger;
     _battleSystem = battleSystem;
 }