pet_turntable.h 588 Bytes
#pragma once

#include <common.h>
#include <share_msg.pb.h>

struct pet_turntable_element_t 
{
	uint32_t id;
	uint32_t show;
	uint32_t pr;
	pet_turntable_element_t(){
		this->id = 0;
		this->show = 0;
		this->pr = 0;
	}
};

struct pet_turntable_cfg_mgr_t
{
	bool load_cfg();
	void init();

	std::map<uint32_t, pet_turntable_element_t> star_map[share_msg::E_PET_STAR_MAX];//star:id , val:pet_turntable_element_t

	// 六个等级的可放入转盘的宠物 [2018/12/13 Administrator]
	std::vector<PET_ID> pet_vec[share_msg::E_PET_STAR_MAX];

};

extern pet_turntable_cfg_mgr_t* g_pet_turntable_cfg_mgr;