Show / Hide Table of Contents

    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 Source

    FindAllCreatures()

    Gets all creatures known to this finder.

    Declaration
    IEnumerable<ICreature> FindAllCreatures()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ICreature>

    A collection of creature instances.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.