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
-
GenericSpawnItemDataPlaceObjectArgs
- Implements
-
ISpawnItemData
- Inherited Members
-
GenericSpawnItemData.IdGenericSpawnItemData.ItemIdGenericSpawnItemData.RandomItemIdGenericSpawnItemData.MaxItemsGenericSpawnItemData.MinStackGenericSpawnItemData.MaxStackGenericSpawnItemData.QualityGenericSpawnItemData.ObjectInternalNameGenericSpawnItemData.ObjectDisplayNameGenericSpawnItemData.ObjectColorGenericSpawnItemData.ToolUpgradeLevelGenericSpawnItemData.IsRecipeGenericSpawnItemData.StackModifiersGenericSpawnItemData.StackModifierModeGenericSpawnItemData.QualityModifiersGenericSpawnItemData.QualityModifierModeGenericSpawnItemData.ModDataGenericSpawnItemData.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
Count
Number of tiles to affect at a time, -1 means all
public int Count { get; set; }
Property Value
Interval
A delay between each object placement
public int Interval { get; set; }
Property Value
Range
Tile range radius, e.g. range 1 = 3x3, results in a square
public int Range { get; set; }
Property Value
Methods
IsCollide(int)
public bool IsCollide(int tileIdx)
Parameters
tileIdxint
Returns
Validate()
Checks if the given arguments are valid, potentially modify arguments to ensure they are valid
public bool Validate()
Returns
- bool
true if valid