Opened 11 years ago
Last modified 11 years ago
#2048 closed enhancement
[PATCH][WIP] Implement Auras — at Initial Version
Reported by: | sanderd17 | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 15 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | Patch: |
Description
I have a little WIP patch for Aura implementation.
It works basically as ranged-based technologies. So you can edit every template value you want. Currently, this also means that currently, there is no "heal" aura until the heal regen rate is implemented. (once that's implemented, you can just alter the template value to have faster automatic healing, or even range based damage).
I also made an AuraManager, basically, that keeps track of all the added bonuses to units in auras. A bit like the TechnologyManager.
The main issue I still have with this is calling it via the interface. I'd like to call it as
var cmpAuraManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_AuraManager);
But it keeps complaining cmpAuraManager is null after that line. Once that is solved (or an other way is found to have AuraManager available throughout the game) it should work.