1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-21 11:14:04 +00:00

[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) void Cells::Init(LuaState &lua)
{ {
lua.getState()->new_usertype<Cells>("Cell", lua.getState()->new_usertype<Cells>("Cell",
"cell", sol::property(&Cells::getCell, &Cells::setCell), "description", sol::property(&Cells::getCell, &Cells::setCell),
"getExterior", &Cells::getExterior, "getExterior", &Cells::getExterior,
"setExterior", &Cells::setExterior, "setExterior", &Cells::setExterior,
"getRegion", &Cells::getRegion, "getRegion", &Cells::getRegion,

View file

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