Antkeeper  0.0.1
Functions
ant-gene-loader.hpp File Reference
#include "game/ant/genes/ant-gene.hpp"
#include <engine/resources/resource-manager.hpp>
#include <engine/resources/deserialize-context.hpp>
#include <engine/resources/deserialize-error.hpp>

Go to the source code of this file.

Functions

template<class T >
void load_ant_gene (ant_gene< T > &gene, resource_manager &resource_manager, deserialize_context &ctx, void(*load_phene)(T &, ::resource_manager &, deserialize_context &))
 Loads an ant gene. More...
 

Function Documentation

◆ load_ant_gene()

template<class T >
void load_ant_gene ( ant_gene< T > &  gene,
resource_manager resource_manager,
deserialize_context ctx,
void(*)(T &, ::resource_manager &, deserialize_context &)  load_phene 
)

Loads an ant gene.

Template Parameters
TPhene type.
Parameters
geneGene to load.
resource_managerResource manager.
ctxDeserialize context.
load_phenePointer to phene load function.

Definition at line 39 of file ant-gene-loader.hpp.