コード例 #1
0
 public ArkModule(IConfigurationRoot config, RCONManager _rcon, CommandHandler commands)
 {
     _config      = config;
     _rconManager = _rcon;
     _storage     = Storage.GetInstance();
     _commands    = commands;
 }
コード例 #2
0
        public StatusClass(string name, string ip, string port, string rconpassword, string mapname, RCONManager manager)
        {
            MapName = mapname;
            owner   = manager;

            _ip           = ip;
            _port         = port;
            _rconpassword = rconpassword;
            _name         = name;
            _token        = new CancellationTokenSource();

            t = new Thread(new ThreadStart(Start));
            t.Start();
        }