本文整理匯總了C#中Server.Region.IsPartOf方法的典型用法代碼示例。如果您正苦於以下問題:C# Region.IsPartOf方法的具體用法?C# Region.IsPartOf怎麽用?C# Region.IsPartOf使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Server.Region
的用法示例。
在下文中一共展示了Region.IsPartOf方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: IsMLRegion
public static bool IsMLRegion( Region region )
{
return region.IsPartOf( "Twisted Weald" )
|| region.IsPartOf( "Sanctuary" )
|| region.IsPartOf( "The Prism of Light" )
|| region.IsPartOf( "The Citadel" )
|| region.IsPartOf( "Bedlam" )
|| region.IsPartOf( "Blighted Grove" )
|| region.IsPartOf( "The Painted Caves" )
|| region.IsPartOf( "The Palace of Paroxysmus" )
|| region.IsPartOf( "Labyrinth" );
}
示例2: FromRegion
public static Town FromRegion( Region reg )
{
if ( reg.Map != Faction.Facet )
return null;
List<Town> towns = Towns;
for ( int i = 0; i < towns.Count; ++i )
{
Town town = towns[i];
if ( reg.IsPartOf( town.Definition.Region ) )
return town;
}
return null;
}
示例3: AcceptsSpawnsFrom
public virtual bool AcceptsSpawnsFrom(Region region)
{
return AllowSpawn() && region != null && (region.IsPartOf(BattleRegion) || region.IsPartOf(SpectateRegion));
}
示例4: IsMondainDungeon
public static bool IsMondainDungeon(Region region)
{
if (region.IsPartOf("Twisted Weald"))
return true;
if (region.IsPartOf("Sanctuary"))
return true;
if (region.IsPartOf("Prism of Light"))
return true;
if (region.IsPartOf("Citadel"))
return true;
if (region.IsPartOf("Bedlam"))
return true;
if (region.IsPartOf("Blighted Grove"))
return true;
if (region.IsPartOf("Painted Caves"))
return true;
if (region.IsPartOf("Palace of Paroxysmus"))
return true;
if (region.IsPartOf("Labyrinth"))
return true;
return false;
}
示例5: IsDungeon
public static bool IsDungeon(Point3D pnt, Map map, Region region)
{
return region.IsPartOf(typeof(DungeonRegion)) || IsMondainDungeon(region) || Server.Spells.SpellHelper.IsTrammelWind(map, pnt) || Server.Spells.SpellHelper.IsFeluccaWind(map, pnt);
}