public string CreateObjectiveStringFromObjective(MissionObjective objective, IManagers managers) { float elapsedTime = ElapsedMissionObjectiveTime(objective, managers.threading.simulationTime); float timeLeft = m_timeoutDuration - elapsedTime; return(String.Format("(Time left: {1})", timeLeft)); }
void ISerializableDataExtension.OnCreated(ISerializableData serializedData) { Log.Output = new FileLogger(ModDllPath + ".log"); _managers = serializedData.managers; _settings = new AutosaveSettings(ModDllPath); RestartTimer(); Log.Info("{0} running with interval {1}min...", Name, _settings.Interval); }
public void Initiate(IManagers managers) { Managers = managers; Initiated = true; CorporationManager = new CorporationManager(); MissionManager = new MissionManager(Managers); GameObject coreTemplate = new GameObject("CorporationCore"); CoreObject = GameObject.Instantiate(coreTemplate); //DebuggerComponent = CoreObject.AddComponent<GroogyLib.Core.Debugger>(); //string[] namespaces = { "CitiesCorporations" }; //DebuggerComponent.Initiate(namespaces); //DebuggerComponent.SetupGUI(new Rect(Screen.width - 60, 65, 50, 50), "Debug", new Vector2(800, 600)); //DebuggerComponent.OpenLog("CorporationCore.log"); //DebuggerComponent.enabled = true; }
// Thread: Main public override void OnCreated(IMilestones milestones) { Instance = this; Managers = milestones.managers; }
public MissionManager(IManagers managers) { MissionList = new List <Mission>(); m_managers = managers; m_missionFactory = new MissionFactory(0, 0); }
public override RuleEvaluationResult EvaluateMissionObjectiveRule(MissionObjective objective, IManagers managers) { return(ElapsedMissionObjectiveTime(objective, managers.threading.simulationTime) >= m_timeoutDuration ? RuleEvaluationResult.Failed : RuleEvaluationResult.Passed); }
public static bool IsGameMode(this IManagers managers) => managers.loading.IsGameMode();
public ManagersController(IManagers repo) { _repo = repo; }
public abstract RuleEvaluationResult EvaluateMissionObjectiveRule(MissionObjective objective, IManagers managers);