Пример #1
0
 public void resetMap(bool setRes = true)
 {
     mapstep = 0;
     if (SCANconfigLoader.GlobalResource && setRes)
     {             //Make sure that a resource is initialized if necessary
         if (resource == null && body != null)
         {
             resource = SCANcontroller.getResourceNode(SCANcontroller.controller.resourceSelection);
             if (resource == null)
             {
                 resource = SCANcontroller.GetFirstResource;
             }
             resource.CurrentBodyConfig(body.name);
         }
     }
 }
Пример #2
0
        private double[] mapline;    // all refs are below

        /* MAP: nearly trivial functions */
        public void setBody(CelestialBody b)
        {
            if (body == b)
            {
                return;
            }
            body = b;
            if (SCANconfigLoader.GlobalResource)
            {
                resource = SCANcontroller.getResourceNode(SCANcontroller.controller.resourceSelection);
                if (resource == null)
                {
                    resource = SCANcontroller.GetFirstResource;
                }
                resource.CurrentBodyConfig(body.name);
            }
        }