MCPcopy Create free account
hub / github.com/Norbyte/bg3se / Create

Method Create

BG3Extender/Extender/Client/IMGUI/Objects.h:979–986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977 }
978
979 T* Create() override
980 {
981 HandleType handle{};
982 auto obj = pool_.Add(handle);
983 *obj = GameAlloc<T>();
984 (*obj)->Handle = handle | ((uint64_t)T::ObjectType << 56);
985 return *obj;
986 }
987
988 T* Get(HandleType handle) override
989 {

Callers 1

CreateRenderableMethod · 0.45

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected