static public int writeAction(IntPtr l) { try { Game.ActionRecord self = (Game.ActionRecord)checkSelf(l); System.Byte[] a1; checkType(l, 2, out a1); var ret = self.writeAction(a1); pushValue(l, ret); return(1); } catch (Exception e) { return(error(l, e)); } }
public bool WriteActions() { lock (locker) { if (actions.Count == 0) { return(true); } while (actions.Count > 0) { Byte[] data = actions[0]; if (!arWrite.writeAction(data)) { return(false); } actions.RemoveAt(0); } } return(true); }