2018-01-31 01:47:58 +11:00
|
|
|
#ifndef GENERATED_EXDDATA_H
|
|
|
|
#define GENERATED_EXDDATA_H
|
2017-10-12 00:07:41 +02:00
|
|
|
|
|
|
|
/* This file has been automatically generated.
|
|
|
|
Changes will be lost upon regeneration.
|
|
|
|
To change the content edit tools/exd_struct_gen */
|
|
|
|
|
|
|
|
#include <GameData.h>
|
|
|
|
#include <File.h>
|
|
|
|
#include <ExdData.h>
|
|
|
|
#include <ExdCat.h>
|
|
|
|
#include <Exd.h>
|
2017-11-30 23:41:27 +01:00
|
|
|
#include <set>
|
2018-02-14 12:31:47 +01:00
|
|
|
#include <boost/make_shared.hpp>
|
2017-10-12 00:07:41 +02:00
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
namespace Data {
|
2017-10-12 15:47:21 +02:00
|
|
|
|
|
|
|
class ExdDataGenerated;
|
|
|
|
|
2017-10-12 23:40:45 +02:00
|
|
|
FORWARDS
|
|
|
|
|
2017-10-12 00:07:41 +02:00
|
|
|
STRUCTS
|
|
|
|
|
2017-10-12 09:02:28 +02:00
|
|
|
class ExdDataGenerated
|
2017-10-12 00:07:41 +02:00
|
|
|
{
|
|
|
|
public:
|
2017-10-12 09:02:28 +02:00
|
|
|
ExdDataGenerated();
|
|
|
|
~ExdDataGenerated();
|
2017-10-12 00:07:41 +02:00
|
|
|
|
|
|
|
bool init( const std::string& path );
|
|
|
|
|
|
|
|
xiv::exd::Exd setupDatAccess( const std::string& name, xiv::exd::Language lang );
|
|
|
|
|
|
|
|
template< class T >
|
|
|
|
T getField( std::vector< xiv::exd::Field >& fields, uint32_t index )
|
|
|
|
{
|
|
|
|
return *boost::get< T >( &fields.at( index ) );
|
|
|
|
}
|
|
|
|
|
2017-11-30 23:41:27 +01:00
|
|
|
void loadIdList( xiv::exd::Exd& data, std::set< uint32_t >& outIdList );
|
|
|
|
|
2017-10-12 00:07:41 +02:00
|
|
|
boost::shared_ptr< xiv::dat::GameData > m_data;
|
|
|
|
boost::shared_ptr< xiv::exd::ExdData > m_exd_data;
|
|
|
|
|
|
|
|
DATACCESS
|
|
|
|
|
|
|
|
DIRECTGETTERS
|
|
|
|
|
2017-11-30 23:41:27 +01:00
|
|
|
IDLISTS
|
|
|
|
|
|
|
|
IDLISTGETTERS
|
|
|
|
|
2017-10-12 00:07:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|