mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
unit weapon VFX generation
This commit is contained in:
@@ -103,7 +103,10 @@ namespace battleship{
|
||||
Unit *unit = nullptr;
|
||||
sf::SoundBuffer *fireSfxBuffer;
|
||||
sf::Sound *fireSfx = nullptr;
|
||||
std::vector<vb01::Node*> fireVfxNodes;
|
||||
|
||||
void initProjectileData(sol::table);
|
||||
std::vector<vb01::Node*> initFx(sol::table, std::string);
|
||||
inline bool canFire(){return vb01::getTime() - lastFireTime > rateOfFire;}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user