ddnet/src/game/client/pickup_data.h

25 lines
665 B
C
Raw Normal View History

/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#ifndef GAME_CLIENT_PICKUP_DATA_H
#define GAME_CLIENT_PICKUP_DATA_H
#include <base/vmath.h>
struct CNetObj_Pickup;
struct CNetObj_DDNetPickup;
struct CNetObj_EntityEx;
class CPickupData
{
public:
vec2 m_Pos;
int m_Type;
int m_Subtype;
int m_SwitchNumber;
};
CPickupData ExtractPickupInfo(int NetObjType, const void *pData, const CNetObj_EntityEx *pEntEx);
CPickupData ExtractPickupInfoDDNet(const CNetObj_DDNetPickup *pPickup);
#endif // GAME_CLIENT_PICKUP_DATA_H