From 39177ba8a52ddd74da544d07d7c6bbe2ae7a9459 Mon Sep 17 00:00:00 2001 From: Andy <1780327+andythenorth@users.noreply.github.com> Date: Sun, 28 Dec 2014 11:37:52 +0000 Subject: [PATCH] Change: proof of assigning goals to companies --- main.nut | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.nut b/main.nut index ba00f5d..8c460d4 100644 --- a/main.nut +++ b/main.nut @@ -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) + ")"