| 427 | } |
| 428 | |
| 429 | Dictionary::Ptr ScriptUtils::GetTemplate(const Value& vtype, const String& name) |
| 430 | { |
| 431 | Type::Ptr ptype; |
| 432 | |
| 433 | if (vtype.IsObjectType<Type>()) |
| 434 | ptype = vtype; |
| 435 | else |
| 436 | ptype = Type::GetByName(vtype); |
| 437 | |
| 438 | ConfigItem::Ptr item = ConfigItem::GetByTypeAndName(ptype, name); |
| 439 | |
| 440 | if (!item || !item->IsAbstract()) |
| 441 | return nullptr; |
| 442 | |
| 443 | DebugInfo di = item->GetDebugInfo(); |
| 444 | |
| 445 | return GetTargetForTemplate(item); |
| 446 | } |
| 447 | |
| 448 | Array::Ptr ScriptUtils::GetTemplates(const Type::Ptr& type) |
| 449 | { |
nothing calls this directly
no test coverage detected