Skip to content

Factory

Factory<T>(extensions?): () => IFactory<T>

Defined in: mixins/factory/Factory.ts:10

Type Parameters

T extends object = { animatedSprite: (props?) => AnimatedSprite; bitmapText: (props?) => BitmapText; button: (props?) => Button; container: (props?) => Container; existing: <TEntity>(entity, props?) => TEntity; flexContainer: (props?) => FlexContainer; graphics: (props?) => Graphics; htmlText: (props?) => HTMLText; particleContainer: (props?) => ParticleContainer; spine: (props?) => Spine; spineAnimation: (props?) => SpineAnimation; sprite: (props?) => Sprite; text: (props?) => Text; texture: (props?) => Texture; uiCanvas: (props?) => UICanvas; svg: Svg; }

Parameters

extensions?

Partial<T>

Returns

Function

Returns

IFactory<T>