private void MoveBuf(RobotAction action) { if (BufferLocation == null) BufferLocation = new BufInfo() { Position = Position, Rot = Rot }; BufferLocation.Actions.Add(action); MoveResult(action); }
public void Flush() { if (BufferLocation == null) return; Position = BufferLocation.Position; Rot = BufferLocation.Rot; int i = 0; foreach (var r in Client.BatchExecute(RobotId, BufferLocation.Actions)) { if (r.Result != RobotResult.Ok) throw new Exception("F**K"); MoveResult(BufferLocation.Actions[i++]); } BufferLocation = null; }
// ------------------------------------------------------- public BxGlShaderBase(Func <GLControl> glControl, BxGlMain parent) { Parent = parent; Buf = new BufInfo(); }