2020-08-23 17:14:54 +00:00
|
|
|
#pragma once
|
2020-08-20 15:43:37 +00:00
|
|
|
|
|
|
|
#include "CNShardServer.hpp"
|
|
|
|
|
|
|
|
namespace NanoManager {
|
|
|
|
void init();
|
|
|
|
void nanoSummonHandler(CNSocket* sock, CNPacketData* data);
|
2020-08-22 18:02:08 +00:00
|
|
|
void nanoEquipHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void nanoUnEquipHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void nanoGMGiveHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void nanoSkillUseHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void nanoSkillSetHandler(CNSocket* sock, CNPacketData* data);
|
2020-09-09 01:15:25 +00:00
|
|
|
void nanoSkillSetGMHandler(CNSocket* sock, CNPacketData* data);
|
2020-08-22 18:02:08 +00:00
|
|
|
|
|
|
|
// Helper methods
|
|
|
|
void addNano(CNSocket* sock, int16_t nanoId, int16_t slot);
|
2020-08-25 18:30:20 +00:00
|
|
|
void summonNano(CNSocket* sock, int slot);
|
2020-08-22 18:02:08 +00:00
|
|
|
void setNanoSkill(CNSocket* sock, int16_t nanoId, int16_t skillId);
|
|
|
|
void resetNanoSkill(CNSocket* sock, int16_t nanoId);
|
2020-08-20 15:43:37 +00:00
|
|
|
}
|