Exemple #1
0
        public static Breakpoint parseBreakpointJSON(JSONNode json)
        {
            List <Input> input     = Jinx.Tournament.Input.parseInputsArrayJSON(json["input"].AsArray);
            Standings    standings = Standings.parseStandingsJSON(json["standings"]);
            Roles        roles     = Jinx.Tournament.Roles.parseRolesJSON(json["roles"]);
            Generator    generator = Generator.parseGeneratorJSON(json["generator"]);

            return(new Breakpoint(json["id"], json["name"], json["position"], input, standings, null, roles, generator));
        }
Exemple #2
0
 public Breakpoint(string id, string name, int position, List <Input> input, Standings standingses, string scores, Roles roles, Generator generator)
 {
     Id          = id;
     Name        = name;
     Position    = position;
     Input       = input;
     Standingses = standingses;
     Scores      = scores;
     Roles       = roles;
     Generator   = generator;
 }