| 200 | |
| 201 | |
| 202 | int CScriptObjectAnimation::UnloadAnim(IFunctionHandler *pH) |
| 203 | { |
| 204 | GET_ANIM_MANAGER(pAnimationManager); |
| 205 | switch (pH->GetParamCount()) |
| 206 | { |
| 207 | case 1: |
| 208 | { |
| 209 | const char* pName; |
| 210 | if (pH->GetParam(1,pName)) |
| 211 | pAnimationManager->ExecScriptCommand(CASCMD_UNLOAD_ANIMATION, (void*)pName); |
| 212 | else |
| 213 | { |
| 214 | m_pScriptSystem->RaiseError("System.UnloadAnim wrong argument type (%d) - must be a string", pH->GetParamType(1)); |
| 215 | return pH->EndFunctionNull(); |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | default: |
| 220 | m_pScriptSystem->RaiseError("System.UnloadAnim wrong number of arguments (%d)", pH->GetParamCount()); |
| 221 | return pH->EndFunctionNull(); |
| 222 | } |
| 223 | return pH->EndFunction(0); |
| 224 | } |
| 225 | |
| 226 | |
| 227 | int CScriptObjectAnimation::DumpModels(IFunctionHandler *pH) |
nothing calls this directly
no test coverage detected