Change: proof of assigning goals to companies
This commit is contained in:
8
main.nut
8
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) + ")"
|
||||
|
||||
Reference in New Issue
Block a user