nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
scene.h
Go to the documentation of this file.
1#ifndef NANOMMO_CLIENT_SCENE_H_
2#define NANOMMO_CLIENT_SCENE_H_
3
4#include <raylib.h>
5
6#include <cstdint>
7
8namespace nanommo {
9
10/// How many colours there are to dye a player's clothes in.
11inline constexpr int kShirtColors = 6;
12
13/// The colour a player chose for their clothes, the shirt-th of the players'
14/// colours, wrapped round to what there is.
15Color ShirtColor(uint32_t shirt);
16
17/// The colour a player's id picks for their clothes, when they didn't choose
18/// one: a character from before there was a colour to choose.
19Color PlayerColor(uint32_t id);
20
21} // namespace nanommo
22
23#endif // NANOMMO_CLIENT_SCENE_H_
Definition chat.cc:9
constexpr int kShirtColors
How many colours there are to dye a player's clothes in.
Definition scene.h:11
Color ShirtColor(uint32_t shirt)
Definition scene.cc:20
Color PlayerColor(uint32_t id)
Definition scene.cc:24