| 149 | } |
| 150 | |
| 151 | int CScriptObjectAnimation::Start2Anims(IFunctionHandler* pH) |
| 152 | { |
| 153 | GET_ANIM_MANAGER(pAnimationManager); |
| 154 | switch (pH->GetParamCount()) |
| 155 | { |
| 156 | case 5: |
| 157 | { |
| 158 | CASCmdStartAnim sa[2]; |
| 159 | CASCmdStartMultiAnims ma; |
| 160 | if (!pH->GetParam (1, sa[0].nLayer) |
| 161 | ||!pH->GetParam (2, sa[0].szAnimName) |
| 162 | ||!pH->GetParam (3, sa[1].nLayer) |
| 163 | ||!pH->GetParam (4, sa[1].szAnimName) |
| 164 | ||!pH->GetParam (5, ma.fBlendTime)) |
| 165 | m_pScriptSystem->RaiseError("System.UnloadAnim wrong argument type"); |
| 166 | ma.numAnims = 2; |
| 167 | ma.pAnims = sa; |
| 168 | pAnimationManager->ExecScriptCommand(CASCMD_START_MANY_ANIMS, &ma); |
| 169 | } |
| 170 | break; |
| 171 | default: |
| 172 | m_pScriptSystem->RaiseError("System.Start2Anims wrong number of arguments (%d), use: Start2Anims(layer,anim,layer,anim,blendin)", pH->GetParamCount()); |
| 173 | return pH->EndFunctionNull(); |
| 174 | } |
| 175 | return pH->EndFunction(0); |
| 176 | } |
| 177 | |
| 178 | |
| 179 | int CScriptObjectAnimation::DumpStates(IFunctionHandler* pH) |
nothing calls this directly
no test coverage detected