You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
484 B

1 year ago
#include "map_entity.h"
QX_REGISTER_CPP(MapEntity)
namespace qx {
template <> void register_class(QxClass<MapEntity> & t)
{
t.setName("csci_map");
t.id(& MapEntity::id, "id");
t.data(& MapEntity::mapName, "map_name");
}}
MapEntity::MapEntity(): id(0) {
}
MapEntity MapEntity::findById(long id) {
MapEntity mapEntity;
mapEntity.id = id;
qx::dao::fetch_by_id(mapEntity);
return mapEntity;
}
MapEntity::~MapEntity() = default;