Search Results for

    Show / Hide Table of Contents

    Class CircleHitBox

    Represents a circular hitbox used for detecting hurtboxes within a defined radius. Inherits from HitBox.

    Inheritance
    System.Object
    HitBox
    CircleHitBox
    Inherited Members
    HitBox._targetTag
    HitBox._targetLayerMask
    HitBox._hitResults
    HitBox._raycastHitResults
    HitBox.ViewID
    HitBox.HasTag()
    HitBox.UpdateViewID(Int32)
    HitBox.UpdatePosition(EntityDirectionType)
    HitBox.UpdatePosition(Vector2)
    Namespace: CatchIo.Runtime.Combat.HitBoxes
    Assembly: cs.temp.dll.dll
    Syntax
    public sealed class CircleHitBox : HitBox

    Properties

    Radius

    Gets the radius of the circular hitbox.

    Declaration
    public float Radius { get; }
    Property Value
    Type Description
    System.Single

    Methods

    DetectHurtBox<T>(Func<T, Boolean>)

    Detects the closest hurtbox within the hitbox radius that matches the specified filter.

    Declaration
    public override T DetectHurtBox<T>(Func<T, bool> filter = null)
        where T : HurtBox
    Parameters
    Type Name Description
    System.Func<T, System.Boolean> filter

    Optional filter to apply to detected hurtboxes.

    Returns
    Type Description
    T

    The closest hurtbox matching the criteria, or null if none are found.

    Type Parameters
    Name Description
    T

    The type of the hurtbox to detect.

    Overrides
    CatchIo.Runtime.Combat.HitBoxes.HitBox.DetectHurtBox<T>(System.Func<T, System.Boolean>)

    DetectHurtBoxes<T>(Func<T, Boolean>)

    Detects all hurtboxes within the hitbox radius that match the specified filter.

    Declaration
    public override T[] DetectHurtBoxes<T>(Func<T, bool> filter = null)
        where T : HurtBox
    Parameters
    Type Name Description
    System.Func<T, System.Boolean> filter

    Optional filter to apply to detected hurtboxes.

    Returns
    Type Description
    T[]

    An array of detected hurtboxes matching the criteria, or null if none are found.

    Type Parameters
    Name Description
    T

    The type of the hurtboxes to detect.

    Overrides
    CatchIo.Runtime.Combat.HitBoxes.HitBox.DetectHurtBoxes<T>(System.Func<T, System.Boolean>)
    In This Article
    Back to top ©Team STEP, All Rights Reserved.