Esempio n. 1
0
 public QuestSystem(ILogger <QuestSystem> logger, IRhisisDatabase database, IGameResources gameResources,
                    IPlayerDataSystem playerDataSystem, IInventorySystem inventorySystem, IExperienceSystem experienceSystem, IJobSystem jobSystem,
                    IQuestPacketFactory questPacketFactory, INpcDialogPacketFactory npcDialogPacketFactory, ITextPacketFactory textPacketFactory)
 {
     _logger                 = logger;
     _database               = database;
     _gameResources          = gameResources;
     _playerDataSystem       = playerDataSystem;
     _inventorySystem        = inventorySystem;
     _experienceSystem       = experienceSystem;
     _jobSystem              = jobSystem;
     _questPacketFactory     = questPacketFactory;
     _npcDialogPacketFactory = npcDialogPacketFactory;
     _textPacketFactory      = textPacketFactory;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new <see cref="DefaultPlayerBehavior"/> instance.
 /// </summary>
 /// <param name="player">Current player.</param>
 /// <param name="worldConfiguration">World Server configuration.</param>
 /// <param name="mobilitySystem">Mobility system.</param>
 /// <param name="inventorySystem">Inventory system.</param>
 /// <param name="playerDataSystem">Player data system.</param>
 /// <param name="recoverySystem">Recovery system.</param>
 /// <param name="regionTriggerSystem">Region trigger system.</param>
 /// <param name="questSystem">Quest system.</param>
 /// <param name="experienceSystem">Experience system.</param>
 /// <param name="moverPacketFactory">Mover packet factory.</param>
 /// <param name="textPacketFactory">Text packet factory.</param>
 public DefaultPlayerBehavior(IPlayerEntity player,
                              IOptions <WorldConfiguration> worldConfiguration,
                              IMobilitySystem mobilitySystem,
                              IInventorySystem inventorySystem,
                              IPlayerDataSystem playerDataSystem,
                              IRecoverySystem recoverySystem,
                              IRegionTriggerSystem regionTriggerSystem,
                              IQuestSystem questSystem,
                              IExperienceSystem experienceSystem,
                              IMoverPacketFactory moverPacketFactory,
                              ITextPacketFactory textPacketFactory)
 {
     _player              = player;
     _worldConfiguration  = worldConfiguration.Value;
     _mobilitySystem      = mobilitySystem;
     _inventorySystem     = inventorySystem;
     _playerDataSystem    = playerDataSystem;
     _recoverySystem      = recoverySystem;
     _regionTriggerSystem = regionTriggerSystem;
     _questSystem         = questSystem;
     _experienceSystem    = experienceSystem;
     _moverPacketFactory  = moverPacketFactory;
     _textPacketFactory   = textPacketFactory;
 }
Esempio n. 3
0
 /// <summary>
 /// Creates a new <see cref="SendExpServerHandler"/> instance.
 /// </summary>
 /// <param name="expSystem">Experience system.</param>
 public SendExpServerHandler(IExperienceSystem expSystem, ILogger <SendExpServerHandler> logger)
 {
     _expSystem = expSystem;
     _logger    = logger;
 }