cOMS/network/packet/mob/MobStatePacket.h
Dennis Eichhorn 4f1cbd98f9
Some checks failed
Microsoft C++ Code Analysis / Analyze (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (autobuild, c-cpp) (push) Has been cancelled
started templating
2025-03-21 01:08:09 +00:00

52 lines
679 B
C

#ifndef COMS_NETWORK_PACKET_MOB_STATE_H
#define COMS_NETWORK_PACKET_MOB_STATE_H
#include <stdio.h>
#include "../../../stdlib/Types.h"
struct MobStatePacketSnapshot {
byte* data;
};
struct MobStatePacketSnapshotUnpacked {
uint32 mob_id;
byte mob_type;
uint32 chunk;
f16 x;
f16 y;
f16 z;
f16 roll;
f16 pitch;
f16 yaw;
uint32 state_flag;
uint64 time;
};
struct MobStatePacketDelta {
byte* data;
};
struct MobStatePacketDeltaUnpacked {
uint32 mob_id;
byte mob_type;
uint32 chunk;
f16 x;
f16 y;
f16 z;
f16 roll;
f16 pitch;
f16 yaw;
uint32 state_flag;
uint64 time;
};
#endif