removed TerrainObject struct

This commit is contained in:
devZoGok
2023-09-03 09:22:05 +03:00
parent c7f5914a04
commit 80dc5503be
9 changed files with 70 additions and 79 deletions
+2 -4
View File
@@ -13,16 +13,14 @@ namespace battleship{
this->spawnPoint = spawnPoint;
this->id = id;
sol::state_view SOL_LUA_STATE = generateView();
SOL_LUA_STATE.script("players[" + to_string(id + 1) + "] = Player:new({id = " + to_string(id + 1) + "})");
//SOL_LUA_STATE.script("players[" + to_string(id + 1) + "] = Player:new({id = " + to_string(id + 1) + "})");
}
Player::~Player() {
}
void Player::update() {
sol::state_view SOL_LUA_STATE = generateView();
SOL_LUA_STATE.script("players[" + to_string(id + 1) + "]:update()");
//SOL_LUA_STATE.script("players[" + to_string(id + 1) + "]:update()");
for(Unit *u : units)
u->update();