load("//tools:copts.bzl", "COPTS")

cc_library(
    name = "battalion_type_registrar",
    srcs = ["BattalionTypeRegistrar.cpp"],
    hdrs = ["BattalionTypeRegistrar.hpp"],
    copts = COPTS,
    data = [
        "//src/main/resources/net/eagle0/shardok:battalion_types",
    ],
    visibility = ["//visibility:public"],
    deps = [
        "//src/main/cpp/net/eagle0/common:filesystem_utils",
        "//src/main/cpp/net/eagle0/common:tsv_parser",
        "//src/main/cpp/net/eagle0/shardok/library:battalion_type",
        "//src/main/cpp/net/eagle0/shardok/library/settings:game_settings",
    ],
)

cc_library(
    name = "map_loader",
    srcs = ["MapLoader.cpp"],
    hdrs = ["MapLoader.hpp"],
    copts = COPTS,
    visibility = ["//visibility:public"],
    deps = [
        "//src/main/cpp/net/eagle0/common:filesystem_utils",
        "//src/main/protobuf/net/eagle0/shardok/common:hex_map_cc_proto",
    ],
)
