Class Cone
Affects all blocks inside a cone that meet a specified condition.
Inheritance
System.Object
Cone
Assembly: Eco.Gameplay.dll
Syntax
public class Cone : AreaOfEffectMode
Constructors
Cone(Single, Single, Single, Boolean)
Declaration
public Cone(float initialRadius, float finalRadius, float length, bool requireCentralBlock)
Parameters
Type |
Name |
Description |
System.Single |
initialRadius |
|
System.Single |
finalRadius |
|
System.Single |
length |
|
System.Boolean |
requireCentralBlock |
|
Methods
GetAffectedBlocks(Player, Vector3i, IEnumerable<Tag>, IEnumerable<Tag>, IEnumerable<Tag>)
Declaration
public override IEnumerable<Vector3i> GetAffectedBlocks(Player player, Vector3i centerPos, IEnumerable<Tag> tagsTargetable, IEnumerable<Tag> mustHaveTags = null, IEnumerable<Tag> mustNotHaveTags = null)
Parameters
Type |
Name |
Description |
Player |
player |
|
Vector3i |
centerPos |
|
System.Collections.Generic.IEnumerable<Tag> |
tagsTargetable |
|
System.Collections.Generic.IEnumerable<Tag> |
mustHaveTags |
|
System.Collections.Generic.IEnumerable<Tag> |
mustNotHaveTags |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Vector3i> |
|
Overrides
Extension Methods