# Factory

from direct.showbase.Factory import Factory

This class manages a list of object types and their corresponding constructors. Objects may be created on-demand from their type. Object types may be any hashable piece of unique data (such as a string).
This class is intended to be derived from. Subclasses should call self._registerTypes to set up type constructors.

## Inheritance:

Factory:

## Methods of Factory:

__init__
_registerType
_registerTypes
create
nullCtor

__init__ def __init__(self) Undocumented function.

_registerType def _registerType(self, type, ctor) Undocumented function.

_registerTypes def _registerTypes(self, type2ctor) Undocumented function.

create def create(self, type, *args, **kwArgs) Undocumented function.

nullCtor def nullCtor(self, *args, **kwArgs) Undocumented function.