WorldIdentifier.hh
Go to the documentation of this file.
Describes options needed for a server.
Definition: ClientConfig.hh:48
Defines how to identify a world.
Definition: WorldIdentifier.hh:43
std::string AsPrettyString(const std::string &_prefix="") const
Returns all the available world information as a string using colors for better human parsing.
bool SetLocalPath(const std::string &_path)
Sets the path of the world in the local cache.
bool operator==(const WorldIdentifier &_rhs) const
Equality operator.
bool SetName(const std::string &_name)
Set the name of the world.
WorldIdentifier & operator=(const WorldIdentifier &_orig)
Assignment operator.
bool SetOwner(const std::string &_name)
Set the owner of the world.
bool SetVersionStr(const std::string &_version)
Set the world's version. Versions are integers counting from 1 or "tip" for the latest version.
std::string AsString(const std::string &_prefix="") const
Returns all the world information as a string. Convenient for debugging.
std::string UniqueName() const
Returns a unique name for the world.
ServerConfig & Server() const
Returns server information to retrieve world from.
std::string VersionStr() const
Returns the world's version as a string. Versions are integers counting from 1. The strings "tip" or ...
unsigned int Version() const
Returns the world's version as a number. Versions are integers counting from 1. Version zero means th...
std::string Owner() const
Returns owner to attribute world to.
bool SetServer(const ServerConfig &_server)
Set the server from which this world comes.
bool SetVersion(const unsigned int _version)
Set the world's version. Versions are integers counting from 1.
std::string LocalPath() const
Returns a path to the world on disk if it is already cached.
WorldIdentifier(const WorldIdentifier &_orig)
Copy Constructor.