public static List <Zone> FindZonesFromTag(Spell spell, SpellZoneTag zoneTag, SpellPlayerSide spellSide) { object[] objArray1 = new object[] { spell, zoneTag, spellSide }; Class267 <Zone> class2 = MonoClass.smethod_16 <Class267 <Zone> >(TritonHs.MainAssemblyPath, "", "SpellUtils", "FindZonesFromTag", new Class272.Enum20[] { Class272.Enum20.Class }, objArray1); if (class2 != null) { return(class2.method_25()); } return(null); }
public static List <Zone> FindZonesFromTag(SpellZoneTag zoneTag) { Class272.Enum20[] enumArray1 = new Class272.Enum20[] { Class272.Enum20.ValueType }; object[] objArray1 = new object[] { zoneTag }; Class267 <Zone> class2 = MonoClass.smethod_16 <Class267 <Zone> >(TritonHs.MainAssemblyPath, "", "SpellUtils", "FindZonesFromTag", enumArray1, objArray1); if (class2 != null) { return(class2.method_25()); } return(null); }
public static List <Zone> FindZonesFromTag(Spell spell, SpellZoneTag zoneTag, SpellPlayerSide spellSide) { if (ZoneMgr.Get() != null) { if (spellSide == SpellPlayerSide.NEUTRAL) { return(null); } if (spellSide == SpellPlayerSide.BOTH) { return(FindZonesFromTag(zoneTag)); } Player.Side side = ConvertSpellSideToPlayerSide(spell, spellSide); switch (zoneTag) { case SpellZoneTag.PLAY: return(ZoneMgr.Get().FindZonesOfType <Zone, ZonePlay>(side)); case SpellZoneTag.HERO: return(ZoneMgr.Get().FindZonesOfType <Zone, ZoneHero>(side)); case SpellZoneTag.HERO_POWER: return(ZoneMgr.Get().FindZonesOfType <Zone, ZoneHeroPower>(side)); case SpellZoneTag.WEAPON: return(ZoneMgr.Get().FindZonesOfType <Zone, ZoneWeapon>(side)); case SpellZoneTag.DECK: return(ZoneMgr.Get().FindZonesOfType <Zone, ZoneDeck>(side)); case SpellZoneTag.HAND: return(ZoneMgr.Get().FindZonesOfType <Zone, ZoneHand>(side)); case SpellZoneTag.GRAVEYARD: return(ZoneMgr.Get().FindZonesOfType <Zone, ZoneGraveyard>(side)); case SpellZoneTag.SECRET: return(ZoneMgr.Get().FindZonesOfType <Zone, ZoneSecret>(side)); } Debug.LogWarning(string.Format("SpellUtils.FindZonesFromTag() - Unhandled zoneTag {0}. spellSide={1} playerSide={2}", zoneTag, spellSide, side)); } return(null); }
public static List <Zone> FindZonesFromTag(SpellZoneTag zoneTag) { ZoneMgr mgr = ZoneMgr.Get(); if (mgr != null) { switch (zoneTag) { case SpellZoneTag.PLAY: return(mgr.FindZonesOfType <Zone, ZonePlay>()); case SpellZoneTag.HERO: return(mgr.FindZonesOfType <Zone, ZoneHero>()); case SpellZoneTag.HERO_POWER: return(mgr.FindZonesOfType <Zone, ZoneHeroPower>()); case SpellZoneTag.WEAPON: return(mgr.FindZonesOfType <Zone, ZoneWeapon>()); case SpellZoneTag.DECK: return(mgr.FindZonesOfType <Zone, ZoneDeck>()); case SpellZoneTag.HAND: return(mgr.FindZonesOfType <Zone, ZoneHand>()); case SpellZoneTag.GRAVEYARD: return(mgr.FindZonesOfType <Zone, ZoneGraveyard>()); case SpellZoneTag.SECRET: return(mgr.FindZonesOfType <Zone, ZoneSecret>()); } Debug.LogWarning(string.Format("SpellUtils.FindZonesFromTag() - unhandled zoneTag {0}", zoneTag)); } return(null); }