Ejemplo n.º 1
0
    public void ReplaceInvestmentStrategy(CompanyGrowthStyle newGrowthStyle, VotingStyle newVotingStyle, InvestorInterest newInvestorInterest)
    {
        var index     = GameComponentsLookup.InvestmentStrategy;
        var component = (InvestmentStrategyComponent)CreateComponent(index, typeof(InvestmentStrategyComponent));

        component.GrowthStyle      = newGrowthStyle;
        component.VotingStyle      = newVotingStyle;
        component.InvestorInterest = newInvestorInterest;
        ReplaceComponent(index, component);
    }
Ejemplo n.º 2
0
 public static void SetGrowthStyle(GameEntity company, CompanyGrowthStyle growthStyle)
 {
     company.investmentStrategy.GrowthStyle = growthStyle;
 }