summaryrefslogblamecommitdiff
path: root/src/char/HPMchar.c
blob: 14d7be1a395640823e880f0f5d1bdc7e6058fa68 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                           

                              
 















                               
                        
                        

                           


                       
                          

                            

                           
                          

                            

                           



                                                  
                                
 







                                                                                                
                        
                              
         
                     


                                                       
                                                    


                             

                                                                    
                                                                            
                                             


                              
                               
 
// Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// See the LICENSE file

#define HERCULES_CORE

#include "HPMchar.h"

#include "common/HPM.h"
#include "common/cbasetypes.h"

#include "char/char.h"
#include "char/geoip.h"
#include "char/inter.h"
#include "char/int_auction.h"
#include "char/int_elemental.h"
#include "char/int_guild.h"
#include "char/int_homun.h"
#include "char/int_mail.h"
#include "char/int_mercenary.h"
#include "char/int_party.h"
#include "char/int_pet.h"
#include "char/int_quest.h"
#include "char/int_storage.h"
#include "char/loginif.h"
#include "char/mapif.h"
#include "char/pincode.h"
#include "common/HPMi.h"
#include "common/conf.h"
#include "common/console.h"
#include "common/core.h"
#include "common/db.h"
#include "common/des.h"
#include "common/ers.h"
#include "common/malloc.h"
#include "common/mapindex.h"
#include "common/mmo.h"
#include "common/nullpo.h"
#include "common/showmsg.h"
#include "common/socket.h"
#include "common/spinlock.h"
#include "common/sql.h"
#include "common/strlib.h"
#include "common/sysinfo.h"
#include "common/timer.h"
#include "common/utils.h"

// HPMDataCheck comes after all the other includes
#include "common/HPMDataCheck.h"

/**
 * HPM plugin data store validator sub-handler (char-server)
 *
 * @see HPM_interface::data_store_validate
 */
bool HPM_char_data_store_validate(enum HPluginDataTypes type, struct hplugin_data_store **store)
{
	switch (type) {
		default:
			break;
	}
	return false;
}

void HPM_char_plugin_load_sub(struct hplugin *plugin) {
	plugin->hpi->sql_handle = inter->sql_handle;
}

void HPM_char_do_init(void) {
	HPM->load_sub = HPM_char_plugin_load_sub;
	HPM->data_store_validate_sub = HPM_char_data_store_validate;
	HPM->datacheck_init(HPMDataCheck, HPMDataCheckLen, HPMDataCheckVer);
	HPM_shared_symbols(SERVER_TYPE_CHAR);
}

void HPM_char_do_final(void) {
	HPM->datacheck_final();
}