Botcraft 1.21.4
Loading...
Searching...
No Matches
CommonPlayerSpawnInfo.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 763 /* > 1.20.1 */
2#pragma once
3
5
8
9namespace ProtocolCraft
10{
12 {
13#if PROTOCOL_VERSION < 766 /* < 1.20.5 */
14 SERIALIZED_FIELD(DimensionType, Identifier);
15#else
16 SERIALIZED_FIELD(DimensionType, VarInt);
17#endif
19 SERIALIZED_FIELD(Seed, long long int);
20 SERIALIZED_FIELD(GameType, unsigned char);
21 SERIALIZED_FIELD(PreviousGameType, unsigned char);
22 SERIALIZED_FIELD(IsDebug, bool);
23 SERIALIZED_FIELD(IsFlat, bool);
24 SERIALIZED_FIELD(LastDeathLocation, std::optional<GlobalPos>);
25 SERIALIZED_FIELD(PortalCooldown, VarInt);
26
28 };
29}
30#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(GameType, unsigned char)
SERIALIZED_FIELD(Seed, long long int)
SERIALIZED_FIELD(PreviousGameType, unsigned char)
SERIALIZED_FIELD(DimensionType, VarInt)
SERIALIZED_FIELD(PortalCooldown, VarInt)
SERIALIZED_FIELD(LastDeathLocation, std::optional< GlobalPos >)
SERIALIZED_FIELD(Dimension, Identifier)