Skip to main content

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.

Constructors​

MemberWhat it is
EmberComposer()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

6 private and internal fields
MemberWhat it is
private Dictionary<uint, PooledObject> activeEffectsFire effect per entity ID.
private Dictionary<Pickup, EmberComposer.HeatPointCollectionHandler> collectionMapHeat handler per pickup.
private float energyPerSecondEnergy added per second. Defaults to 500.
private PooledObjectDefinition fireEffectDefinitionPooled fire effect; must be an EmberComposerFireEffect.
private float maxTemperatureToAcceptThe skill won't start if any part is hotter than this. Defaults to 30.
private float targetTemperatureTemperature every heat point must reach. Defaults to 1000.

Methods​

MemberWhat 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: