示例#1
0
文件: Immigrants.cs 项目: eglo/HCRMod
        //*****************************************************************************************
        public static void processEvent(ref EventMigrant evt)
        {
            TimeManager tm = AManager<TimeManager>.getInstance();
            if(nextImmigrantDay <= tm.day) {
                nextImmigrantDay = tm.day + UnityEngine.Random.Range(1, 3);
            } else {
                nextImmigrantDay = nextImmigrantDay + UnityEngine.Random.Range(1, 3);
            }
            lastImmigrantDay = tm.day;
            UI.print("Someone's coming over the hills. I think it's one of us..");

            Dbg.msg(Dbg.Grp.Units, 5, "Immigrant event processed, new immigrant check set to day: " + nextImmigrantDay);
        }
示例#2
0
 public void OnEventMigrant(EventMigrant e)
 {
     WriteEvent(e);
 }
示例#3
0
文件: PluginMain.cs 项目: eglo/HCRMod
 public void onMigrant(EventMigrant evt)
 {
     Configuration conf = Configuration.getInstance();
     if(conf.isEnabledMoreImmigrants.getBool()) {
         Immigrants.processEvent(ref evt);
     }
 }
 public void OnEventMigrant(EventMigrant e)
 {
     WriteEvent(e);
 }