Create a CPP Interface for cmp Attack
Currently there is some hacky atlas code to get some variables in Javascript mostly using evals. It would be better to define the component interface in c++ instead so that if changes were to be made to that function it would not break.
CStr code = "var cmp = Engine.QueryInterface("+CStr::FromUInt(m.Entity)+", IID_Attack); " +
"if (cmp) cmp.GetTimers(cmp.GetBestAttack()).repeat; else 0;";
m.Simulation2.GetScriptInterface().Eval(code.c_str(), repeattime);
Change History
(4)
Component: |
Atlas editor → Simulation
|
Keywords: |
simple removed
|
Patch: |
→ Phab:D2464
|
Milestone: |
Backlog → Alpha 24
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
In 23592: