mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 14:37:25 +00:00
5973430720
Wincent's attempt at making LU into something it isn't supposed to be, an ARPG.
33 lines
738 B
C++
33 lines
738 B
C++
#pragma once
|
|
|
|
#ifndef __ESPAWNPATTERNS__H__
|
|
#define __ESPAWNPATTERNS__H__
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
#include <map>
|
|
#include "ItemModifierTemplate.h"
|
|
|
|
class SpawnPatterns {
|
|
public:
|
|
SpawnPatterns(int32_t lot);
|
|
|
|
~SpawnPatterns() = default;
|
|
|
|
void AddSpawnPatterns(float rating, float change, std::vector<int32_t> spawns);
|
|
|
|
const std::map<float, std::pair<float, std::vector<int32_t>>>& GetSpawnPatterns() const;
|
|
|
|
static void LoadSpawnPatterns(const std::string& filename);
|
|
|
|
static SpawnPatterns* FindSpawnPatterns(int32_t lot);
|
|
|
|
private:
|
|
int32_t m_Lot;
|
|
|
|
std::map<float, std::pair<float, std::vector<int32_t>>> m_SpawnPatterns;
|
|
|
|
static std::map<int32_t, SpawnPatterns> s_SpawnPatterns;
|
|
};
|
|
|
|
#endif //!__ESPAWNPATTERNS__H__
|