Beispiel #1
0
 public void init(sendQQGroupMsgHandler _showScene, getQQNickHandler _getQQNick, BTCActor _btc, string _path)
 {
     outputMessage = _showScene;
     getQQNick     = _getQQNick;
     btc           = _btc;
     path          = _path;
     lock (matchMutex)
     {
         try
         {
             var lines = FileIOActor.readLines(path + userinfoFile);
             foreach (var line in lines)
             {
                 RHUser user = new RHUser(line);
                 users[user.userid] = user;
             }
             lines = FileIOActor.readLines(path + horseinfoFile);
             foreach (var line in lines)
             {
                 RHHorse horse = new RHHorse(line);
                 horses[horse.name] = horse;
             }
         }
         catch (Exception e)
         {
             FileIOActor.log(e.Message + "\r\n" + e.StackTrace);
         }
     }
 }
Beispiel #2
0
 public RHRoad(int _num, RHHorse _horse)
 {
     num    = _num;
     horse  = _horse;
     nowlen = 0;
 }