Render the range visualization of auras, heal and attack component in a separate...
commit66ba4e2549549407a91df5f86183d3ac3a22bc35
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sun, 10 Dec 2017 02:41:08 +0000 (10 02:41 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sun, 10 Dec 2017 02:41:08 +0000 (10 02:41 +0000)
tree8d683d387cacfe446800ca0a08c0ee76cf1dfefa
parentca6374f518f45434ab88f0c09117abfd419885d4
Render the range visualization of auras, heal and attack component in a separate RangeOverlayRenderer component instead of abusing Selectable for that.
This also allows non-selectable entities like building previews to cast range visualizations.

Patch By: Sandarac
Differential Revision: https://code.wildfiregames.com/D555
Refs #3915, #4349, rP19519 / D238.
Comments By: Vladislav

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@20622 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/simulation/components/RangeVisualization.js
binaries/data/mods/public/simulation/templates/template_structure.xml
binaries/data/mods/public/simulation/templates/template_unit.xml
source/simulation2/TypeList.h
source/simulation2/components/CCmpRangeOverlayRenderer.cpp [new file with mode: 0644]
source/simulation2/components/CCmpSelectable.cpp
source/simulation2/components/ICmpRangeOverlayRenderer.cpp [copied from source/simulation2/components/ICmpSelectable.cpp with 58% similarity]
source/simulation2/components/ICmpRangeOverlayRenderer.h [copied from source/simulation2/components/ICmpSelectable.cpp with 53% similarity]
source/simulation2/components/ICmpSelectable.cpp
source/simulation2/components/ICmpSelectable.h