private void PerformMoveImpl(PerformMoveReq req, PerformMoveResp resp) { Point[] positions = (req.Positions != null) ? req.Positions.Select(p => p?.ToPoint() ?? new Point(-1, -1)).ToArray() : null; Server.GameManager.PerformMove(req.PlayerId, positions, req.Auth.GetClientCode()); }
private void PerformMoveImpl(PerformMoveReq req, PerformMoveResp resp) { Server.GameManager.PerformMove(req.PlayerId, req.Position.ToPoint(), req.Auth.GetClientCode()); }