Define events like OnNewMineDiscovered, OnNewCompanyStarted.
Then you can script what the AI will do, for instance:
Code: Select all
public class InvestorAI
{
private void OnNewCompanyStarted(Company company)
{
if (this.enoughCash)
{
this.buyShares(company, 100);
}
}
}