컨텐츠로 이동
Cataclysm: Bright Nights
GitHubDiscord

Items Cookbook

이 컨텐츠는 아직 번역되지 않았습니다.

Here are some common tasks that you might want to do with items. For more on item(game objects), check here.

Moving items from one tripoint to another

auto move_item( map &here, const tripoint &src, const tripoint &dest ) -> void
{
    map_stack items_src = here.i_at( src );
    map_stack items_dest = here.i_at( dest );

    items_src.move_all_to( &items_dest );
}