Change: proof of assigning goals to companies

This commit is contained in:
Andy
2014-12-28 11:37:52 +00:00
parent a0478b7439
commit 39177ba8a5

View File

@@ -70,6 +70,8 @@ function FMainClass::FindChallenge(cargo, distance)
function FMainClass::Start()
{
// Wait for the game to start
this.Sleep(1);
this.ExamineCargoes();
// foreach(idx, val in cargoes) {
@@ -81,6 +83,12 @@ function FMainClass::Start()
GSLog.Info("Use " + GSIndustry.GetName(accept_ind));
}
// this is proof of concept only
for (local cid = GSCompany.COMPANY_FIRST; cid < GSCompany.COMPANY_LAST; cid++) {
GSLog.Info(cid);
GSGoal.New(cid, "Foo", GSGoal.GT_NONE, 0);
}
// for (local cid = 0; cid < 32; cid += 1) {
// if (!GSCargo.IsValidCargo(cid)) continue;
// local label = cid + " (" + GSCargo.GetCargoLabel(cid) + ")"