AlpacaLibrary/Include/Game/Tools/Worlds.hpp

34 lines
852 B
C++
Raw Permalink Normal View History

2017-12-25 23:49:48 +00:00
#ifndef WORLDS_HPP_INCLUDED
#define WORLDS_HPP_INCLUDED
#include "../../Core/Classes/World.hpp"
#include <functional>
#include <cstdint>
#include <string>
#include <vector>
2018-12-27 18:17:09 +00:00
namespace Worlds
2017-12-25 23:49:48 +00:00
{
2018-12-27 18:17:09 +00:00
bool Refresh();
2017-12-25 23:49:48 +00:00
2022-07-07 05:55:41 +00:00
bool SwitchWorld(const Internal::World& World);
2018-12-27 18:17:09 +00:00
bool SwitchWorld(std::int32_t WorldID);
2017-12-25 23:49:48 +00:00
2018-12-27 18:17:09 +00:00
std::int32_t GetCurrent();
std::vector<Internal::World> GetAll();
2017-12-25 23:49:48 +00:00
2022-07-07 05:55:41 +00:00
std::int32_t GetIndexOf(const Internal::World& World);
2018-12-27 18:17:09 +00:00
std::int32_t GetIndexOf(std::int32_t WorldID);
2017-12-25 23:49:48 +00:00
2018-12-27 18:17:09 +00:00
std::vector<Internal::World> GetF2P();
std::vector<Internal::World> GetP2P();
2017-12-25 23:49:48 +00:00
2022-07-07 05:55:41 +00:00
bool IsP2P(const Internal::World& World);
2018-12-27 18:17:09 +00:00
bool IsP2P(std::int32_t WorldID);
2017-12-25 23:49:48 +00:00
2018-12-27 18:17:09 +00:00
Internal::World GetBy(std::int32_t WorldID);
2022-07-07 05:55:41 +00:00
std::vector<Internal::World> GetBy(const std::function<bool (const Internal::World&)>& Filter);
2018-12-31 21:52:58 +00:00
}
2017-12-25 23:49:48 +00:00
#endif // WORLDS_HPP_INCLUDED