예제 #1
0
 public FullRunes(Rune[] runes, Rune keystoneRune, RuneTree primaryTree, RuneTree secondaryTree, StatRune[] statRunes)
 {
     this.runes         = runes;
     this.keystoneRune  = keystoneRune;
     this.primaryTree   = primaryTree;
     this.secondaryTree = secondaryTree;
     this.statRunes     = statRunes;
 }
예제 #2
0
        private BasicRunes ReadBasicRunesFromJson(JToken json)
        {
            JToken   jsonKeystone      = json["keystone"];
            JToken   jsonPrimaryTree   = json["primaryRuneTree"];
            JToken   jsonSecondaryTree = json["secondaryRuneTree"];
            Rune     keystone          = ReadFromJson <Rune>(jsonKeystone);
            RuneTree primaryTree       = ReadFromJson <RuneTree>(jsonPrimaryTree);
            RuneTree secondaryTree     = ReadFromJson <RuneTree>(jsonSecondaryTree);

            return(new BasicRunes(keystone, primaryTree, secondaryTree));
        }
예제 #3
0
        private FullRunes ReadFullRunesFromJson(JToken json)
        {
            JToken jsonRunes         = json["generalRunes"];
            JToken jsonKeystone      = json["keystone"];
            JToken jsonPrimaryTree   = json["primaryRuneTree"];
            JToken jsonSecondaryTree = json["secondaryRuneTree"];
            JToken jsonStatRunes     = json["statRunes"];

            Rune[]   runes         = ReadFromJson <Rune[]>(jsonRunes);
            Rune     keystone      = ReadFromJson <Rune>(jsonKeystone);
            RuneTree primaryTree   = ReadFromJson <RuneTree>(jsonPrimaryTree);
            RuneTree secondaryTree = ReadFromJson <RuneTree>(jsonSecondaryTree);

            StatRune[] statRunes = ReadFromJson <StatRune[]>(jsonStatRunes);

            return(new FullRunes(runes, keystone, primaryTree, secondaryTree, statRunes));
        }
예제 #4
0
 public BasicRunes(Rune keystoneRune, RuneTree primaryTree, RuneTree secondaryTree)
 {
     this.keystoneRune  = keystoneRune;
     this.primaryTree   = primaryTree;
     this.secondaryTree = secondaryTree;
 }