Interface ICreatureFinder
Interface for a creature finder.
Namespace: Fibula.Creatures.Contracts.Abstractions
Assembly: Fibula.Creatures.Contracts.dll
Syntax
public interface ICreatureFinder
Methods
| Improve this Doc View SourceFindAllCreatures()
Gets all creatures known to this finder.
Declaration
IEnumerable<ICreature> FindAllCreatures()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ICreature> | A collection of creature instances. |
FindAllPlayers()
Gets all players known to this finder.
Declaration
IEnumerable<IPlayer> FindAllPlayers()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IPlayer> | A collection of player instances. |
FindCreatureById(UInt32)
Looks for a single creature with the id.
Declaration
ICreature FindCreatureById(uint creatureId)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | creatureId | The creature id for which to look. |
Returns
Type | Description |
---|---|
ICreature | The creature instance, if found, and null otherwise. |
FindPlayerById(UInt32)
Looks for a single player with the id.
Declaration
IPlayer FindPlayerById(uint playerId)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | playerId | The player id for which to look. |
Returns
Type | Description |
---|---|
IPlayer | The player instance, if found, and null otherwise. |