private static int Positions(OrbAssignment assignment)
        {
            if (assignment.Role == OrbRole.Thrower)
            {
                return(assignment.Side == OrbSide.Left ? 0 : 2);
            }

            return(1);
        }
Пример #2
0
        private static List <Request> BuildSetOrbRequests(int sheetId, OrbAssignment assignment)
        {
            var requests = new List <Request>();

            var groupNumber = SingleValueRequest(sheetId, assignment.Set.ToString(), 3, 1);
            var direction   = SingleValueRequest(sheetId, assignment.Side.ToString(), 4, 1);
            var role        = SingleValueRequest(sheetId, assignment.Role == OrbRole.Catcher ? "Catcher (2nd Person)" : "Thrower (1st Person)", 5, 1);
            var bestBuddy   = SingleBoldValueRequest(sheetId, assignment.Parner.Name, 6, 1);
            var orbSets     = SingleValueRequest(sheetId, OrbSets(assignment.Set), 7, 1);
            var macro       = SetMacro(sheetId, assignment.Macro);
            var whisperer   = SingleBoldValueRequest(sheetId, assignment.Whisperer.Name, 13, 1);

            requests.Add(groupNumber);
            requests.Add(direction);
            requests.Add(role);
            requests.Add(bestBuddy);
            requests.Add(orbSets);
            requests.AddRange(macro);
            requests.Add(whisperer);

            return(requests);
        }