lua/wrappers/game/lua_character.cpp
/**
	 * Returns the inventory object attached to this character.
	 *
	 * @returns am.inventory The attached inventory, nil if there was an error.
	 */
Returns the inventory object attached to this character.
@returns am.inventory The attached inventory, nil if there was an error.
Returns the inventory object attached to this character . @returns am . inventory The attached inventory nil if there was an error .
int Character_inventory(lua_State *lua)
	{
		Character *obj = castUData<Character>(lua, 1);
		if (obj)
		{
			wrapRefObject<Inventory>(lua, obj->getInventory());
			return 1;
		}
		return LuaState::expectedContext(lua, "inventory", "am.character");
	}
int Character_inventory ( lua_State * lua ) { Character * obj = castUData < Character > ( lua , 1 ) ; if ( obj ) { wrapRefObject < Inventory > ( lua , obj -> getInventory ( ) ) ; return 1 ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Returns the inventory object attached to this character.
Returns the inventory object attached to this character .