Exemplo n.º 1
0
        private Object FindObjectOnMap(Point loc)
        {
            var he = travelpath?.FindSystem(loc, glwfc.RenderState, matrixcalc.ViewPort.Size, out float tz);

            if (he != null)
            {
                return(he);
            }
            var gmo = galmapobjects?.FindPOI(loc, glwfc.RenderState, matrixcalc.ViewPort.Size, out float gz);

            if (gmo != null)
            {
                return(gmo);
            }
            var sys = galaxystars?.Find(loc, glwfc.RenderState, matrixcalc.ViewPort.Size, out float sz);

            if (sys != null)
            {
                sys.X = sys.Y = sys.Z = 100000;
                return(sys);
            }
            var bk = bookmarks?.Find(loc, glwfc.RenderState, matrixcalc.ViewPort.Size, out float bz);

            if (bk != null)
            {
                return(bk);
            }
            return(null);
        }