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); }
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); }