Table of Contents

Class PlaceObjectArgs

Namespace
TrinketTinker.Models.AbilityArgs
Assembly
TrinketTinker.dll

Args for placing random items derived from item spawn rule

public class PlaceObjectArgs : GenericSpawnItemData, ISpawnItemData, ITileArgs, IArgs
Inheritance
GenericSpawnItemData
PlaceObjectArgs
Implements
ISpawnItemData
Inherited Members
GenericSpawnItemData.Id
GenericSpawnItemData.ItemId
GenericSpawnItemData.RandomItemId
GenericSpawnItemData.MaxItems
GenericSpawnItemData.MinStack
GenericSpawnItemData.MaxStack
GenericSpawnItemData.Quality
GenericSpawnItemData.ObjectInternalName
GenericSpawnItemData.ObjectDisplayName
GenericSpawnItemData.ObjectColor
GenericSpawnItemData.ToolUpgradeLevel
GenericSpawnItemData.IsRecipe
GenericSpawnItemData.StackModifiers
GenericSpawnItemData.StackModifierMode
GenericSpawnItemData.QualityModifiers
GenericSpawnItemData.QualityModifierMode
GenericSpawnItemData.ModData
GenericSpawnItemData.PerItemCondition

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

Interval

A delay between each object placement

public int Interval { 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