0ad/binaries/data/mods/public/simulation/components/interfaces/Resistance.js
Freagarach 4329dd90ce Rename Attacking.js-helper to Attack.js and its global to AttackHelper.
16b452cf91#inline-4026

Differential revision: https://code.wildfiregames.com/D3858
Comment by: @wraitii
This was SVN commit r25275.
2021-04-16 06:55:23 +00:00

20 lines
544 B
JavaScript

Engine.RegisterInterface("Resistance");
/**
* Message of the form { "entity": entity, "invulnerability": true/false }
*/
Engine.RegisterMessageType("InvulnerabilityChanged");
/**
* Message of the form {
* "type": string,
* "target": number,
* "attacker": attacker,
* "attackerOwner": number,
* "damage": number,
* "capture": number,
* "statusEffects": Object[],
* "fromStatusEffect": boolean }
* sent from Attack.js-helper to the target entity, each time the target is damaged.
*/
Engine.RegisterMessageType("Attacked");