Brunot
Loading...
Searching...
No Matches
ChildrenHandeler.h File Reference

The class containing Json implemenation for building components. More...

#include <cassert>
#include "Framework/GameObject.h"
#include <vector>
#include <functional>
#include <ranges>
#include <set>
#include "Component.h"
Include dependency graph for ChildrenHandeler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ChildrenHandeler< C >
 A container for child objects. More...

Macros

#define LOG_CHILDREN_HANDELER   0
 a flag to enable full logging of ChildrenHandeler, even if log level is set higher than DEBUG

Functions

template<typename C>
auto to_json (json &j, const ChildrenHandeler< C > &ch) ->void
template<typename C>
auto from_json (const json &j, ChildrenHandeler< C > &ch) ->void
auto BuildComponent (unsigned int comp, const json &j) -> Component *

Detailed Description

The class containing Json implemenation for building components.

The containing the handles on child objects for entities.

Author
Marcelo Escamilla (marce.nosp@m.lo.e.nosp@m.scami.nosp@m.lla@.nosp@m.digip.nosp@m.en.e.nosp@m.du)
Date
2025 / 01 / 19
Author
Aidan Hartman (aidan.nosp@m..har.nosp@m.tman@.nosp@m.digi.nosp@m.pen.e.nosp@m.du)
Date
2025 / 01 / 19

Macro Definition Documentation

◆ LOG_CHILDREN_HANDELER

#define LOG_CHILDREN_HANDELER   0

a flag to enable full logging of ChildrenHandeler, even if log level is set higher than DEBUG

Function Documentation

◆ BuildComponent()

auto BuildComponent ( unsigned int comp,
const json & j )->Component *

Builds the correct type of component to add to entity from ComponentType

Parameters
compComponentType from Json
jJson object
Returns
Component
Here is the caller graph for this function:

◆ from_json()

template<typename C>
auto from_json ( const json & j,
ChildrenHandeler< C > & ch )->void

there should be no default implementation for this template needs to the cpp from_json

◆ to_json()

template<typename C>
auto to_json ( json & j,
const ChildrenHandeler< C > & ch )->void
inline