static public int openWrite(IntPtr l)
 {
     try {
         Game.ActionRecord self = (Game.ActionRecord)checkSelf(l);
         System.Boolean    a1;
         var ret = self.openWrite(out a1);
         pushValue(l, ret);
         pushValue(l, a1);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #2
0
        public static void startRecord(string clientVer, string fileName, long timestamp, string roomInfo)
        {
            if (arWrite != null)
            {
                return;
            }

            bool fileExist = false;

            arWrite = new ActionRecord(fileName);
            arWrite.openWrite(out fileExist);
            if (!fileExist)
            {
                arWrite.writeHead(clientVer, timestamp, roomInfo);
            }
            arWrite.closeWrite();

            arWrite.writeThread = new Thread(arWrite.WriteProc);
            arWrite.exitEvent   = new AutoResetEvent(false);

            arWrite.actions.Clear();
            arWrite.writeThread.Start();
        }