content: package aeyama.content;
  
  import arc.graphics.*;
  
  import mindustry.content.*;
  import mindustry.graphics.g3d.*;
  import mindustry.type.*;
  
  import aeyama.content.blocks.*;
  import aeyama.planets.*;
  
  public class AeyamaPlanets {
      public static Planet
          aeyama, moon;
  
      public static void load() {
          aeyama = new Planet("aeyama", Planets.sun, 1f, 1) {{
              iconColor = Color.valueOf("#158400");
              generator = new AeyamaPlanetGenerator();
  
              accessible = true;
              defaultCore = AeyamaEffectBlocks.coreFrontline;
  
              drawOrbit = true;
              orbitRadius = 32f;
  
              rotateTime = 24 * 60; // 24 minutes for a Aeyama day
              orbitTime = rotateTime * 28; // Full year in 28 Aeyama days
  
              atmosphereColor = Color.valueOf("#21c7eb");
              atmosphereRadIn = 0.1f;
              atmosphereRadOut = 0.3f;
  
              sectorSeed = 5948;
              startSector = 0;
              clearSectorOnLose = true;
              allowSectorInvasion = false;
              allowLaunchToNumbered = false;
              allowLaunchLoadout = true;
  
              ruleSetter = r -> {
                  r.fog = true;
                  r.staticFog = true;
              };
  
              itemWhitelist = AeyamaItems.aeyamaItems;
  
              meshLoader = () -> new MultiMesh(
                  new NoiseMesh(this, 262436,
                                5, .9f, 4, 1f, .75f, 1.2f,
                                Color.valueOf("#158400"), Color.valueOf("#7070ff"),
                                4, .5f, .5f, .5f),
                                  
                  new HexSkyMesh(this, 5,     
                                 1.5f, .12f, 5, Color.valueOf("#7eb6debb"), 1, 2f, 2f, .45f)
                  
                  // // Grass & Water
                  // new NoiseMesh(this, 262436,
                  //               6, 1f, 4, 1f, 0.75f, 1.2f,
                  //               Color.valueOf("#158400"), Color.valueOf("#7070ff"),
                  //               3, 0.5f, 0.25f, 0.5f),
                  // // Moutains
                  // new NoiseMesh(this, 373547,
                  //               6, 1f, 5, 0.5f, 1f, 1.3f,
                  //               Color.valueOf("#aaaaaa"), Color.valueOf("#cccccc"),
                  //               4, 0.7f, 0.7f, 0.8f),
                  
                  // new HexSkyMesh(this, 5,     
                  //                0.5f, 0.27f, 7, Color.valueOf("#7eb6debb"),
                  //                1, 2f, 2f, 0.45f)
              );
          }};
  
          moon = new Planet("moon", aeyama, 0.5f) {{
              visible = true;
              accessible = false;
              alwaysUnlocked = false;
  
              drawOrbit = true;
              orbitRadius = 5.2f;
              rotateTime = aeyama.rotateTime * .5f; //Full rotation in half a Aeyama day
              orbitTime = aeyama.rotateTime * 7; //Full orbit per Aeyama week
  
              hasAtmosphere = false;
  
              meshLoader = () -> new NoiseMesh(this, 4689, 4,
                                               Color.valueOf("#999999"), .5f, 5,
                                               1f, .5f, 1f);
          }};
      }
  }
  