| 818 | } |
| 819 | |
| 820 | ScriptingTypeHandle Scripting::FindScriptingType(const StringAnsiView& fullname) |
| 821 | { |
| 822 | if (fullname.IsEmpty()) |
| 823 | return ScriptingTypeHandle(); |
| 824 | PROFILE_CPU(); |
| 825 | auto& modules = BinaryModule::GetModules(); |
| 826 | for (auto module : modules) |
| 827 | { |
| 828 | int32 typeIndex; |
| 829 | if (module->FindScriptingType(fullname, typeIndex)) |
| 830 | { |
| 831 | return ScriptingTypeHandle(module, typeIndex); |
| 832 | } |
| 833 | } |
| 834 | return ScriptingTypeHandle(); |
| 835 | } |
| 836 | |
| 837 | ScriptingObject* Scripting::NewObject(const ScriptingTypeHandle& type) |
| 838 | { |
no test coverage detected