travianmap (travianmap v1.1.0)
Summary
Functions
Fetch the map of a current url.
Fetch current servers information from https://blog.travian.com/gameworld-schedule
Parse a line of the binary map and return the record.
Parse a binary map and transform the results in to a list of tuples.
Functions
Link to this function
get_map(Url)
Link to this function
get_servers()
-spec get_servers() -> {ok, [{ok, game_world_schedule:server_metadata()} | {error, [binary()]}]} | {error, any()}.
Link to this function
parse_line(Binary_Line)
-spec parse_line(Binary_Line :: binary()) -> {ok, travianmap_map:village_record()} | {error, any()}.
Link to this function
parse_map(Binary_Map)
-spec parse_map(Binary_Map :: binary()) -> [{ok, travianmap_map:village_record()} | {error, any()}].