Esempio n. 1
0
        protected override void InitSource()
        {
            lock (matchMutex)
            {
                try
                {
                    money = BOT.getMoneyManager();

                    var lines = FileHelper.readLines(PluginPath + userinfoFile);
                    foreach (var line in lines)
                    {
                        RHUser user = new RHUser();
                        user.parse(line);
                        users[user.id] = user;
                    }
                    lines = FileHelper.readLines(PluginPath + horseinfoFile);
                    foreach (var line in lines)
                    {
                        RHHorse horse = new RHHorse(line);
                        horses[horse.name] = horse;
                    }
                }
                catch (Exception e)
                {
                    FileHelper.Log(e.Message + "\r\n" + e.StackTrace);
                }
            }
        }
Esempio n. 2
0
 public RHRoad(int _num, RHHorse _horse)
 {
     num    = _num;
     horse  = _horse;
     nowlen = 0;
 }