nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
checks.h File Reference
#include <cstdint>
#include <map>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "google/protobuf/repeated_ptr_field.h"
#include "terrain/lands.h"

Go to the source code of this file.

Namespaces

namespace  nanommo

Functions

template<typename Entry>
absl::StatusOr< std::map< uint32_t, Entry > > nanommo::ById (const google::protobuf::RepeatedPtrField< Entry > &entries)
template<typename Kind, typename Spawn>
absl::Status nanommo::CheckSpawn (const std::map< uint32_t, Kind > &kinds, const Spawn &spawn)
 Whether a spawn names a kind we have, in a land we have.