Esempio n. 1
0
 public override void Load(TagCompound tag)
 {
     MoonEvent.ResetMoon();
     foreach (var moonEvent in moonEventList.Values)
     {
         moonEvent.Load(tag);
     }
     ;
 }
Esempio n. 2
0
        public override TagCompound Save()
        {
            TagCompound tag = new TagCompound();

            MoonEvent.ResetMoon();
            foreach (MoonEvent moonEvent in moonEventList.Values)
            {
                moonEvent.Save(tag);
            }
            return(base.Save());
        }
Esempio n. 3
0
 public override void PostUpdate()
 {
     if (moonEventList.Values.Any(i => i.IsActive))
     {
         MoonEvent activeEvent = moonEventList.Values.Single(i => i.IsActive);
         if (Main.dayTime)
         {
             activeEvent.Deactivate();
             return;
         }
         activeEvent.ReplaceMoon();
     }
 }