private void MoveDirection(string Direction) { Cell cellFromDirection = ParentBrain.pPhysics.CurrentCell.GetCellFromDirection(Direction, bBuiltOnly: false); if (cellFromDirection != null && CellHasFriendly(cellFromDirection) == null) { try { ParentBrain.ParentObject.FireEvent(Event.New("CommandMove", "Direction", Direction)); } catch (Exception x) { MetricsManager.LogException("Step::MoveDirection", x); } } }