R-Type
Namespaces | Typedefs | Functions | Variables
JsonConversion.hpp File Reference
#include <nlohmann/json.hpp>
#include <iostream>
#include "components/CameraComponent.hpp"
#include "components/CollisionComponent.hpp"
#include "components/ControllableComponent.hpp"
#include "components/MusicComponent.hpp"
#include "components/PressableComponent.hpp"
#include "components/TextComponent.hpp"
#include "components/TextureComponent.hpp"
#include "components/TransformComponent.hpp"
#include "components/HealthComponent.hpp"
#include "components/DamageComponent.hpp"
#include "components/GravityComponent.hpp"

Go to the source code of this file.

Namespaces

 GameEngine
 
 GameEngine::Input
 
 GameEngine::Input::Keyboard
 

Typedefs

using json = nlohmann::json
 

Functions

void GameEngine::from_json (const json &j, Input::Keyboard::Key &key)
 Function to convert a json object to a key. More...
 
template<typename T >
void GameEngine::from_json (const json &j, Rect< T > &rect)
 Function to convert a json object to a rect. More...
 
template<typename T >
void GameEngine::from_json (const json &j, Vector2< T > &vec)
 
void GameEngine::from_json (const json &j, Texture &texture)
 Function to convert a json object to a Texture. More...
 
void GameEngine::from_json (const json &j, TransformComponent &tc)
 Function to convert a json object to a TransfromComponent. More...
 
void GameEngine::from_json (const json &j, HealthComponent &hc)
 Function to convert a json object to a HealthComponent. More...
 
void GameEngine::from_json (const json &j, DamageComponent &dc)
 Function to convert a json object to a DamageComponent. More...
 
void GameEngine::from_json (const json &j, ControllableComponent &cc)
 Function to convert a json object to a ControllableComponent. More...
 
void GameEngine::from_json (const json &j, TextureComponent &tc)
 Function to convert a json object to a TextureComponent. More...
 
void GameEngine::from_json (const json &j, CollisionComponent &cc)
 Function to convert a json object to a CollisionComponent. More...
 
void GameEngine::from_json (const json &j, GravityComponent &gc)
 Function to convert a json object to a GravityComponent. More...
 
void GameEngine::from_json (const json &j, CameraComponent &cc)
 Function to convert a json object to a CameraComponent. More...
 
void GameEngine::from_json (const json &j, TextComponent &tx)
 

Variables

const std::unordered_map< std::string, Key > GameEngine::Input::Keyboard::strKeyMap
 

Typedef Documentation

◆ json

using json = nlohmann::json