selecting units by left clicking

This commit is contained in:
devZoGok
2023-11-05 16:28:33 +02:00
parent 4a9e9bd4c9
commit 464abc1c00
13 changed files with 189 additions and 106 deletions
+2 -1
View File
@@ -4,7 +4,6 @@
#include <model.h>
#include <material.h>
#include <quaternion.h>
#include <rayCaster.h>
#include <stateManager.h>
@@ -43,6 +42,8 @@ namespace battleship{
}
void Projectile::initProperties(int weaponId){
GameObject::initProperties();
sol::table SOL_LUA_STATE = generateView()[GameObject::getGameObjTableName()];
rayLength = SOL_LUA_STATE["rayLength"][id + 1][weaponTypeId + 1][weaponId + 1];
damage = SOL_LUA_STATE["damage"][id + 1][weaponTypeId + 1][weaponId + 1];