Botcraft 26.3
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#if PROTOCOL_VERSION > 776 /* > 26.2 */
10#endif
11
12namespace ProtocolCraft
13{
15 {
16#if PROTOCOL_VERSION < 766 /* < 1.20.5 */
17 SERIALIZED_FIELD(DimensionType, Identifier);
18#else
19 SERIALIZED_FIELD(DimensionType, VarInt);
20#endif
22 SERIALIZED_FIELD(Seed, long long int);
23#if PROTOCOL_VERSION < 777 /* < 26.3 */
24 SERIALIZED_FIELD(GameType, unsigned char);
25 SERIALIZED_FIELD(PreviousGameType, unsigned char);
26#else
28 SERIALIZED_FIELD(PreviousGameType, OptionalVarInt);
29#endif
30 SERIALIZED_FIELD(IsDebug, bool);
31 SERIALIZED_FIELD(IsFlat, bool);
32 SERIALIZED_FIELD(LastDeathLocation, std::optional<GlobalPos>);
33 SERIALIZED_FIELD(PortalCooldown, VarInt);
34#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
36#endif
37
39 };
40}
41#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(PreviousGameType, OptionalVarInt)
SERIALIZED_FIELD(Seed, long long int)
SERIALIZED_FIELD(DimensionType, VarInt)
SERIALIZED_FIELD(PortalCooldown, VarInt)
SERIALIZED_FIELD(LastDeathLocation, std::optional< GlobalPos >)
SERIALIZED_FIELD(Dimension, Identifier)