mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
removed TerrainObject struct
This commit is contained in:
+2
-4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user