neue lua-exporte:

- unit.name (read/write)
This commit is contained in:
Enno Rehling 2004-04-11 00:12:03 +00:00
parent b62023ba59
commit 3c80ab03ea
1 changed files with 1 additions and 2 deletions

View File

@ -213,8 +213,7 @@ bind_unit(lua_State * L)
def("add_unit", &add_unit),
class_<struct unit>("unit")
.def_readonly("name", &unit::name)
.def_readonly("size", &unit::number)
.def_readwrite("name", &unit::name)
.def_readonly("faction", &unit::faction)
.def_readonly("id", &unit::no)
.def_readwrite("hp", &unit::hp)