mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
43998ce41a
Still send the old hack to old clients, still accept the old hack from old servers. This is so F-Client can support DDNet servers without such hacks.
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
/* (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_COMPONENTS_ITEMS_H
|
|
#define GAME_CLIENT_COMPONENTS_ITEMS_H
|
|
#include <game/client/component.h>
|
|
|
|
class CProjectileData;
|
|
|
|
class CItems : public CComponent
|
|
{
|
|
enum
|
|
{
|
|
MAX_EXTRA_PROJECTILES = 32,
|
|
};
|
|
|
|
CNetObj_Projectile m_aExtraProjectiles[MAX_EXTRA_PROJECTILES];
|
|
int m_NumExtraProjectiles;
|
|
|
|
void RenderProjectile(const CProjectileData *pCurrent, int ItemID);
|
|
void RenderPickup(const CNetObj_Pickup *pPrev, const CNetObj_Pickup *pCurrent, bool IsPredicted = false);
|
|
void RenderFlag(const CNetObj_Flag *pPrev, const CNetObj_Flag *pCurrent, const CNetObj_GameData *pPrevGameData, const CNetObj_GameData *pCurGameData);
|
|
void RenderLaser(const struct CNetObj_Laser *pCurrent, bool IsPredicted = false);
|
|
|
|
int m_ItemsQuadContainerIndex;
|
|
|
|
public:
|
|
virtual void OnReset();
|
|
virtual void OnRender();
|
|
virtual void OnInit();
|
|
|
|
void AddExtraProjectile(CNetObj_Projectile *pProj);
|
|
|
|
void ReconstructSmokeTrail(const CProjectileData *pCurrent, int DestroyTick);
|
|
};
|
|
|
|
#endif
|