MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xFactory

Method xFactory

src/SB/Core/x/xFactory.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <string.h>
6
7xFactory::xFactory(S32 maxTypes)
8{
9 U32 amt = maxTypes * sizeof(XGOFTypeInfo);
10 this->infopool = (XGOFTypeInfo*)xMemAllocSize(amt);
11 memset(this->infopool, 0, amt);
12 XOrdInit(&this->infolist, maxTypes, 0);
13}
14
15xFactory::~xFactory()
16{

Callers

nothing calls this directly

Calls 2

memsetFunction · 0.85
XOrdInitFunction · 0.85

Tested by

no test coverage detected