Exemplo n.º 1
0
 public void read(object ob)
 {
     Debug.Log("running starreads");
     try {
         var manystars = new starmap();
         manystars.read_dat(path);
         GameDad.manystars    = manystars;
         GameDad.starprogress = -1;
     }
     catch (System.Exception e) {
         Debug.Log(e.ToString());
     }
 }
Exemplo n.º 2
0
    public redstar_organizer(int star, Vector3 _vector)
    {
        candidates = new SortedDictionary <float, int>();
        starmap sm = GameDad.manystars;

        loc    = sm.getstar(star).vec;
        vector = _vector;
        foreach (var ix in sm.stars_near_vec(loc, 4f))
        {
            if (ix == star)
            {
                continue;
            }
            star s = sm.getstar(ix);
            candidates[starscore(s)] = ix;
        }
    }