This commit is contained in:
2025-07-02 00:00:38 +08:00
commit 6751b3dd8c
264 changed files with 140627 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
//========= Copyright © 1996-2008, Valve LLC, All rights reserved. ============
//
// Purpose: Class for rendering photon beams
//
// $NoKeywords: $
//=============================================================================
#ifndef PHOTONBEAM_H
#define PHOTONBEAM_H
#include "GameEngine.h"
#include "SpaceWarEntity.h"
#include "SpaceWar.h"
class CPhotonBeam : public CSpaceWarEntity
{
public:
// Constructor
CPhotonBeam( IGameEngine *pGameEngine, float xPos, float yPos, DWORD dwBeamColor, float flInitialRotation, float flInitialXVelocity, float flInitialYVelocity );
// Check if the photon beam needs to die
bool BIsBeamExpired() { return m_pGameEngine->GetGameTickCount() > m_ulTickCountToDieAt; }
// Update with new data from server
void OnReceiveServerUpdate( ServerPhotonBeamUpdateData_t *pUpdateData );
private:
uint64 m_ulTickCountToDieAt;
};
#endif // PHOTONBEAM_H