MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / script_clsid

Method script_clsid

ogsr_engine/COMMON_AI/object_factory_inline.h:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48IC int CObjectFactory::script_clsid(const CLASS_ID& clsid) const
49{
50 actualize();
51 const_iterator I = std::lower_bound(clsids().begin(), clsids().end(), clsid, CObjectItemPredicate());
52 VERIFY((I != clsids().end()) && ((*I)->clsid() == clsid));
53 return (int(I - clsids().begin()));
54}
55
56IC CObjectFactory::CLIENT_BASE_CLASS* CObjectFactory::client_object(const CLASS_ID& clsid) const { return (item(clsid).client_object()); }
57

Callers 5

reloadMethod · 0.45
register_scriptMethod · 0.45
r_clsid_scriptFunction · 0.45
addMethod · 0.45
CSE_AbstractMethod · 0.45

Calls 4

beginMethod · 0.45
endMethod · 0.45
clsidMethod · 0.45

Tested by

no test coverage detected