Exemplo n.º 1
0
 public CCHero(string name, CCBuff ccBuff, CCSpell ccSpells, Texture icon)
 {
     this.Name = name;
     this.CCBuff = ccBuff;
     this.CCSpells = ccSpells;
     this.Icon = icon;
 }
Exemplo n.º 2
0
 public CCHero(string name, CCBuff ccBuff, CCSpell ccSpells, Texture icon)
 {
     this.Name     = name;
     this.CCBuff   = ccBuff;
     this.CCSpells = ccSpells;
     this.Icon     = icon;
 }
Exemplo n.º 3
0
 static void Main(string[] args)
 {
     Sprite = new Sprite(Drawing.Direct3DDevice);
     Text   = new Font(Drawing.Direct3DDevice, new FontDescription()
     {
         FaceName        = "Verdana",
         Height          = 32,
         OutputPrecision = FontPrecision.Default,
         Quality         = FontQuality.Default
     });
     SmallText = new Font(Drawing.Direct3DDevice, new FontDescription()
     {
         FaceName        = "Verdana",
         Height          = 12,
         OutputPrecision = FontPrecision.Default,
         Quality         = FontQuality.Default
     });
     try
     {
         LoadCC();
         LoadMenu();
         foreach (Obj_AI_Hero hero in ObjectManager.Get <Obj_AI_Hero>().Where(hero => (CCBuffs.HasChampion(hero.ChampionName) || CCSpells.HasChampion(hero.ChampionName))))
         {
             CCBuff  ccBuff   = null;
             CCSpell ccSpells = null;
             ccBuff   = CCBuffs.GetChampion(hero.ChampionName);
             ccSpells = CCSpells.GetChampion(hero.ChampionName);
             Texture champIcon = ccSpells.Icon;
             CCHeros.Add(new CCHero(hero.ChampionName, ccBuff, ccSpells, champIcon));
         }
         HUD = Texture.FromMemory(Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Properties.Resources.CC_Tracker_HUD, typeof(byte[])), 232, 234, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0);
         Drawing.OnPreReset  += DrawingOnPreReset;
         Drawing.OnPostReset += DrawingOnPostReset;
         Drawing.OnDraw      += Drawing_OnDraw;
         AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
         AppDomain.CurrentDomain.ProcessExit  += CurrentDomainOnDomainUnload;
         Game.OnWndProc += Game_OnWndProc;
     }
     catch (Exception ex)
     {
         Game.PrintChat("Exception: {0}", ex.Message);
     }
 }