40 lines
982 B
C++
40 lines
982 B
C++
#ifndef WORLDS_HPP_INCLUDED
|
|
#define WORLDS_HPP_INCLUDED
|
|
|
|
#include "../../Core/Classes/World.hpp"
|
|
#include <functional>
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
/** @addtogroup Tools
|
|
* @{ */
|
|
class Worlds
|
|
{
|
|
public:
|
|
static bool Refresh();
|
|
static bool Refresh(bool ExitWorldSelection);
|
|
|
|
static bool SwitchWorld(World World);
|
|
static bool SwitchWorld(std::int32_t WorldID);
|
|
|
|
static std::int32_t GetCurrent();
|
|
static std::vector<World> GetAll();
|
|
|
|
static std::int32_t GetIndexOf(World World);
|
|
static std::int32_t GetIndexOf(std::int32_t WorldID);
|
|
|
|
static std::vector<World> GetF2P();
|
|
static std::vector<World> GetP2P();
|
|
|
|
static bool IsP2P(World World);
|
|
static bool IsP2P(std::int32_t WorldID);
|
|
|
|
static World GetBy(std::int32_t WorldID);
|
|
static std::vector<World> GetBy(const std::function<bool (World&)>& Filter);
|
|
};
|
|
|
|
/** @} */
|
|
|
|
#endif // WORLDS_HPP_INCLUDED
|