[Server] Rename property cell into description, initialize Cells type

This commit is contained in:
David Cernat 2017-11-01 13:22:41 +02:00
parent 5653d07c7b
commit 71c921faa7
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ using namespace std;
void Cells::Init(LuaState &lua)
{
lua.getState()->new_usertype<Cells>("Cell",
"cell", sol::property(&Cells::getCell, &Cells::setCell),
"description", sol::property(&Cells::getCell, &Cells::setCell),
"getExterior", &Cells::getExterior,
"setExterior", &Cells::setExterior,
"getRegion", &Cells::getRegion,

View file

@ -72,6 +72,7 @@ LuaState::LuaState()
cmdCtrl = make_unique<CommandController>();
Player::Init(*this);
Cells::Init(*this);
CharClass::Init(*this);
Inventory::Init(*this);
GameSettings::Init(*this);