import("Library.SCPLib", "SCPLib", 45);
import("Library.SCPClient_CompanyValue", "SCPClient_CompanyValue", 1);
//require("scp.nut");
class LuDiAIAfterFix extends AIController {
scp = null;
scptile = null;
cvgs = null;
function Start();
}
function LuDiAIAfterFix::Start() {
this.scp = SCPLib("LDAF", 8);
this.scp.SCPLogging_Info(true);
this.scp.SCPLogging_Error(true);
this.scptile = this.scp.SCPGetCommunicationTile();
this.cvgs = SCPClient_CompanyValue(this.scp);
while (AIController.Sleep(1)) {
// Read incoming SCP messages (up to 5 per loop)
if (this.scp != null) {
this.scp.SCPLogging_Info(true);
for (local j = 0; j < 5 && this.scp.Check(); j++){}
if (cvgs.IsCompanyValueGSGame()) {
AILog.Info("This is a Company Value GS game!");
} else {
AILog.Info("This is not a Company Value GS game!")
}
}
}
}