示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayerEventProcessor"/> class.
 /// </summary>
 /// <param name="sst">The main class.</param>
 public PlayerEventProcessor(SynServerTool sst)
 {
     _sst           = sst;
     _qlRanksHelper = new QlRanksHelper();
     _seenDb        = new DbSeenDates();
     _cfgHandler    = new ConfigHandler();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandProcessor"/> class.
 /// </summary>
 /// <param name="sst">The main class.</param>
 public CommandProcessor(SynServerTool sst)
 {
     _sst               = sst;
     _users             = new DbUsers();
     _cmdList           = new CommandList(_sst);
     _cfgHandler        = new ConfigHandler();
     _playerCommandTime = new Dictionary <string, DateTime>();
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VoteHandler"/> class.
 /// </summary>
 /// <param name="sst">The main class.</param>
 public VoteHandler(SynServerTool sst)
 {
     _sst   = sst;
     _users = new DbUsers();
 }
示例#4
0
文件: QlCommands.cs 项目: syncore/SST
 /// <summary>
 /// Initializes a new instance of the <see cref="QlCommands"/> class.
 /// </summary>
 /// <param name="sst">The main class.</param>
 public QlCommands(SynServerTool sst)
 {
     _sst = sst;
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleTextProcessor"/> class.
 /// </summary>
 public ConsoleTextProcessor(SynServerTool sst)
 {
     _sst = sst;
     _playerEventProcessor = new PlayerEventProcessor(_sst);
     _voteHandler          = new VoteHandler(_sst);
 }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerEventProcessor"/> class.
 /// </summary>
 /// <param name="sst">The main class.</param>
 public ServerEventProcessor(SynServerTool sst)
 {
     _sst    = sst;
     _seenDb = new DbSeenDates();
     _qlranksToUpdateFromPlayers = new List <string>();
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BanManager"/> class.
 /// </summary>
 /// <param name="sst">The main class.</param>
 public BanManager(SynServerTool sst)
 {
     _sst   = sst;
     _banDb = new DbBans();
 }
示例#8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandList"/> class.
 /// </summary>
 /// <param name="sst">The main tool class.</param>
 public CommandList(SynServerTool sst)
 {
     _sst     = sst;
     Commands = new Dictionary <string, IBotCommand>(StringComparer.InvariantCultureIgnoreCase);
     InitializeCommands();
 }