Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
Builders.cpp File Reference
Include dependency graph for Builders.cpp:

Namespaces

namespace  shkyera
 
namespace  shkyera::serialization
 

Typedefs

template<typename ProtoType >
using shkyera::serialization::ProtoArray = ::google::protobuf::RepeatedPtrField< ProtoType >
 

Functions

glm::vec3 shkyera::serialization::fromProto (const shkyeraProto::Vec3 &vec)
 
template<typename AssetType >
HandleAndAsset< AssetTypeshkyera::serialization::fromProto (Registry *registry, const std::map< Entity, Entity > &protoToRegistryEntities, Entity protoEntity)
 
void shkyera::serialization::toProto (const glm::vec3 &vec, shkyeraProto::Vec3 &out)
 
template<typename AssetType >
uint32_t shkyera::serialization::toProto (const HandleAndAsset< AssetType > &asset)
 
template<typename ComponentType , typename ProtoType , typename ConversionFunc >
void shkyera::serialization::loadComponents (Registry *registry, std::map< Entity, Entity > &protoToRegistryEntities, const ProtoArray< ProtoType > &protoComponents, ConversionFunc constructComponent)
 
template<typename ComponentType , typename ProtoType , typename ConversionFunc >
void shkyera::serialization::loadSingletonComponent (Registry *registry, std::map< Entity, Entity > &protoToRegistryEntities, const ProtoType &protoComponent, ConversionFunc constructComponent)
 
std::unique_ptr< shkyera::Registryshkyera::serialization::fromBinary (std::istream &serialized)
 
template<typename ComponentType , typename ProtoType , typename SerializeFunc >
void shkyera::serialization::serializeComponents (Registry const *registry, ProtoArray< ProtoType > &protoComponents, SerializeFunc serializeFunc)
 
template<typename ComponentType , typename ProtoType , typename SerializeFunc >
void shkyera::serialization::serializeSingletonComponent (Registry const *registry, ProtoType &protoComponent, SerializeFunc serializeFunc)
 
void shkyera::serialization::toBinary (std::ostream &outputStream, Registry const *registry)