Пример #1
0
    public static Career Factory(string championName)
    {
        Career ret = new Career(championName);

        ret.careerNodes = GenerateCareerTree(championName);
        ret.root        = CareerNode.Root(ret.careerNodes);
        ret.leaves      = CareerNode.Leaves(ret.careerNodes);
        return(ret);
    }
Пример #2
0
    public static Career Factory(List <CareerNode> careerNodes, StatsManager stats)
    {
        Career ret = new Career();

        ret.careerNodes = careerNodes;
        ret.root        = CareerNode.Root(ret.careerNodes);
        ret.leaves      = CareerNode.Leaves(ret.careerNodes);
        ret.stats       = stats;
        ret.playerData  = new ActorData(ret.stats);
        return(ret);
    }