Inheritance: UnityEngine.MonoBehaviour
Example #1
0
 public void load()
 {
     Debug.Log ("StateFunding Mod Loading");
       AppLauncher = new StateFundingApplicationLauncher ();
       InitGovernments ();
       InitEvents ();
       VesselHelper.LoadAliases ();
       StateFundingGlobal.isLoaded = true;
       Debug.Log ("StateFunding Mod Loaded");
 }
Example #2
0
 public void load () {
   Debug.Log ("StateFunding Mod Loading");
   AppLauncher = new StateFundingApplicationLauncher ();
   InitGovernments ();
   InitEvents ();
   InstanceConf = new InstanceConfig ();
   ReviewMgr = new ReviewManager ();
   VesselHelper.LoadAliases ();
   loadSave ();
   Debug.Log ("StateFunding Mod Loaded");
 }
 public void load()
 {
     Debug.Log("StateFunding Mod Loading");
     AppLauncher = new StateFundingApplicationLauncher();
     InitGovernments();
     InitEvents();
     InstanceConf = new InstanceConfig();
     ReviewMgr    = new ReviewManager();
     VesselHelper.LoadAliases();
     loadSave();
     Debug.Log("StateFunding Mod Loaded");
 }
        public void load()
        {
            Log.Info("StateFunding Mod Loading");
            //AppLauncher = new StateFundingApplicationLauncher();
            AppLauncher = OnSpaceCentre.Instance.gameObject.AddComponent <StateFundingApplicationLauncher>();


            InitGovernments();
            InitEvents();
            VesselHelper.LoadAliases();
            StateFundingGlobal.isLoaded = true;

            //StateFundingGlobal.Sun = Planetarium.fetch.Sun.GetName();

            Log.Info("StateFunding Mod Loaded");

            if (StateFundingGlobal.needsDataInit)
            {
                Log.Info("StateFunding performing data init");
                var NewView = new NewInstanceConfigView();
                NewView.OnCreate((InstanceData Inst) =>
                {
                    for (int i = 0; i < StateFundingGlobal.fetch.Governments.ToArray().Length; i++)
                    {
                        Government Gov = StateFundingGlobal.fetch.Governments.ToArray()[i];
                        if (Gov.name == Inst.govName)
                        {
                            Inst.Gov = Gov;
                            break;
                        }
                    }
                    HighLogic.CurrentGame.Parameters.CustomParams <StateFundingSettings>().budgetPeriodsPerYear = Inst.Gov.budgetPeriodsPerYear;

                    StateFundingScenario.Instance.data   = Inst;
                    StateFundingScenario.Instance.isInit = true;
                    StateFundingGlobal.needsDataInit     = false;
                    Log.Info("StateFunding data init completed");
                    ReviewMgr.CompleteReview();
                });
            }
            else
            {
                for (int i = 0; i < StateFundingGlobal.fetch.Governments.ToArray().Length; i++)
                {
                    Government Gov = StateFundingGlobal.fetch.Governments.ToArray()[i];
                    if (Gov.name == StateFundingScenario.Instance.data.govName)
                    {
                        StateFundingScenario.Instance.data.Gov = Gov;
                    }
                }
            }
        }
Example #5
0
 public StateFunding()
 {
     AppLauncher = new StateFundingApplicationLauncher ();
       InitGovernments ();
       InitEvents ();
 }
Example #6
0
 public StateFunding()
 {
     AppLauncher = new StateFundingApplicationLauncher();
     InitGovernments();
     InitEvents();
 }