added CAntennas

This commit is contained in:
aap
2019-05-30 11:12:49 +02:00
parent 0a36d49d2c
commit ee5088b3e1
4 changed files with 167 additions and 0 deletions

25
src/render/Antennas.h Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
class CAntenna
{
public:
bool active;
bool updatedLastFrame;
uint32 id;
float segmentLength;
CVector pos[6];
CVector speed[6];
void Update(CVector dir, CVector pos);
};
class CAntennas
{
// no need to use game's array
static CAntenna aAntennas[NUMANTENNAS];
public:
static void Init(void);
static void Update(void);
static void RegisterOne(uint32 id, CVector dir, CVector position, float length);
static void Render(void);
};