unit weapon VFX generation

This commit is contained in:
devZoGok
2024-06-01 14:19:45 +03:00
parent fe0b7979a1
commit a3b8634621
3 changed files with 66 additions and 1 deletions
+3
View File
@@ -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;}
};