Constructor
new TriggerOnceOnPickup(terrain, color, flagStr)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
terrain |
Terrain | The underlying terrain this decorator wraps. |
color |
Color | Color event broadcast to the board on firing. |
flagStr |
string | Item name or flag string that must match the picked-up item to trigger the event. |
Extends
Classes
Methods
getProxiedTerrain()
- Description:
Return the terrain being wrapped (TerrainProxy interface).
- Source:
- Overrides:
onPickupInternal()
- Description:
Fires the color event and removes this trigger when the picked-up item matches TriggerOnceOnPickup#flagStr by name or by Registry type ID. Skips silently when the event is already cancelled or the item does not match.
- Source: