本文整理汇总了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);
}