Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new <see cref="NpcLoader"/> instance.
 /// </summary>
 /// <param name="logger">Logger</param>
 /// <param name="configuration">World server configuration</param>
 /// <param name="defines">Define loader</param>
 /// <param name="texts">Text loader</param>
 /// <param name="dialogs">Dialogs loader</param>
 /// <param name="shops">Shops loader</param>
 public NpcLoader(ILogger <NpcLoader> logger, WorldConfiguration configuration, DefineLoader defines, TextLoader texts, DialogLoader dialogs, ShopLoader shops)
 {
     this._logger        = logger;
     this._npcData       = new Dictionary <string, NpcData>();
     this._configuration = configuration;
     this._defines       = defines;
     this._texts         = texts;
     this._dialogs       = dialogs;
     this._shops         = shops;
 }
Ejemplo n.º 2
0
 public ShopService(ILogger <ShopService> logger, IOptions <ServiceOptions> options,
                    IJsonFileReaderWriter jsonFileReaderWriter, ShopLoader shopLoader)
     : base(logger, options, jsonFileReaderWriter)
 {
     _shopLoader = shopLoader;
 }