Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
 }
Esempio n. 6
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();
		// Thread: Main
		public override void OnCreated(IMilestones milestones) {
			Instance = this;
			Managers = milestones.managers;
		}
 public ManagersController(IManagers repo)
 {
     _repo = repo;
 }
Esempio n. 10
0
 public abstract RuleEvaluationResult EvaluateMissionObjectiveRule(MissionObjective objective, IManagers managers);