コード例 #1
0
ファイル: Jungler.cs プロジェクト: Bl4ckDevil/SAwarenessBeta
 public Jungler()
 {
     foreach (Obj_AI_Hero hero in ObjectManager.Get <Obj_AI_Hero>())
     {
         if (hero.IsEnemy && hero.Spellbook.Spells.Find(inst => inst.Name.ToLower().Contains("smite")) != null)
         {
             HeroJungler = hero;
             Render.Text text = new Render.Text(Drawing.Width / 2, Drawing.Height / 2 + 400, "", 20, Color.AliceBlue);
             text.TextUpdate = delegate
             {
                 if (targeting)
                 {
                     return(MapPositions.GetRegion(hero.ServerPosition.To2D()).ToString() +
                            "\nJungler is targeting you. CARE!");
                 }
                 return(MapPositions.GetRegion(hero.ServerPosition.To2D()).ToString());
             };
             text.VisibleCondition = sender =>
             {
                 return(IsActive() && hero.IsVisible && !hero.IsDead);
             };
             text.OutLined = true;
             text.Centered = true;
             text.Add();
         }
     }
     Obj_AI_Base.OnIssueOrder += Obj_AI_Base_OnIssueOrder;
 }
コード例 #2
0
ファイル: MapsPageViewModel.cs プロジェクト: sriramv1/Maps
        public void GetMapData()
        {
            Position position = new Position(latitude: 27.981484, longitude: -82.488968);

            MapPositions.Add(position);
            MapPins.Add(new Pin
            {
                Type     = PinType.Place,
                Position = position,
                Label    = "Habana Mill",
                Address  = "Tampa, FL"
            });

            position = new Position(latitude: 27.9419666, longitude: -82.4125937);
            MapPositions.Add(position);
            MapPins.Add(new Pin
            {
                Type     = PinType.Place,
                Position = position,
                Label    = "Palm River",
                Address  = "Tampa, FL"
            });

            position = new Position(latitude: 27.9650212, longitude: -82.4350941);
            MapPositions.Add(position);
            MapPins.Add(new Pin
            {
                Type     = PinType.Place,
                Position = position,
                Label    = "Ybor City",
                Address  = "Tampa, FL"
            });

            position = new Position(latitude: 27.9453715, longitude: -82.4659336);
            MapPositions.Add(position);
            MapPins.Add(new Pin
            {
                Type     = PinType.Place,
                Position = position,
                Label    = "University of Tampa",
                Address  = "Tampa, FL"
            });
        }
コード例 #3
0
        public static string mapPositionToString(MapPositions position)
        {
            switch (position)
            {
            case MapPositions.CENTER:
                return("C");

            case MapPositions.LEFT1:
                return("L1");

            case MapPositions.LEFT2:
                return("L2");

            case MapPositions.RIGHT1:
                return("R1");

            case MapPositions.RIGHT2:
                return("R2");

            default:
                return("");
            }
        }