Table of Contents

Class TileArgs

Namespace
TrinketTinker.Models.AbilityArgs
Assembly
TrinketTinker.dll

Args for picking a random tile within range

public class TileArgs : IArgs, ITileArgs
Inheritance
TileArgs
Implements
Derived
Inherited Members

Properties

CollisionMap

An optional collision map for specifying exactly what tiles to pick. X is a tile to pick, and any other char is skipped.

OXX
XOX
XXO

When this is set, count is ignored, but range is still used for the overall area affected. Tiles within range but not within the collision maps are never picked

public string? CollisionMap { get; set; }

Property Value

string

Count

Number of tiles to affect at a time, -1 means all

public int Count { get; set; }

Property Value

int

Range

Tile range radius, e.g. range 1 = 3x3, results in a square

public int Range { get; set; }

Property Value

int

Methods

IsCollide(int)

public bool IsCollide(int tileIdx)

Parameters

tileIdx int

Returns

bool

Validate()

Checks if the given arguments are valid, potentially modify arguments to ensure they are valid

public bool Validate()

Returns

bool

true if valid