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