コード例 #1
0
        private void UpdateMoonSky()
        {
            MacrocosmPlayer modPlayer = Main.LocalPlayer.GetModPlayer <MacrocosmPlayer>();

            if (MacrocosmWorld.moonBiome < 100)
            {
                return;
            }
        }
コード例 #2
0
 // TODO: Zone classes for behavior organization
 public void UpdateMusic(MacrocosmPlayer player, ref int music, ref MusicPriority priority)
 {
     if (player.ZoneMoon)
     {
         var musicPath = "Sounds/Music/MoonNight";
         if (Main.dayTime)
         {
             musicPath = "Sounds/Music/MoonDay";
         }
         music    = Macrocosm.Instance.GetSoundSlot(SoundType.Music, musicPath);
         priority = MusicPriority.Environment;
     }
 }