| CRM64Pro GDK v0.17.0 A free cross-platform game development kit built on top of SDL 3.0

Loading...
Searching...
No Matches
CRM64Pro::ISceneObjectFactoryabstract
Scene module » Scene Layer base » Scene LayerObject

Factory interface for creating game objects from Tiled type strings. More...

## Detailed Description

Factory interface for creating game objects from Tiled type strings.

Users implement this interface to create game-specific SceneObject subclasses based on the "type" attribute from Tiled objects.

## Public Member Functions
virtual SceneObject * | create (const string &sType)=0
| Create an object instance based on Tiled type string.

## Member Function Documentation

## ◆ create()

virtual SceneObject * CRM64Pro::ISceneObjectFactory::create | ( | const string & | sType | ) |
| pure virtual

Create an object instance based on Tiled type string.

Parameters

  sType | The "type" attribute from the Tiled object element, preserved exactly as provided by Scene.

Returns
  Pointer to newly created SceneObject-derived instance, or nullptr to use generic SceneObject.