nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
rig.h
Go to the documentation of this file.
1#ifndef NANOMMO_CONTENT_RIG_H_
2#define NANOMMO_CONTENT_RIG_H_
3
4#include <string_view>
5#include <vector>
6
7#include "absl/status/statusor.h"
8#include "content/rig.pb.h"
9
10namespace nanommo {
11
12/// The rig in text format, or what's wrong with it: a field rig.proto doesn't
13/// have, a joint with no name, or the name of another, a joint whose parent
14/// isn't listed before it, a second joint without one, a build that moves a
15/// joint the rig doesn't have, a walk or a run with no speed or no cycle, or
16/// whose feet are down for none of it or all of it, or an idle or a death
17/// whose keys go back in time.
18absl::StatusOr<rig::Rig> ParseRig(std::string_view text);
19
20/// The joints of one of the rig's builds: each mirrored one followed by its
21/// twin on the right, so each still comes after its parent, and where the
22/// build moves them.
23std::vector<rig::Joint> Skeleton(const rig::Rig& rig, int build);
24
25} // namespace nanommo
26
27#endif // NANOMMO_CONTENT_RIG_H_
Definition chat.cc:9
absl::StatusOr< rig::Rig > ParseRig(std::string_view text)
Definition rig.cc:49
std::vector< rig::Joint > Skeleton(const rig::Rig &rig, int build)
Definition rig.cc:101