Search Results for

    Show / Hide Table of Contents

    Class PredicateLogic

    Functions that take in parametric information and return true or false.

    Inheritance
    System.Object
    PredicateLogic
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Danmokou.DMath.Functions
    Assembly: cs.temp.dll.dll
    Syntax
    public static class PredicateLogic

    Methods

    Circ(ExTP3)

    Return true if the object is in the given circle.

    Declaration
    public static ExPred Circ(ExTP3 circ)
    Parameters
    Type Name Description
    ExTP3 circ

    Circle in world-space

    Returns
    Type Description
    ExPred

    Cooldown(ExBPY, ExPred)

    Nest a predicate such that it can only return True once in a fixed period.

    Declaration
    public static ExPred Cooldown(ExBPY cooldown, ExPred pred)
    Parameters
    Type Name Description
    ExBPY cooldown
    ExPred pred
    Returns
    Type Description
    ExPred

    OnlyOnce(ExPred)

    Nest a predicate such that it only returns True once for a single bullet.

    Declaration
    public static ExPred OnlyOnce(ExPred pred)
    Parameters
    Type Name Description
    ExPred pred
    Returns
    Type Description
    ExPred

    Rect(CRect)

    Return true if the object is in the given rectangle.

    Declaration
    public static ExPred Rect(CRect rect)
    Parameters
    Type Name Description
    CRect rect

    Rectangle in world-space

    Returns
    Type Description
    ExPred

    RelCirc(Func<TExArgCtx, TEx<BehaviorEntity>>, ExTP3)

    Return true if the object is in the given circle relative to a BehaviorEntity.

    Declaration
    public static ExPred RelCirc(Func<TExArgCtx, TEx<BehaviorEntity>> beh, ExTP3 circ)
    Parameters
    Type Name Description
    System.Func<TExArgCtx, TEx<BehaviorEntity>> beh

    Target BehaviorEntity

    ExTP3 circ

    Relative circle

    Returns
    Type Description
    ExPred

    RelRect(Func<TExArgCtx, TEx<BehaviorEntity>>, CRect)

    Return true if the object is in the given rectangle relative to a BehaviorEntity.

    Declaration
    public static ExPred RelRect(Func<TExArgCtx, TEx<BehaviorEntity>> beh, CRect rect)
    Parameters
    Type Name Description
    System.Func<TExArgCtx, TEx<BehaviorEntity>> beh

    Target BehaviorEntity

    CRect rect

    Relative rectangle

    Returns
    Type Description
    ExPred
    In This Article
    Back to top Generated by DocFX