Class MultiBlock
Simple mode that can affect several blocks given their offset from the block targetted by interaction and condition they have to meet.
Inheritance
System.Object
MultiBlock
Assembly: Eco.Gameplay.dll
Syntax
public class MultiBlock : AreaOfEffectMode
Constructors
MultiBlock(Vector3i[], Boolean)
Declaration
public MultiBlock(Vector3i[] areaBlocks, bool requireCentralBlock)
Parameters
| Type |
Name |
Description |
| Vector3i[] |
areaBlocks |
|
| 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