protected void SetState(Contract.State newState);
private void BuildContractStringsAndMargin(Boolean ForceUpdateMargin=false) { strAlarmEventName = "Contract"; if (ContractSystem.Instance == null || lstContracts.Count == 0) { strAlarmName = "Contract alarm"; strAlarmNotes = "No Contracts Available"; } else { GenerateContractStringsFromContract(lstContracts[intSelectedContract], out strAlarmName, out strAlarmNotes); if (ForceUpdateMargin || contractLastState != lstContracts[intSelectedContract].ContractState) { if (lstContracts[intSelectedContract].ContractState == Contract.State.Active) timeMargin.BuildFromUT(settings.AlarmOnContractDeadlineMargin); else timeMargin.BuildFromUT(settings.AlarmOnContractExpireMargin); contractLastState = lstContracts[intSelectedContract].ContractState; } } }
public static Contract Generate(Type contractType, Contract.ContractPrestige difficulty, int seed, Contract.State state);