Brunot
Loading...
Searching...
No Matches
Entity.cpp File Reference

The class containing all entity elements. More...

#include "System/Logging.h"
#include "Entity.h"
#include "imgui.h"
#include "Component/Physics.h"
#include "Framework/Factory.h"
#include "Framework/Node.h"
#include <filesystem>
#include "Component/ScriptHolder.h"
#include "Component/Transform.h"
#include "System/ScriptingManager.h"
#include "System/Editor.h"
#include "Utility/LuaMacros.h"
#include "Utility/Messages/AddedComponentMessage.h"
#include "Utility/ALL_COMPONENTS_INCLUDE.h"
Include dependency graph for Entity.cpp:

Macros

#define LM_CLASS   Entity
#define LM_ADD_CHILD_DEF   "addChild", &Entity::addChildLua,
#define BIND_COMPONENT_GETTER(name, id, ...)

Functions

auto to_json (json &j, const Entity &obj) ->void
auto from_json (const json &j, Entity &obj) ->void

Variables

static char childInput [32] = "Transform"
static char entityNickname [128] = "New Entity"

Detailed Description

The class containing all entity elements.

Author
Aidan Hartman (aidan.nosp@m..har.nosp@m.tman@.nosp@m.digi.nosp@m.pen.e.nosp@m.du) Some buttons for ImGui, Pair program with Marcelo Marcelo Escamilla(marce.nosp@m.lo.e.nosp@m.scami.nosp@m.lla@.nosp@m.digip.nosp@m.en.e.nosp@m.du) JSON serialization, and ImGui implementation Bryley Elder (bryle.nosp@m.y.el.nosp@m.der@d.nosp@m.igip.nosp@m.en.ed.nosp@m.u) Pair Program with Aidan
Date
2025 / 11 / 19

Macro Definition Documentation

◆ BIND_COMPONENT_GETTER

#define BIND_COMPONENT_GETTER ( name,
id,
... )
Value:
#name , sol::property(static_cast< name * (Entity::*)()>(&Entity::GetComponent< name >)),

◆ LM_ADD_CHILD_DEF

#define LM_ADD_CHILD_DEF   "addChild", &Entity::addChildLua,

◆ LM_CLASS

#define LM_CLASS   Entity

Function Documentation

◆ from_json()

auto from_json ( const json & j,
Entity & obj )->void

◆ to_json()

auto to_json ( json & j,
const Entity & obj )->void

Variable Documentation

◆ childInput

char childInput[32] = "Transform"
static

◆ entityNickname

char entityNickname[128] = "New Entity"
static