static public int writeHead(IntPtr l) { try { Game.ActionRecord self = (Game.ActionRecord)checkSelf(l); System.String a1; checkType(l, 2, out a1); System.Int64 a2; checkType(l, 3, out a2); System.String a3; checkType(l, 4, out a3); var ret = self.writeHead(a1, a2, a3); pushValue(l, ret); return(1); } catch (Exception e) { return(error(l, e)); } }
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(); }