Exemple #1
0
        public bool CheckPlace(string id)
        {
            PlaceAnalysiser pa = new PlaceAnalysiser(yeshen);

            if (pa.IsHere(AllPlaces.Data[id].Attrs))
            {
                return(true);
            }
            return(false);
        }
Exemple #2
0
        public bool CheckForward()
        {
            PlaceAnalysiser pa  = new PlaceAnalysiser(yeshen);
            Color           ral = yeshen.GetPixColor(0.5515, 0.3088);

            if (pa.JudgeColor(ral, Color.FromArgb(55, 8, 57), 12))
            {
                return(true);
            }
            return(false);
        }
Exemple #3
0
        public PlaceEnterty CheckPlaces(params string[] ids)
        {
            PlaceAnalysiser pa = new PlaceAnalysiser(yeshen);

            foreach (var x in ids)
            {
                if (pa.IsHere(AllPlaces.Data[x].Attrs))
                {
                    return(AllPlaces.Data[x]);
                }
            }
            return(null);
        }
Exemple #4
0
        public PlaceEnterty GetCurrPlace()
        {
            PlaceAnalysiser pa = new PlaceAnalysiser(yeshen);

            foreach (var x in AllPlaces.Data)
            {
                if (pa.IsHere(x.Value.Attrs))
                {
                    return(x.Value);
                }
            }

            return(null);
        }