direct.showbase.Factory

from direct.showbase.Factory import Factory

Contains the Factory class.

Inheritance diagram

digraph inheritance944faf323e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "Factory" [URL="direct.showbase.Factory.html#direct.showbase.Factory.Factory",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="This class manages a list of object types and their corresponding constructors."]; }
class Factory[source]

Bases: object

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.

notify = <direct.directnotify.Notifier.Notifier object>