Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
prefab_service.h File Reference
#include <engine/core/iEngineService.h>
#include <engine/public/gameObject.h>
#include <functional>
#include <map>
#include <memory>
#include <string>
Include dependency graph for prefab_service.h:

Go to the source code of this file.

Classes

class  PrefabService
 Global service for managing prefab factories and component creation. More...
 

Typedefs

using PrefabFactory = std::function< GameObject &(Scene &, const std::string &)>
 A prefab factory function that creates a GameObject with predefined components.
 

Typedef Documentation

◆ PrefabFactory

using PrefabFactory = std::function<GameObject&(Scene&, const std::string&)>

A prefab factory function that creates a GameObject with predefined components.

The factory receives the scene and object name, and returns a fully constructed GameObject with all its components already attached.