Search Results for

    Show / Hide Table of Contents

    Class BuffManager

    Object BuffManager instance.

    Inheritance
    System.Object
    BuffManager
    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: Oasys.Common.GameObject.Clients.ExtendedInstances
    Assembly: Oasys.Common.dll
    Syntax
    public class BuffManager

    Constructors

    BuffManager(Int32, AIBaseClient)

    Declaration
    public BuffManager(int instanceOffset, AIBaseClient owner)
    Parameters
    Type Name Description
    System.Int32 instanceOffset
    AIBaseClient owner

    Properties

    ActiveBuffs

    Current active buffs.

    Declaration
    public IEnumerable<BuffEntry> ActiveBuffs { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<BuffEntry>

    Buffs

    Current buffs.

    Declaration
    public IEnumerable<BuffEntry> Buffs { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<BuffEntry>

    Methods

    FirstOrDefault(Func<BuffEntry, Boolean>)

    Get the first or default buff entry based on the predicate.

    Declaration
    public BuffEntry FirstOrDefault(Func<BuffEntry, bool> predicate)
    Parameters
    Type Name Description
    System.Func<BuffEntry, System.Boolean> predicate
    Returns
    Type Description
    BuffEntry

    GetActiveBuff(Func<BuffEntry, Boolean>)

    Gets the first active buff or null that matches the predicate.

    Declaration
    public BuffEntry GetActiveBuff(Func<BuffEntry, bool> predicate)
    Parameters
    Type Name Description
    System.Func<BuffEntry, System.Boolean> predicate
    Returns
    Type Description
    BuffEntry

    GetActiveBuff(String)

    Gets a buff by the name given.

    Declaration
    public BuffEntry GetActiveBuff(string buffName)
    Parameters
    Type Name Description
    System.String buffName
    Returns
    Type Description
    BuffEntry

    GetBuff(Func<BuffEntry, Boolean>)

    Gets the first buff or null that matches the predicate.

    Declaration
    public BuffEntry GetBuff(Func<BuffEntry, bool> predicate)
    Parameters
    Type Name Description
    System.Func<BuffEntry, System.Boolean> predicate
    Returns
    Type Description
    BuffEntry

    GetBuffByName(String, Boolean, Boolean)

    Gets a buff by the name given.

    Declaration
    public BuffEntry GetBuffByName(string buffName, bool contains = true, bool equals = false)
    Parameters
    Type Name Description
    System.String buffName
    System.Boolean contains
    System.Boolean equals
    Returns
    Type Description
    BuffEntry

    GetBuffList()

    Gets all the buffs.

    Declaration
    public List<BuffEntry> GetBuffList()
    Returns
    Type Description
    System.Collections.Generic.List<BuffEntry>

    HasActiveBuff(Func<BuffEntry, Boolean>)

    Checks whether if it has an active buff with the true predicate given.

    Declaration
    public bool HasActiveBuff(Func<BuffEntry, bool> predicate)
    Parameters
    Type Name Description
    System.Func<BuffEntry, System.Boolean> predicate
    Returns
    Type Description
    System.Boolean

    HasActiveBuff(String)

    Checks whether if it has an active buff by the name given.

    Declaration
    public bool HasActiveBuff(string buffName)
    Parameters
    Type Name Description
    System.String buffName
    Returns
    Type Description
    System.Boolean

    HasBuff(Func<BuffEntry, Boolean>)

    Checks whether if it has buff with the true predicate given.

    Declaration
    public bool HasBuff(Func<BuffEntry, bool> predicate)
    Parameters
    Type Name Description
    System.Func<BuffEntry, System.Boolean> predicate
    Returns
    Type Description
    System.Boolean

    HasBuff(String)

    Checks whether if it has buff with the name given.

    Declaration
    public bool HasBuff(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Boolean

    HasBuff(String, Boolean, Boolean)

    Checks whether if it has buff with the name given.

    Declaration
    public bool HasBuff(string name, bool contains = true, bool equals = false)
    Parameters
    Type Name Description
    System.String name
    System.Boolean contains
    System.Boolean equals
    Returns
    Type Description
    System.Boolean

    Extension Methods

    Extensions.In<T>(T, T[])
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾