Ejemplo n.º 1
0
        private static void OnTowerHijack(ITower tower, APIActivator oldActivator, APIActivator newActivator)
        {
            string title = Main.localize("tower.hijack.title");
            string body  = String.Format(Main.localize("tower.hijack.subtitle"), tower.Number, Main.localize("sector." + tower.Sector.Name.ToLowerInvariant()),
                                         Main.GetUppercaseNames(oldActivator.ToString()), Main.GetUppercaseNames(newActivator.ToString()));

            FireBasePush.SendMessage(title, body);
        }
Ejemplo n.º 2
0
        private static void OnTowerHijack(ITower tower, APIActivator oldActivator, APIActivator newActivator)
        {
            string title = "Huh? A tower has been hijacked!";
            string body  = "Tower nº" + tower.Number + " in the " + Main.GetUppercaseNames(tower.Sector.Name) + ", from " +
                           Main.GetUppercaseNames(oldActivator.ToString()) + " to " + Main.GetUppercaseNames(newActivator.ToString()) + "!";

            FireBasePush.SendMessage(title, body);
        }
 private static void OnTowerHijack(ITower tower, APIActivator oldA, APIActivator newA)
 {
     LyokoLogger.Log(Name, String.Format("<{4}> A tower in the {0} region has been hijacked by {1} ({0} #{2}: {3}->{1})", tower.Sector.Name.ToUpper(), newA.ToString().ToUpper(), tower.Number, oldA.ToString().ToUpper(), tower.Sector.World.Name.ToUpper()));
 }