Class MapExtensions
Helper class that provides extensions for the IMap implementations.
Inheritance
System.Object
MapExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Map.Contracts.Extensions
Assembly: Fibula.Map.Contracts.dll
Syntax
public static class MapExtensions
Methods
| Improve this Doc View SourceCreaturesThatCanSee(IMap, Location[])
Gets the ids of any creatures that can see the given locations.
Declaration
public static IEnumerable<ICreature> CreaturesThatCanSee(this IMap map, params Location[] locations)
Parameters
Type | Name | Description |
---|---|---|
IMap | map | A reference to the map. |
Location[] | locations | The locations to check if players can see. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ICreature> | A collection of connections. |
PlayersThatCanSee(IMap, Location[])
Gets the ids of any players that can see the given locations.
Declaration
public static IEnumerable<IPlayer> PlayersThatCanSee(this IMap map, params Location[] locations)
Parameters
Type | Name | Description |
---|---|---|
IMap | map | A reference to the map. |
Location[] | locations | The locations to check if players can see. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IPlayer> | A collection of connections. |