CrashAI

Class Assist

[CrashAI] modules/sandbox.nut:4
Class Hierarchy:
Assist

General un categorized static functions to assist program

Member Summary
static anyCargoCount(id)
        Count cargo that accept by an Industry
static anyLeadZero(integer_number)
        Lead a number with zero this will solve problem of '09' that displayed '9' only


Member Details

CargoCount

[CrashAI] modules/sandbox.nut:12
static CargoCount(id) : any
Count cargo that accept by an Industry
Parameters:
id
Industry ID
Returns:
number of cargo


LeadZero

[CrashAI] modules/sandbox.nut:30
static LeadZero(integer_number) : any
Lead a number with zero this will solve problem of '09' that displayed '9' only
Parameters:
integer_number
to convert
Returns:
number in string