mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-19 12:14:35 +02:00
Initial Prey Game integration support.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#ifndef __GAME_ENERGYNODE_H__
|
||||
#define __GAME_ENERGYNODE_H__
|
||||
|
||||
class hhEnergyNode : public idStaticEntity {
|
||||
public:
|
||||
CLASS_PROTOTYPE( hhEnergyNode );
|
||||
|
||||
hhEnergyNode(void);
|
||||
~hhEnergyNode();
|
||||
|
||||
void Spawn( void );
|
||||
|
||||
void Save( idSaveGame *savefile ) const;
|
||||
void Restore( idRestoreGame *savefile );
|
||||
|
||||
inline bool CanLeech() { return !disabled; }
|
||||
void LeechTrigger(idEntity *activator, const char* type);
|
||||
void Finish();
|
||||
|
||||
virtual void Event_Enable();
|
||||
virtual void Event_Disable();
|
||||
|
||||
//rww - network code
|
||||
virtual void WriteToSnapshot( idBitMsgDelta &msg ) const;
|
||||
virtual void ReadFromSnapshot( const idBitMsgDelta &msg );
|
||||
|
||||
idVec3 leechPoint;
|
||||
|
||||
protected:
|
||||
bool disabled;
|
||||
|
||||
idEntityPtr<hhEntityFx> energyFx;
|
||||
};
|
||||
|
||||
#endif // __GAME_ENERGYNODE_H__
|
||||
Reference in New Issue
Block a user