travianmap_map (travianmap v1.1.0)

Summary

Types

Link to this type

village_record/0

-type village_record() ::
    #{grid_position := integer(),
      x_position := integer(),
      y_position := integer(),
      tribe := non_neg_integer(),
      village_id := non_neg_integer(),
      village_name := binary(),
      player_id := non_neg_integer(),
      player_name := binary(),
      alliance_id := non_neg_integer(),
      alliance_name := binary(),
      population := non_neg_integer(),
      region := binary() | nil,
      is_capital := boolean() | nil,
      is_city := boolean() | nil,
      has_harbor => boolean() | nil,
      victory_points := non_neg_integer() | nil}.

Functions

Link to this function

parse_line(Line)

-spec parse_line(Line :: binary()) -> {ok, village_record()} | {error, any()}.
Link to this function

parse_map(Binary_Map)

-spec parse_map(Binary_Map :: binary()) -> [{ok, village_record()} | {error, any()}].