OpenFusion/src/NanoManager.hpp

29 lines
590 B
C++
Raw Normal View History

#pragma once
2020-08-20 15:43:37 +00:00
#include <set>
#include <vector>
#include "Player.hpp"
2020-08-20 15:43:37 +00:00
#include "CNShardServer.hpp"
struct NanoData {
int style;
};
struct NanoTuning {
int reqItemCount;
int reqItems;
};
2020-08-20 15:43:37 +00:00
namespace NanoManager {
extern std::map<int32_t, NanoData> NanoTable;
extern std::map<int32_t, NanoTuning> NanoTunings;
2020-08-20 15:43:37 +00:00
void init();
// Helper methods
void addNano(CNSocket* sock, int16_t nanoID, int16_t slot, bool spendfm=false);
void summonNano(CNSocket* sock, int slot, bool silent = false);
int nanoStyle(int nanoID);
bool getNanoBoost(Player* plr);
2020-08-20 15:43:37 +00:00
}