EmberComposer
A class in Root.Township, the global namespace.
Skill that heats a held meltable item: while active it pours energy into the heat point nearest the hand until the whole item is hot, then fires the skill.
- Listed in Global namespace: E to H
- Inherits or implements
PickupBasedSkill - Derived types
EmberComposer.Create - Nested types
Create,HeatPointCollectionHandler
Constructors
| Member | What it is |
|---|---|
EmberComposer() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private Dictionary<uint, PooledObject> activeEffects | Fire effect per entity ID. |
private Dictionary<Pickup, EmberComposer.HeatPointCollectionHandler> collectionMap | Heat handler per pickup. |
private float energyPerSecond | Energy added per second. Defaults to 500. |
private PooledObjectDefinition fireEffectDefinition | Pooled fire effect; must be an EmberComposerFireEffect. |
private float maxTemperatureToAccept | The skill won't start if any part is hotter than this. Defaults to 30. |
private float targetTemperature | Temperature every heat point must reach. Defaults to 1000. |
Methods
| Member | What it is |
|---|---|
override void Deregister(ISkillInputMethod input) | Turns off and removes the heat handler for the input's pickup. |
override void Register(ISkillInputMethod input) | Creates a heat handler for the input's pickup. |
override void SetEffectActive(Pickup pickup, Player player, bool isEffectActive) | Starts or stops heating. Refuses to start if any heat point is above maxTemperatureToAccept; stopping runs the skill. |
override bool ValidatePickup(HeldPickupHandler pickupHandler) | True if the held pickup has a MeltingModel that triggers abilities. |
protected override void ReleaseToolEffect(NetworkEntity entity) | Releases the fire effect on the entity. |
protected override void RequestToolEffect(NetworkEntity entity) | Spawns the fire effect at the holding hand, pointed at and sized to the item's mesh. |
Used in
Members of other types that take, return or hold a EmberComposer: