Show / Hide Table of Contents

    Class MonsterDbFileMonsterSpawnLoader

    Class that represents a monster spawn loader that reads from the monster.db file.

    Inheritance
    System.Object
    MonsterDbFileMonsterSpawnLoader
    Implements
    IMonsterSpawnLoader
    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.Creatures.MonstersDbFile
    Assembly: Fibula.Creatures.MonstersDbFile.dll
    Syntax
    public class MonsterDbFileMonsterSpawnLoader : IMonsterSpawnLoader

    Constructors

    | Improve this Doc View Source

    MonsterDbFileMonsterSpawnLoader(ILogger, IOptions<MonsterDbFileMonsterSpawnLoaderOptions>)

    Initializes a new instance of the MonsterDbFileMonsterSpawnLoader class.

    Declaration
    public MonsterDbFileMonsterSpawnLoader(ILogger logger, IOptions<MonsterDbFileMonsterSpawnLoaderOptions> options)
    Parameters
    Type Name Description
    Serilog.ILogger logger

    A reference to the logger instance.

    Microsoft.Extensions.Options.IOptions<MonsterDbFileMonsterSpawnLoaderOptions> options

    The options for this loader.

    Fields

    | Improve this Doc View Source

    CommentSymbol

    Character for comments.

    Declaration
    public const char CommentSymbol = '#'
    Field Value
    Type Description
    System.Char
    | Improve this Doc View Source

    Space

    The space character.

    Declaration
    public const char Space = ' '
    Field Value
    Type Description
    System.Char

    Properties

    | Improve this Doc View Source

    LoaderOptions

    Gets the loader options.

    Declaration
    public MonsterDbFileMonsterSpawnLoaderOptions LoaderOptions { get; }
    Property Value
    Type Description
    MonsterDbFileMonsterSpawnLoaderOptions
    | Improve this Doc View Source

    Logger

    Gets the logger to use in this handler.

    Declaration
    public ILogger Logger { get; }
    Property Value
    Type Description
    Serilog.ILogger

    Methods

    | Improve this Doc View Source

    LoadSpawns()

    Attempts to load the monster spawns.

    Declaration
    public IEnumerable<Spawn> LoadSpawns()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<Spawn>

    The collection of loaded monster spawns.

    Implements

    IMonsterSpawnLoader

    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.