| 
									
										
										
										
											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>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** @addtogroup Tools
 | 
					
						
							|  |  |  | * @{ */ | 
					
						
							|  |  |  | class Worlds | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     public: | 
					
						
							|  |  |  |         static bool Refresh(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-18 14:38:29 +00:00
										 |  |  |         static bool SwitchWorld(Internal::World World); | 
					
						
							| 
									
										
										
										
											2017-12-25 23:49:48 +00:00
										 |  |  |         static bool SwitchWorld(std::int32_t WorldID); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         static std::int32_t GetCurrent(); | 
					
						
							| 
									
										
										
										
											2018-03-18 14:38:29 +00:00
										 |  |  |         static std::vector<Internal::World> GetAll(); | 
					
						
							| 
									
										
										
										
											2017-12-25 23:49:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-18 14:38:29 +00:00
										 |  |  |         static std::int32_t GetIndexOf(Internal::World World); | 
					
						
							| 
									
										
										
										
											2017-12-25 23:49:48 +00:00
										 |  |  |         static std::int32_t GetIndexOf(std::int32_t WorldID); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-18 14:38:29 +00:00
										 |  |  |         static std::vector<Internal::World> GetF2P(); | 
					
						
							|  |  |  |         static std::vector<Internal::World> GetP2P(); | 
					
						
							| 
									
										
										
										
											2017-12-25 23:49:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-18 14:38:29 +00:00
										 |  |  |         static bool IsP2P(Internal::World World); | 
					
						
							| 
									
										
										
										
											2017-12-25 23:49:48 +00:00
										 |  |  |         static bool IsP2P(std::int32_t WorldID); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-18 14:38:29 +00:00
										 |  |  |         static Internal::World GetBy(std::int32_t WorldID); | 
					
						
							|  |  |  |         static std::vector<Internal::World> GetBy(const std::function<bool (Internal::World&)>& Filter); | 
					
						
							| 
									
										
										
										
											2017-12-25 23:49:48 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** @} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // WORLDS_HPP_INCLUDED
 |